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

1 in what ways can network management impact a service

1. In what ways can network management impact a service provider's business? 2. Give an example of a network management technology or feature that can affect revenue. 3. Give an example of a network management technology ...

Patient identity management is a critical function for

Patient Identity Management is a critical function for healthcare facilities. List and explain five tips for successful patient identity management that you would give to hospital administrators and practitioners.

What is an advanced persistent threat apt what is the goal

What is an Advanced Persistent Threat (APT)? What is the goal of an APT? How can a business protect itself from an APT? What tools can be used to detect an APT? Be sure to cite sources.

What happens to a persons heart rate as that person

what happens to a person's heart rate as that person increase his or her activity level?

A program written for personal use imposes rather less

A program written for personal use imposes rather less stringent requirements than a product that is also to be used by other people. According to (Brooks, 1995), the latter may require three times as much effort. Discus ...

Use four separate supply and demand diagrams to illustrate

Use four separate supply and demand diagrams to illustrate the effects of the following possible shocks on the equilibrium price and quantity of avocados. In each diagram clearly indicate the initial equilibrium price an ...

In an ipv4 packet the size of the payload in the first

In an IPv4 packet, the size of the payload in the first fragment, in octets, is equal to Total Length - (4 × IHL). If this value is less than the required minimum (8 octets for TCP), then this fragment and the entire pac ...

Discuss one of the following topics with an eye to how

Discuss one of the following topics with an eye to how individual choices in everyday life affect the environment: (a) drinking from disposable cups for coffee or soda pop, (b) driving a sports utility vehicle that gets ...

Write a one-page summary of a networked application of your

Write a one-page summary of a networked application of your choosing. Conciseness is more important than comprehensiveness, although you should strive for a balance between both. The definition of a networked application ...

Microsoft word - tcp performance-opnet assignmentdocxpdftcp

Microsoft Word - TCP Performance-OPNET Assignment.docx.pdf TCP Performance-OPNET 1. Duplicate the scenario and rerun the simulation using client TCP window sizes of 16 KB, 24 KB, 32 KB, 48 KB, and 64 KB. To change the bu ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate