Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Modified Programming Challenge # 1 0 ( page 9 3 8 ) with Test Cases and file reading. Implement the DivSales class that holds sales
Modified Programming Challenge #page with Test Cases and file reading. Implement the DivSales class that holds sales data for a division, with the array for the sales data by quarter, and a private static variable that holds the total sales for all sales divisions. Do not ask the user to enter the sales data. The program will create the array of six objects, and read the sales data below into the objects from a file called SalesFiletxt The program will then prompt the user for the division number and output the sales for that division, and the total sales for that division as shown below. Use functions as you see fit. No input validation is required. Add a loop in main do not use whiletrue while break or continue so that multiple numbers can be input and to quit. When the user enters to quit, output the total sales for the corporation the private static variable value The program will use the class definition provided below in a separate h file, and use the class member functions to obtain the proper output including the private static variable Do not change the class. Declaration of the DivSales class for the h file class DivSales private: static double corpSales; double divSales; public: double qtrs; void setDivSalesdouble s divSales divSales s; void setCorpSalesdouble s corpSales corpSales s; double getDivSales const return divSales; double getCorpSales const return corpSales; ; Static member variable definition double DivSales::corpSales; Output Format tabs and spacing required: Date for "SalesFile.txt I need help in using visual basic for C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started