Question: Cobol Chapter 4 If, Move and Data Validation Assignment: Ex4-3 pages 147148 40 points **Make sure to look at Example VSEX4-2AB in the Content area...




Cobol Chapter 4 If, Move and Data Validation
Assignment: Ex4-3 pages 147148 40 points **Make sure to look at Example VSEX4-2AB in the Content area... if you understand how this program works, you should have no problem with this assignment. You should submit the following for these assignments in the following order in ONE Word document. 1. A screen shot of the output from the part "B" program 2. A screen shot of the input screen 3. A screen shot of the data file created in part "A" opened in Notepad. 4. Source code for part "A" program 5. Source code for part "B" program Purpose: To practice designing and coding a COBOL program that validates data as it is entered and creates a new Customer Sales file. Problem: Design and code a COBOL program that validates fields as they are entered and creates the Customer Sales file, NEWSALE.DAT, for EZ Auto Sales. The program should provide for the input of the following fields and validate the fields according to the criteria listed below: Customer Number - Numeric and not equal to zero Customer Name - An entry not equal to spaces Purchase Date - Numeric, 8 digits in the format MMDDyyyy MM>=01 and =0 and =1900 Satisfaction Rating - Must contain a 0,1 , or 2 For each entry that contains an error, display an error message and prompt the user to re-enter the data. Print the current date and time in AM/PM format as part of the heading lines in the data entry screen. After each record is entered, ask the user if he or she would like to enter another record. Once all records have been entered, display the total number of records input to the file. Save this program as EX4-3.CBL. Input Data: Create the new Customer Sales file, NEWSALE.DAT, as output using the following information as input. Customer Sales records have the following layout: Input the following fifteen records using the given data: Output Results: Output consists of the Customer Sales file, NEWSALE.DAT, having the format shown above. Modify program EX3-3.CBL created in Chapter 3 to display the records in the newly created Customer Sales file. If you did not create the program EX3-3.CBL, please follow the directions provided by your instructor for viewing the records in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
