Question: a. Write C++ statement to define a structure named hpInfo that has members as shown in the following table. Member of hpInfo Datatype price int

a. Write C++ statement to define a structure named hpInfo that has members as shown in the following table. Member of hpInfo Datatype price int capacity int (3 Marks) b. Write C++ statement to define a structure named hp that has members as in the following table Member of hp Datatype hpMake cstring hpModel cstring yearModel int modelInfo hpInfo (defined in 3(a)) (5 Marks) c. Write CH statement to declare a variable named phoneInfo with hp datatype that you have defined in Question 3(b). (2 Marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
