Professional Documents
Culture Documents
Name : _____________________________________________
Matric No : _____________________________________________
Programme : _____________________________________________
ABC supermarket wanted to have a computer system that able to record the items in the
supermarket and the price of each item. Each item has its id number. Your task is to write a
program that able to input new item record, display the record and update the record.
ABC Supermaket
===============================
1 Input new item
2 Update Item information
3 Display the item information
4 Exit
================================
Input new item menu allow the user to input new item, its id, volume and price. Example of the
screen output for Input new item menu is as below
if user choose 1,
Please enter item name: Sugar
If found
Please enter the volume:50
else
item not found
If user choose 2
Please enter item id: 00010
if found
Please enter volume: 50
Display menu will display the list of the items available and the information about the item
Hint:
You need to have 4 arrays, You can use 100 as your maximum size of the array.
You can create 3 functions in order to solve the problem.
[30 marks]