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

Give your suggestion on by using an extra table that stored

Give your suggestion on: By using an extra table that stored space positions it would be possible to significantly improve the efficiency of the expansions loop.

With the number of people now capable of accessing the

With the number of people now capable of accessing the Internet from mobile devices, it is crucial that organisations develop mobile versions of their Web sites. Whether you have experience developing mobile Web sites or ...

In el farol extension 2 we display the minmaxavg rewards

In El Farol Extension 2, we display the Min./Max./Avg. Rewards, but these statistics are mainly used for a normal distribution. What should you display if you expected the rewards were not normally distributed? Modify th ...

1 explain the benefit of autoconfiguration2 explain the

1. Explain the benefit of autoconfiguration. 2. Explain the benefit of renumbering. 3. Which field in the IPv6 packet is responsible for multiplexing and demultiplexing?

An ip datagram has arrived with the following partial

An IP datagram has arrived with the following partial information in the header (in hexadecimal): 45000054 00030000 2006... a. What is the header size? b. Are there any options in the packet? c. What is the size of the d ...

Using a risk assessment and business impact analysiswrite a

Using a risk assessment and business impact analysis. Write a draft memo to the president of the university explaining the need for a business continuity plan. Be sure to include your recommendations on how you would imp ...

Consider the uc davis policy on reading electronic mail a

Consider the UC Davis policy on reading electronic mail. A research group wants to obtain raw data from a network that carries all network traffic to the Department of Political Science. a. Discuss the impact of the elec ...

1 what is tombstoning and why use it2 discuss in detail

1. What is tombstoning and why use it? 2. Discuss in detail Idle Detection in Windows Phone 8 Applications. 3. Discuss in detail the software input panel (SIP). 4. Discuss Data Binding. 5. Discuss the Windows Phone Toolk ...

Question 11 what is the difference between linear and

Question 1 1. What is the difference between linear and non-linear accident models? Why are non-linear accident models not used more often in workplace accident investigations? Your response must be at least 75 words in ...

Mr beautiful an organization that sells weight

Mr. Beautiful, an organization that sells weight training sets, has an ordering cost of $35 for theBB-1 set (BB-1 stands for Body Beautiful Number1). The carrying cost for BB-1 is $20per set per year. To meet demand, Mr. ...

  • 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

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

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen