Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Computer Engineering Expert

problem 1: How does a structure distinct from an array? Describe your answer with simple illustrations.

problem 2: Describe how a structure distinct from a union? describe your answer with simple illustrations.

problem 3: prepare sample code to declare a union named 'clothes'. The union has two variables 'shirt' and 'blouse' and its members are:

Manufacturer of type character and size 20
Cost of type float
Size of type character (ex: S – small, M – medium, L - large and XL- extra large)

problem 4: Describe what a nested structure is. Describe your answer with an appropriate ex.

problem 5:

a) Define a structure comprising of two floating point members called real and imaginary. Comprise a tag called complex in the definition.

b) Declare three variables x1, x2 and x3 of be structures of type complex.

c) Assign the initial values of 1.3 and -2.2 to the member’s x.real and x.imaginary, correspondingly.

d) Declare a pointer variable px to point to a structure of type complex.

e) Declare a one-dimensional 100-element array called cx whose elements are structures of the type complex.

f) Combine the structure definition and the array declaration of part (v) into one single declaration.

g)

i) Define a union called 'dateTime' that contains three members: hour, minute and second.                     
ii) Define a structure called 'calendarDate' that contains three integers members: day, month and year and a member time1 of type dateTime.     
iii) Declare a variable date1 of type 'calendarDate'.
iv) Set the time of date1 to: 10:30:25.   

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M96284

Have any Question? 


Related Questions in Computer Engineering

Using a graphics program design several security awareness

Using a graphics program, design several security awareness posters on the following themes: updating antivirus signatures, protecting sensitive information, watching out for e-mail viruses, prohibiting the personal use ...

1 consider the similarities and differences between basic

1. Consider the similarities and differences between basic research and applied research. What does each contribute to our knowledge about behavior? 2. Describe the characteristics of descriptive, correlational, and expe ...

How many pieces of cheese can you obtain from a single

How many pieces of cheese can you obtain from a single thick piece by making five straight slices? (The cheese must stay in its original position while you do all the cutting, and each slice must correspond to a plane in ...

1 design and implement an iterative version of the

1. Design and implement an iterative version of the factorial function. 2. Design and implement a recursive function for determining whether a string is a palindrome. A palindrome is a string of characters that is the sa ...

Design an algorithm that accepts as input a decimal number

Design an algorithm that accepts as input a decimal number and converts it to the binary-coded decimal (bcd) representation. In the bcd scheme each digit is represented by a 4-bit binary code.

1 a paged memory system has 16-bit virtual addresses and

1. A paged memory system has 16-bit virtual addresses and pages that are 1024 locations long. How many entries must the page table have? 2. If virtual addresses are V bits long, physical addresses are A bits long, the pa ...

Compare the selection sort and insertion sort for random

Compare the selection sort and insertion sort for random data. Use the number of moves and the number of comparisons to make the comparative study.

1 in http draw a figure to show the application of cookies

1. In HTTP, draw a figure to show the application of cookies in a scenario in which the server allows only the registered customer to access the server. 2. In HTTP, draw a figure to show the application of cookies in a w ...

Modify exercise 1 so that the class can keep track of

Modify Exercise 1 so that the class can keep track of multiple courses. Write a program to test your implementation. Exercise 1 Design and implement a class that allows a teacher to track the grades in a single course. I ...

While working with ms dos which command will you use to

While working with Ms Dos, which command will you use to transfer a specific file from one disk to another?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro