Question: 1. Write a C+program to process car sales data. The input file has 10 lines; each ine has the last name of a salesperson, followed

 1. Write a C+program to process car sales data. The input

1. Write a C+program to process car sales data. The input file has 10 lines; each ine 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 O 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. 2. Selection Sort Use the selection sort algorithm to arrange the following list in ascending order: 12, 50, 68, 30, 46, 5, 92. 10, 38 Write a C++program that declares an array list and initializes it to these 9 elements. The program calls the selection sort function, which is modified to output the list after each iteration of the outer for loop, so you can compare the results with those obtained by hand

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!