Write a program that determines which of a company’s four divisions (Northeast, Southeast, Northwest, and Southwest) had

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a program that determines which of a company’s four divisions (Northeast, Southeast, Northwest, and Southwest) had

Post by answerhappygod »

Write a program that determines which of a company’s four
divisions (Northeast, Southeast, Northwest, and Southwest) had the
greatest sales for a quarter. It should include the following two
functions, which are called by the main function.
double getSales() is passed the name of a
division. It asks the user for a division’s quarterly sales figure,
validates that the input is not less than 0, then returns it. It
should be called once for each division.
void findHighest() is passed the four sales
totals. It determines which is the largest and prints the name of
the high grossing division, along with its sales figure.
Sample output:
python
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply