Question: C++ Array Help. I need help on the second picture not the first. Problem description Write a program that asks the user to enter the
Problem description Write a program that asks the user to enter the names of three salesmen. The program should then accept the sales produced for salesman for each quarter of the year. Display the name, and the total sales amount, of each salesman. Name your program Lab11 Exercise1.cpp. Your program should have at least three functions: Your main, a second function that reads in the salesman name and sales amounts for the quarters, and a third function that displays the results. Do not use any global variables. You will need to pass data to the functions as parameters. Hint: Consider using two arrays in parallel. One array holds the name of the salesman (string data type) and the other array holds the sales numbers (double data type). Since the data for each salesman is of different data types, you cannot use one array to hold all of the data (An array is a collection of identical data types). Arrays are considered to be parallel if one of the subscripts in each array references the same thought (e.g. name[1] holds the name for the second salesman and the sales data for the second salesman would be in sales 1]...) Hint: It is possible to solve this problem using a two dimensional array to hold the sales data with one dimension referring to quarter and the other dimension referring to the sales amount for the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
