Answered step by step
Verified Expert Solution
Question
1 Approved Answer
on dev c In a fast-food restaurant, Hamburger is sold for 9 TL, Coke for 3 TL and Potato for 4 TL. Since it is
on dev c
In a fast-food restaurant, Hamburger is sold for 9 TL, Coke for 3 TL and Potato for 4 TL. Since it is a campaign, every second potato purchased is given at a 50% discount (if the number of potatoes purchased is three, once, four, twice, five, and six, three times; the given numbers can be increased according to this pattern) Orders are created by writing the initials of the products side by side. In case of purchasing more than one of the same product, the same letter is re- entered for each item (see screenshot below). After entering the orders on the keyboard, code a program that writes the discount earned and the amount to be paid for each order on the screen Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started