Question: Declare a structure type for the following record (data items): you must chose a name for the structure tag and each of its member variables:

Declare a structure type for the following record (data items): you must chose a name for the structure tag and each of its member variables:

Declare a structure type for the following record (data items): you must

Exercise S2 1. An employee record consisting of: An employee's name (data type string) His/her identification number The pay rate The number of hour of work 2. Given the following structure type: struct TempRecord \{ string tempName; char type; int quantity; double unitPrice; \}; a. Declare structure variables iteml 1 and item 2 of the structure type TempRecord. b. Assign values to the member variables of iteml as follows: - Name: pasta - Type: C - Quantity: 26 - Unit price: 1.75 c. Read values into the member variables of item 2 . d. Compute the price of item 1 and that of item 2 and print them

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!