Question: Write the program for Lab #4 with the following changes: assume a larger data set check for error handling on: DAY-OF WEEK, SALESPERSON-NUMBER, & TOTAL-AMOUNT-SOLD
Write the program for Lab #4 with the following changes:
assume a larger data set
check for error handling on: DAY-OF WEEK, SALESPERSON-NUMBER, & TOTAL-AMOUNT-SOLD
check of an ON SIZE ERROR for TOTAL-WEEKLY-SALES
Print page numbers
Do page breaks
Display date compiled
Format the output not to show leading zeros for sales values
Use PERFORM ... VARYING
Original Lab #4- Last Day of Regularly Scheduled Class
Write this program using "good" programming techniques and documentation!
Page 380, Problem #7 programming assignment program (.cob file), and output files are to be posted here.
The We-Sell-Low Store has twenty-five salepeople. For each day of the week (Mon-Sat), a record is created that includes:
Sales Record Layout
Field Size Type No. of Decimal Positions (if numeric)
DAY-OF-WEEK 1 Alphanumeric
(1 = Mon
2 = Tue
.
.
.
6 = Sat)
_______________________________________________________________________________
SALESPERSON-NUMBER 2 Alphanumeric
_______________________________________________________________________________
TOTAL-AMOUNT-SOLD 7 Numeric 2
_______________________________________________________________________________
The records are in sequence by Day of Week (1-6) and within day of week, by salesperson number (1-25).
Print a report indicating the total amount sold for each day:
DAY TOTAL SALES
MON $99,999.99
TUE $99,999.99
. .
. .
. .
SAT $99,999.99
TOTAL WEEKLY SALES $999,999.99
EXTRA CREDIT: 10% If you give the subtotals by sales person for each day.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
