Question: The algorithm shown in Figure 2-42 should calculate and display the total amount due, but it is not working correctly. Correct the algorithm, and then

The algorithm shown in Figure 2-42 should calculate and display the total amount due, but it is not working correctly. Correct the algorithm, and then desk-check it using 20, $0.25, and .045 (the decimal equivalent of 4.5%) as the number of folders purchased, folder price, and sales tax rate, respectively. 


Input number purchased folder price Processing Processing items: subtotal Output total due sales tax rate sales tax Algorithm: 1. enter the number purchased and folder price 2. calculate the subtotal by multiplying the number purchased by the folder price 3. calculate the sales tax by dividing the subtotal by the

Input number purchased folder price Processing Processing items: subtotal Output total due sales tax rate sales tax Algorithm: 1. enter the number purchased and folder price 2. calculate the subtotal by multiplying the number purchased by the folder price 3. calculate the sales tax by dividing the subtotal by the sales tax rate 4. calculate the total due by adding the sales tax to the subtotal 5. display the total due Figure 2-42

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Input number purchased folder price sales tax rate n... View full answer

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 Microsoft Visual C# Introduction Questions!