Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions