Question: write two programs in C++ 1)one using pass by value function 2)one using pass by reference function 3. Winning Division Write a program that determines

write two programs in C++

1)one using pass by value function

2)one using pass by reference function

3. Winning Division

Write a program that determines which of a companys 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 main . double getSales() is passed the name of a division. It asks the user for a divisions quarterly sales figure, validates the input, 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. Input Validation: Do not accept dollar amounts less than $0.00.

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!