CSE108 Lab 4 Solved

30.00 $

Category: Tags: , ,
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

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:

  • Days (sunday, monday, tuesday, wednesday, thursday, friday, saturday)
  • 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

April 2, 2022

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(1Dolar=4TL,1Euro=5TL,1Pound=9TLand1Peso=10TL)

  • –  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

April 2, 2022

  • lab4-6pilnx.zip