Professional Documents
Culture Documents
This application determines the price of an order depending on whether or not the buyer is a wholesaler. If the buyer is a wholesaler they get a discount. Code 2 Test Printout 1. Name and description 2. Option Explicit 3. Code Commented 4. Clear 5. Exit 6. Calculate Button correct Declare variables Get the quantity from the textbox. Get the price from the textbox Calculate the totaldue If the person is a wholesaler then calculate the discount update the totaldue else discount is 0.0 end if Display the discount Display the totaldue 2 pts __________ 4 units @ $10 - wholesaler 2 units @ $5 - non-wholesaler 1 pt 1 pt 1 pt 2 pts 1 pt 7 pts __________ __________ __________ __________ __________ __________
TEST DATA -