/0478-22-February-March-2019

0478/22 February/March 2019 IGCSE Computer Science Paper 22 Solution

Primary LanguageC++

0478-22-February-March-2019

0478/22 February/March 2019 IGCSE Computer Science Paper 22 Solution

Files Format

If you want to open .drawio files, please go to draw.io and open the document, it is an editable file (Topdown design and Flowchart) (Only Available for the not-so-awesome program)

Python Version - 3.7.x

g++ Version - 11.x.x

Task

A pizza ordering service allows customers to design their own pizza. There are three sizes: small, medium and large. A pizza can have a thick or thin base.

All pizzas come with tomato and cheese toppings as standard and there are six additional types of topping available:

• Pepperoni

• Chicken

• Extra cheese

• Mushrooms

• Spinach

• Olives

Pizzas always come with tomato and cheese toppings as standard, and can have up to three additional toppings. Customers need to be able to design their own pizza and then confirm or change it. Records are kept showing the number of pizzas sold for each base and size. The number of sales for each additional topping is also recorded.

TASK 1 – Design your pizza.

The customer is given choices of size, base and additional toppings (number and type) as stated above. Only valid choices can be accepted. The customer is asked to confirm their order or alter their choices or not proceed. If the customer confirms their order they are given a unique order number.

TASK 2 – Record the choices.

Extend TASK 1 to record totals for the choices made for ordered pizzas only and calculate the total number of pizzas ordered.

TASK 3 – Find the most and least popular additional pizza toppings.

Using your results from TASK 2, display the most popular and least popular additional toppings as a percentage of the total number of additional toppings ordered.

TASK EXTRA-AWESOME - MORE Customized Configurations.

Change the topping types, limits, or literally everything. LETS DO IT. (Just for fun, don't use it in test.)