You are on page 1of 2

SCHOOL OF COMPUTER AND COMMUNICATION ENGINEERING

UNIVERSITI MALAYSIA PERLIS

EKT120 COMPUTER PROGRAMMING


ASSIGNMENT 4
[C3, C4, C6, CO2, CO3, C04, PO1, PO2, PO5, PO11]

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

Item Name: Sugar


Item Id : 00010
Item Price : 2.75Example of the screen output is as below:

1- Search item by name


2- Search item by id

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]

You might also like