Do statements inside of a loop look much different from those that are not?

Answer:

No—statements inside of a loop are just like any statements. (Although they should be indented to make them stand out.)

Final Version of the Program

Look again at the program's output:

Enter the amount of markup in percent
? 50
The price multiplier is:    1.50
Enter wholesale price
? 100
Retail price:   150
Enter the amount of markup in percent
? 15
The price multiplier is:    1.15
Enter wholesale price
? 100
Retail price:   115
Enter the amount of markup in percent
? 10
The price multiplier is:    1.1
Enter wholesale price
? 100
Retail price:   110
Enter the amount of markup in percent
? 

This is hard to read. The program would be improved if:

  1. It wrote a brief message to greet the user when the program starts out. This should happen just once.
  2. It wrote a blank line after printing each retail price. This can be done with statement that is just the command PRINT, and nothing else on the line.

QUESTION 16:

Add two new statements to the above program to implement these two new features.