Question
I need help writing the program and IPO, and an understanding of how. The language used is C++ use named constants for numeric literals in
I need help writing the program and IPO, and an understanding of how.
The language used is C++
use named constants for numeric literals in the program and do not use global variables.
Input | Process | Output |
Input | Process | Output |
Input | Process | Output |
Winning Division -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 two functions that are called by main: getSales and findHighest.
Design: First use an IPO chart to design your program. Your chart should contain three separate sections, one for each function.See attached blank IPO chart.
Modularity:
main - will call the getSalesfunction 4 times, passing it the division name, each time getting the quarterly sales from a different division. It will then call the findHighest function, passing it the four sales figures, which will determine and display the highest.
getSales - will accept input of the quarterly sales from the user, using the division name passed by main to prompt the user. It will return the quarterly sales amount to main. Input validation - Validate that the sales amount entered is greater than zero.
findHighest - will accept the four sales figures from each division as parameters and determine which is the highest of the four.It will display the division name and amount that is the highest.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started