Cobol Programming COMP 210
LAB #3 – Working with files in COBOL
• Create a simple Cart Application
References: Read all the course’s material. You should have all the information you need to complete all the exercise. You can check the [login to view URL] material if you have access. If you don’t, please refer to the material given in class
Instructions: Be sure to read the following general instructions carefully:
This lab should be completed individually by all the students. You will have to demonstrate your solution in a scheduled lab session and submitting the project through e-learning link.
You must name your Cobol File according to the following rule:
Apply the naming conventions for variables, and paragraphs:
- variable names start with a lowercase character and follow Camel Case rule
- Paragraph must start with the number of the paragraph flowed by a dash symbol and the name of the paragraph. Example: 100-MYPARAGRAH.
You are asked to create a shopping Cart application using Cobol Language.
You must Welcome the user to the Shopping Cart Application list application before starting asking to insert the values.
You must show the information as a menu of the items stored in the file guitars.dat.
Then you must ask the user what product they want to add to the shopping cart.
When the user finished buying, you must thank the user for using the application. All the products bought by the user must be stored in another file and show the total as a receipt.
NOTE: you must use at least one of the structure seen in the last week’s class.
Correct implementation of variables (variable declarations)
Correct implementation of the logic
Comments, correct naming of variables, paragraphs, etc.
Guitar file layout:
Price (2 Decimals)