You are on page 1of 1

Sana'a University ‫جامعة صنعاء‬

Faculty of Computer & IT


‫كلية الحاسوب وتكنولوجيا المعلومات‬
Programming 2
Final Project

Make a simple and small program to represent supermarkets and food


products. Every supermarket has name and food products. Every product has
ID, Name, Barcode, Price ,and Tax.
General Instruction:

It must include ( Functions – Structs –Arrays– files ) and all things that are needed and we covered
them during the course.
- You must use ( Files to ( store /restore ) data ( to/from ) hard Disk ) .
- You must use your own library and include it in the program.
- Program must validate the input information for all.
● For example : if you ask the user to enter barcode it should be number and not accepted to
enter letters or more than 13 digits.

The program outputs must include at least the following: ( you can add more )

You have to check if the


ID – Productname - information of the new
Barcode – Price-Tax product is registered before
for another product.

calculatedTax’ method is used to calculate the Tax at


1 – Add Product. the same time of adding the product. Tax = 0.5%.
2-Calculate Tax .
Search by ID- Productname
If the product not found null should be
3 – Delete Product . returned or ask to enter the correct one.
4 – Edit Product . Search by ID- Productname
5- display all products
information .
6- Sort products. Sort product descending by their barcode and price.

7 – Exit . End the program

😊 Good Luck😊
Dr \ Musa Ghurab

Teacher Assistance

Taghreed Alquhali

You might also like