Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

Describe sources of ethical guidance.

Answered: 1 week ago

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

13. You always should try to make a good first impression.

Answered: 1 week ago