Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

***IMPORTANT*** dont use struct or pointers, ALSO i need TWO programs for this question one using PASS BY REF and one using PASS BY VAL in C++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

I receive useful feedback about my performance.

Answered: 1 week ago

Question

I am encouraged to offer opinions/suggestions.

Answered: 1 week ago