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 - COBOL Tutorial
From the course: COBOL Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Introduction to verbs3m 51s
-
(Locked)
Computational verbs7m 7s
-
(Locked)
Conditional expressions5m 36s
-
(Locked)
Perform statement3m 2s
-
(Locked)
Perform thru2m 30s
-
(Locked)
Perform times5m 9s
-
(Locked)
Challenge: Write code to simulate a cash register4m 13s
-
(Locked)
Solution: Simulated cash register4m 27s
-
-
-
-
-
-
-
-