Gallery
Debug 4.4. Money-Off
Share
Explore
Debug 4.4. Money-Off

icon picker
The Task

Activity: Debug 4.4 Money Off 🐞

Start Here

A bug report has been has been submitted on this program. This program should ask the user for an original price, a sale price and then display these values along with a message to say how much money has been saved. However it doesn’t seem to be working. Can you help fix it?
Run and explore the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.
sample output
Please enter the original price: 1234
Please enter the sale price: 567

Super Sale!
This item used to cost £1234
Now available at £567
You save £667
Good luck! 🍀
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.