Question: Kindly write C++ code for following questions. Write a test driver to test the following: instantiates one instance of Consolidation. invokes readFile methid to read

Kindly write C++ code for following questions.

Kindly write C++ code for following questions. Write a test driver to

test the following: instantiates one instance of Consolidation. invokes readFile methid to

Write a test driver to test the following: instantiates one instance of Consolidation. invokes readFile methid to read data from all input files to the Rental array object r.Prompts the user to enter the month and invokes the writeFile method to write the matched records from the Rental array object r. to the output file.

class Rental pivate string shopld; IIs1, s2, s310 string mallld; //m1, m2, m3 int month; double amount, public: Rental(string=" ", string=" ", int = 0, double= 0); void setRental(string, string, int, double); string getShopld); string getMallID0 int getMonth0 double getAmount); ation pivate Rental r[50] int rcount public: void readFile); void writeFile(int month); Additional Information: Class Rental Data nember/method Remarks Rental(string=" ", string=" ", int = | Constructor 0, double= 0); void setRental(string, string, int, Assigns the values pass-in ents to the data

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!