Which five Python programming constructs must be used to achieve full marks in the assessment?
Input, output, selection, iteration, and lists.
What is the maximum number of pizzas allowed in a single order?
The maximum number is 20 pizzas.
In Stage $1$ (Customer Details), which three pieces of information must the program request?
Name, address, and phone number.
According to the revision guide, what data type should be used to store the phone number?
The phone number should be stored as a string.
Write the Python code to prompt a user for their address and store it in a variable called ‘address’.
address = input(“Enter your address: “)
What is the primary purpose of Stage $2$ in the pizza programming task?
To display the menu options and prices clearly to the user.
Which data structure is used to store the menu items in the Stage $2$ example?
A list is used to store the menu items.
Write the Python loop used to print every item in a list named ‘menu’.
for item in menu: print(item)
In Stage $3$, which three variables must be initialised before starting the ordering loop?
An empty list for orders, a total price, and a pizza counter.
What is the initial value of the ‘total_price’ variable in Stage $3$?
The initial value is $0$.
What is the initial state of the ‘orders’ variable before any pizzas are added?
It is an empty list, written as $[]$.
Which programming construct is utilised in Stage $4$ to allow for multiple pizza orders?
Iteration (specifically a while loop).
What is the specific loop condition used in Stage $4$ to enforce the pizza limit?
while pizza_count < $20$:
In Stage $4$, what keyword is used to exit the ordering loop if the user types ‘stop’?
The ‘break’ keyword is used to exit the loop.
Which Python construct is used in Stage $5$ to process the user’s pizza choice?
Selection (if / elif / else statements).
What three tasks must be performed when a valid pizza choice is made in Stage $5$?
Add the item to the list, increase the total price, and increase the pizza count.
What Python method is used to add a pizza name to the ‘orders’ list?
The .append() method is used.
What should the program output if the user enters a pizza number that is not on the menu?
The program should print “Invalid choice”.
In the Stage $5$ example, what is the price of a “Cheese & Tomato” pizza?
The price is $\pounds 7.50$.
In the Stage $5$ example, what is the price of a “BBQ Chicken” pizza?
The price is $\pounds 7.90$.
What is the price of a “Meat Feast” pizza as listed in the Stage $2$ menu?
The price is $\pounds 8.10$.
What specific validation check must be performed in Stage $6$?
The program must prevent the user from ordering more than $20$ pizzas.
Under what condition is a discount applied to the total price in Stage $7$?
A discount is applied if the total price is over $\pounds 40$.
What percentage discount is applied for orders exceeding $\pounds 40$?
A $20\%$ discount is applied.