Question: You sell the book C++ for Fools. Write a program that has you enter a years worth of monthly sales (in terms of number of
You sell the book C++ for Fools. Write a program that has you enter a year’s worth of monthly sales (in terms of number of books, not of money).The program should use a loop to prompt you by month, using an array of char * (or an array of string objects, if you prefer) initialized to the month strings and storing the input data in an array of int. Then, the program should find the sum of the array contents and report the total sales for the year.
Step by Step Solution
3.28 Rating (169 Votes )
There are 3 Steps involved in it
ANSWER include using namespace std int main const int MONTHS 12 int totalSales 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
