Please create using C# A restaurant offers a $10 discount if the total amount is at least $40. If the amount is less than $40, a $5 discount is given if the customer has a coupon and the amount is at least $20. If the amount is less than $20, the coupon gives a 10% discount. Write an if statement, assume that the variables are declared as follows: float amount = 15.0F; float discount; bool coupon = true; 1. Create a text box for Total Amount of Check  2. Add a Check Box to indicate that a coupon has been submitted  3. Labels for the two above, plus two labels for the Amount Due (one saying' 4. Amount Due, and one showing the amount due in currency)  5. Calculate and Clear Buttons

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question

Please create using C#

A restaurant offers a $10 discount if the total amount is at least $40. If the amount is less than $40, a $5 discount is given if the customer has a coupon and the amount is at least $20. If the amount is less than $20, the coupon gives a 10% discount. Write an if statement, assume that the variables are declared as follows:

float amount = 15.0F;

float discount;

bool coupon = true;

1. Create a text box for Total Amount of Check

 2. Add a Check Box to indicate that a coupon has been submitted

 3. Labels for the two above, plus two labels for the Amount Due (one saying'


4. Amount Due, and one showing the amount due in currency)

 5. Calculate and Clear Buttons

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Types of Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning