Question: Please write in C + + Programming: Write / define a structure data type and name it as drink. It has two data type which

Please write in C++ Programming:
Write/define a structure data type and name it as "drink". It has two data type which is (i) to
store the name of drink i.e. LIPTON, (ii) to store the price per unit of the drink
Write/define another structure data type and name it as "food". It has two data type
which is (i) to store the name of food i.e. nasi lemak, (ii) to store the quantity of the food
Write/define a parent structure data type and name it as "restaurant". It consists of drink
and food structure data type.
Declare a structure data type by calling the restaurant structure data type.
Modify a program to ask users to input two drinks and two foods for two restaurants.
Display your Final Output.
Please write in C + + Programming: Write / define

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 Programming Questions!