Академический Документы
Профессиональный Документы
Культура Документы
HOMEWORK ASSIGNMENT 5
SALESPERS FIRST SALE
ONS
AMOUNT
NAME
NUMBE
R
OF
Jose
$8,500.00
SALES
3
Sally
Bill
$15,500.00
$6,000.00
1
3
$-100.00
$3,000.00
$1,000.00
2
1
Rachael
REMAINING SALES
$14,499.00
$1.00
$11,550.00
$25,000.00
$25,001.00
$0.00
$9,575.00
AVERAGE
SALE
HIGHEST SALE
LOWEST SALE
$7,666.67
$14,499.00
$1.00
$15,500.00
$14,183.33
$15,500.00
$25,000.00
$15,500.00
$6,000.00
Error: the
sale cannot
be less than
0 or greater
than 25000.
Please enter
a correct
sale
amount:
$6,287.50
$1,000.00
Error: the
sale cannot
be less than
0 or greater
than 25000.
Please enter
a correct sale
amount:
Error: the
sale cannot
be less than
0 or greater
than 25000.
Please enter
a correct sale
amount:
$3,000.00
$9,575.00
$1,000.00
$1,000.00
#
#
#
#
#
#
#
Program:
Average Sale Calculator
Programmer: Susan M Stuedli
Date:
September 24, 2015
Abstract:
This program will input a salesperson's name followed by the
first sale amount and then the number of sales as indicated
below for a used car dealership. The program will then display
the salesperson's average, highest, and lowest sale.