Question: QUESTION 14 Consider the following statements: struct supplierType { string name; int supplier ID; class applianceType { private: supplierType supplier; string modelNo; double cost; public:

 QUESTION 14 Consider the following statements: struct supplierType { string name;

QUESTION 14 Consider the following statements: struct supplierType { string name; int supplier ID; class applianceType { private: supplierType supplier; string modelNo; double cost; public: void setApplianceType (string, int, string, double); void printAppliance Type(); // the implementation of all public functions are hided here. // student can assume they are well implemented and feel free // to use these functions int main() { applianceType applianceList (25); // *** your code goes here return 0; Finish the code in the main function. It should do the following: - prompt user to type in the data and store them into the applianceList array until the name of supplier is entered as "NONE". - print all records in applianceList. Note: you should print only the number of records you have read in

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!