From the course: COBOL Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Simulated cash register

Solution: Simulated cash register - COBOL Tutorial

From the course: COBOL Essential Training

Start my 1-month free trial

Solution: Simulated cash register

(upbeat music) - [Instructor] Hi, welcome back. How did you make out what the challenge? I hope you had fun. I'd like to show you my solution to the challenge, but I want to remind you again that everybody programs a little differently. So yours might be a little different. The first thing that you'll see and here on line nine is that I've added a pet sales report and I assigned it to the PETSALESREPORT.DAT. We saw this in the challenge, but let's take a quick look. So this was my goal: to be able to print out a report based on the transactions coming in from the file. I wanted to list the description of the items that the customer was buying and then have a subtotal with the customer's name, the quantity and the subtotal amount that they purchased. All right, let's go back over to the program. I'm going to scroll down a little bit. One thing I had to do is add on line 25, a pet sales report and a print line, to be…

Contents