Ask Question, Ask an Expert

+61-413 786 465

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

Quesiton for completion of the program use arrays and

Quesiton: For completion of the program, use arrays and files. Instead of prompting the user for the prices of the book, update the website program to reflect the following changes: • Read the prices into an array from a ...

Assignmentsuppose a particular fa called fin has the

Assignment Suppose a particular FA, called FIN, has the property that it had only one final state that was not the start state. During the night, vandals come and switch the + sign with the - sign and reverse the directi ...

Research current literature to identify a recent project

Research current literature to identify a recent project that has combined the processing capacity of numerous small computers to address a problem. Identify the operating system used to coordinate the processors for thi ...

Biodiversity refers to the variety of living organisms

Biodiversity refers to the variety of living organisms found within an ecosystem. In your description, evaluate the role of humans in the current biodiversity loss situation and increased species extinction rate. In addi ...

Good morning im still new and trying to grasp certain

Good Morning. I'm still new and trying to grasp certain aspects of windows server and windows overall. I'm trying to understand what is the importance of windows server update services and windows defender when it comes ...

Suppose you are given an undirected graph g with weighted

Suppose you are given an undirected graph G with weighted edges and a minimum spanning tree T of G. • Design an algorithm to update the minimum spanning tree when the weight of a single edge e is increased. • Design an a ...

In a large university 6 of students live in dormitories a

In a large university, 6% of students live in dormitories. A random sample of 14 students is selected. What is the probability that the sample contains more than five students who do not live in the dormitories?

Task allocation and deallocation of mono-dimensional and

Task Allocation and deallocation of mono-dimensional and bi-dimensional arrays represented by pointers a. Declare and implement a function CreateArray(...) that returns a pointer to an array of n integers. b. Declare and ...

On a single diagram illustrate the following using the uml

On a single diagram, illustrate the following using the UML notation for objects, links and messages. (a) An object of class Window, with no attributes shown; (b) An object of class Rectangle with attributes length and w ...

Question suppose that a web server has a link speed of

Question : Suppose that a web server has a link speed of 1Gbps. And suppose that each machine in a botnet has a link speed of 1Mbps a. How many botnet machines are needed to send data to the web server in order to fill t ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As