Coding Challenge
In this workshop you will do the planning for a programming problem and implement your solution in Python.
Problem:
Design a program that will calculate the total cost of equipment for the 3 new cricket players representing JCU Brisbane Sports Club. The new items are as follows:
- Each new player gets a pair of knee pads and batting gloves.
- The user will be asked thet-shirt size for each new player and based on this the t-shirt price will be added to the total.
A pair of knee pads cost $70, while a pair of batting gloves is $130.
Tshirt sizes are S ($45), M ($55), L ($65) and XL ($75).
The program should return the total cost of the equipment.
Your plan should have:
- An IPO chart for each function
- A condition/action table for each selection
- A loop table for each loop
- A pseudo code algorithm for each function
Your implementation should have:
- A .py python file