Extended Task 1

Peter Porker's Pork Pie Emporium

Hello, Peter Porker here...

I need a new program for customer orders.

I need the customer to enter how many scotch eggs (30p each), pork pies (80p each) and quiche tarts (£1.40) they want to order.

Next, ask them to confirm their choice. If they are not happy, ask the questions again.

If they confirm their choice, print a receipt showing their order and total.

To make your program better, you should use validation (either while loops or error handling) to make sure that a user must enter a correct value.

For this task you will need to create a document and include the following sections (with screenshots where appropriate):

  • An introduction to explain the Purpose of your program.

  • List of Requirements for a successful program.

  • Screenshots of your code (with comments in your code to show understanding).

  • Testing – Create a plan to show how you will test your program and then explanations of any errors that you found and how they were fixed.

  • An Evaluation of what worked, what didn’t and how you met each of your requirements from your original list. Also, discuss further improvements that you could have made to improve your program.

Example solution:

© CSNewbs 2019