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

In el farol extension 1 we modify the color based on reward

In El Farol Extension 1, we modify the color based on reward with the agents starting as white and becoming darker as they accumulate rewards. Can you modify this code to use a different color? Or can you modify it so th ...

1 compare and contrast full- and partial-mesh topologies

1. Compare and contrast full- and partial-mesh topologies. What advantages does a partial mesh have compared to a full mesh? What advantages does a full mesh have compared to a partial mesh? 2. Why is it difficult to ach ...

In the fifth lab we investigate the state and behavior of

In the fifth lab, we investigate the state and behavior of the POP3 protocol. We retrieve the mails stored in our mailbox at the POP3 server and observe and analyze the states of the POP3 and the type and the contents of ...

Discuss how collision and broadcast domains are related but

Discuss how collision and broadcast domains are related, but different. You should compare and contrast the two domains.

Question 11 corporate culture has been said to be the

Question 1: 1. Corporate culture has been said to be the toughest component of a business to change. Do you agree or disagree with this statement and why? 2. Define the five types of power according to French and Raven's ...

1 in your opinion is computer forensics a viable tool in

1. In your opinion, is computer forensics a viable tool in the fight against the cyber crime epidemic? 2. Discuss the difficulties faced by cyber crime investigators. 3. Differentiate between computer and network forensi ...

Describe the six steps you should follow when creating an

Describe the six steps you should follow when creating an OO application. Why do you think it is important to complete the steps in the proper order? What results when they are not in the proper order? After your initial ...

Assume we have a stream cipher whose period is quite short

Assume we have a stream cipher whose period is quite short. We happen to know that the period is 150-200 bit in length. We assume that we do not know anything else about the internals of the stream cipher. In particular, ...

1 the as number in an organization is 24101 find the range

1. The AS number in an organization is 24101. Find the range of multicast addresses that the organization can use in the GLOP block. 2. A multicast address for a group is 232.24.60.9. What is its 48-bit Ethernet address ...

Assignmentjoes automotive performs the following routine

Assignment Joes automotive performs the following routine maintenance services: oil change: (a certain dollar ammount), lube job: (a certain dollar ammount), radiator flush(a certain dollar ammount), transmission flush(a ...

  • 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