CSE108 – Computer Programming Laboratory (Solution)

$ 24.99
Category:

Description

This lab will be graded on a scale of 100. No collaboration is permitted.

Write a program that performs the following tasks respectively. You are going to write a “TechMarket Application” program.
PS: Don’t use any library other than stdio.h, don’t use arrays and strings.

Part 1. (20 pts) Menu:
The menu should be an infinite loop with do-while until select the EXIT.

Part 2. (25 pts) Buy Product:
Day, Selections in main menu and products should be enumerated type:
• Products(harddisk, monitor, keyboard, mouse)
• Selections (buy, orders, prices, exit)
In this part, the user selects a product form list, then the user should select arrival day. Finally, the Product and Day should be written to the “orders.txt” file as an enum value. DO NOT DELETE PREVIOUS ORDERS. Expected Output

Part 3. (20 pts) Orders: In this part, you need to list all orders with days. You should write a function named “readOrderFile(print_days)”. Also, you need to “void print_days(int day)” function as an argument(parameter) to readOrderFile function. Write a function that print_days takes day value [0-6] and print the terminal which day user selected.
Expected Output

Part 4. (35 pts) All Orders Prices: In this part, you need to read “orders.txt” file and write the terminal product name and day. Finally, you need to write total prices as Turkish Liras.
– Products prices and currencies must be enumerated.
• Product Prices (Hard disk 2 Dolars, Monitor 5 Euro, Keyboard 3 Pounds and Mouse 10 Peso).
• Currencies (1 Dolar = 4 TL, 1 Euro = 5 TL, 1 Pound = 9 TL and 1 Peso = 10 TL)
– Write an integer add and multiple function, send these functions as an argument(parameters). You also need to send the print_days function.
– Calculate prices as TL and write the terminal.

Expected Output

Reviews

There are no reviews yet.

Be the first to review “CSE108 – Computer Programming Laboratory (Solution)”

Your email address will not be published. Required fields are marked *