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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!