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 describe all constructors of the savings account class

1. Describe all constructors of the Savings Account class. List all methods that are inherited from the Bank Account class. List all methods that are added to the Savings Account class. 2. Can you convert a superclass re ...

Compare and contrast the protocol field at the network

Compare and contrast the protocol field at the network layer with the port numbers at the transport layer. What is their common purpose? Why do we need two port-number fields but only one protocol field? Why is the size ...

Q1 what are the three techniques to improve performance of

Q.1 What are the three techniques to improve performance of CPU? Q.2 Describe how a cache memory is organized? Q.3 What are the three different approaches are commonly used to enhance the performance of memory? Q.4 Narra ...

Continuation of previous questionsection governance and

Continuation of previous question Section: Governance and Ethics Discuss the role and effect of corporate governance on publicly listed companies Illustrate your answer with examples of aspects of corporate governance pr ...

1 extend the example of deriving required logging

1: Extend the example of deriving required logging information to the full Bell-LaPadula Model with both security levels and compartments. 2: In the example of deriving required logging information for the Chinese Wall m ...

Course takeaway please respond to the followingfrom the

"Course Takeaway" Please respond to the following: From the lessons and conceptual ideas presented in this course, determine the single most impactful or interesting lesson / concept you have learned. Provide a rationale ...

A program is to perform two products one is a vector

A program is to perform two products: one is a vector product of two 100-element vectors and the other is the product produced by multiplying the corresponding elements of a 1000 by 1000 element matrix by a scalar consta ...

1 what is the difference between law and ethics2 what is

1. What is the difference between law and ethics? 2. What is civil law, and what does it accomplish? 3. What are the primary examples of public law? 4. Which law amended the Computer Fraud and Abuse Act of 1986, and what ...

Programming assignment data structuresa college wants to

Programming Assignment: Data Structures A college wants to you to write a test program for tracking their course sections. Classroom capacities on campus range from a minimum of 1 student to a maximum of 30 students. Dat ...

Describe a dbms and its functions list at minimum three of

Describe a DBMS and its functions. List, at minimum, three of the popular DBMS products and give a brief description of each. 200 words and APA format Open Source Software Research Project Research an open source softwar ...

  • 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