Question: Write a program that determines which of a company's four divisions (Northeast, Southeast, Northwest, Southwest) had the greatest sales for a quarter. It should include
Write a program that determines which of a company's four divisions (Northeast, Southeast, Northwest, Southwest) had the greatest sales for a quarter. It should include the following two functions which are called only by main.
double getSales() - it is passed the name of a division. It asks the user for a division's quarterly sales figure, validates the input then returns it. It should be called once for each division.
void findHighest() - it is passed the four sales totals. It determines which is the largest and prints the name of the high gtossing division along with it's sales figure.
The programming should provide an error should a value be less than 0.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
