Question: Write an interactive C++ program that reads in the total money made each month in 2020 by a company fort shirt sales. The program must
Write an interactive C++ program that reads in the total money made each month in 2020 by a company fort shirt sales. The program must contain a void function named GetValues that reads in the total sales for each month from the user and stores them into an array named tshirts 2020. The program must also contain a value- returning function named Total2020 that calculates the total money made on t-shirt sales for the entire year and returns that value to the main program. The main program prints the total money made each month and prints the total money made for the year. The main program also calculates and prints the sales tax charged on the t- shirt sales for the year. Declare the sales tax percent as a constant variable equal to 7.50%. Note: Sales tax for the year is calculated on the total money made for the year Your program must contain the following two function declarations/prototypes: void GetValues(double[].int); double Total2020(const double[], int)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
