Question: You are writing a web application that will determine how much someone will receive as a discount when they purchase a certain dollar amount. If
You are writing a web application that will determine how much someone will receive as a discount when they purchase a certain dollar amount. If the user enters $200, based on the following code, what would the discount be? #Declare Variables Declare sale as float
Declare discount as float #User enters in total sale and then assigned to dblSale variable write "Enter in the Total Sale Amount: " input sale If sale > 50 Then discount = .35 * sale End If If sale > 40 Then discount = .25 * sale End If If sale > 30 Then discount = .20 * sale Else discount = .10 * sale End If
| 20 |
| 60 |
| 40 |
| 70 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
