Question: F G H Fn 1. Parallel Arrays (Two arrays are called parallel if their data at the same index value is related.) Write a C++

 F G H Fn 1. Parallel Arrays (Two arrays are called

F G H Fn 1. Parallel Arrays (Two arrays are called parallel if their data at the same index value is related.) Write a C++ program to process car sales data. The input file has 10 lines; each line has the last name of a salesperson, followed by the number of cars that person sold this month. Input: The program calls an input function to read the data into parallel arrays. An array names of type string holds the last names; an array cars of type int holds the number of cars sold. For any index k between 0 and 9, the number of cars sold by names[k] is cars[k] Processing and Output: The program determines and outputs the total number of cars sold this month. Using the indexLargestElement function, the program finds the largest number of cars sold by one person, and outputs that salesperson's name and number of cars sold

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!