Question: Car Sales Report Program Please include Comment and Local Variables. Lab 8 - Arrays and For Loops, Oh My! Car Sales Report Program Write a

Car Sales Report Program
Please include Comment and Local Variables.  Car Sales Report Program Please include Comment and Local Variables. Lab
8 - Arrays and For Loops, Oh My! Car Sales Report Program

Lab 8 - Arrays and For Loops, Oh My! Car Sales Report Program Write a C++ program that asks for the number of cars sold for 3 sales people. Use a for loop to prompt for and retrieve the number of cars sold from the user. Store the number of cars sold in an array variable. . Create a named constant in ALL CAPS equal to the array size to use with your array variable. Once the car sales have been entered, create a report that displays one asterisk (*) per car sold for each sales person. Calculate and display the total cars sold for the month. Reminder: Array indexes should start at zero in your for loop. CS 110 - Intro to Computer Science Week 8 Sample Program Output Welcome to the Car Sales Report Program! This program will generate a monthly sales report for the number of cars sold. * h ws Enter cars sold by Sales Person 1: 8 Enter cars sold by Sales Person 2: 12 Enter cars sold by Sales Person 3: 11 MONTHLY CAR SALES REPORT (each * = 1 car) Sales Person 1: Sales Person 2: ** Sales Person 3: ** Total Cars Sold: 31 Week 8

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!