I suck at programming and i rlly need help as it's due in a week's time
...
OneTop sells iPhones and its accessories. Due to the growing demand for iPhones, theshop owner has decided to automate the sales process using a C program.
This program allows the customer to select the phone model (iPhone 11, iPhone X) and itsaccessories(ear phone, additional battery, screen protector).
Once the customer selects the phone model, the cost will be displayed. It then prompts thecustomer to select accessories and adds in costs of the selected accessories. The details ofthe selected items and the total cost are then displayed.
When the above mentioned transaction is completed, it will then display the main menu againto handle the next customer.
...
1) program must first get user's ID (ID 1-5)
2) if ID is correct, customers can proceed to choose either iphone11 or iphoneX
3)upon choosing either of the iphones, they can choose if they want to buy any accessory
4) if customers select 'NO', program will calculate total price then display the last 3 customer's purchased details (iphone model + accessory + total purchase amt) the customers can choose if they want to make another purchase. Program will end if they select 'NO'
5)if customers select 'YES' they can choose either one of the accessories. Upon selection, program will calculate total price, then display last 3 customer's purchased details (same as above) the customers can choose if they want to make another purchase. program will end if they select 'NO'
...
if i'm not wrong the program should be able to loop but i'm honestly not very sure
...
please help me create a c programme !! and thank you for reading this