Common Computer Science References
Everyone loves pizza, so in my program you will be able to order two sizes of pizza - large and extra large.
Create a program that will allow the user to enter in (a) value(s) of something and then do some kind of calculation on it. You need to come up with the calculation AND there MUST be some kind of "if statement" in your code. Ensure that you have 2 seperate cost, just like I do for size and number of toppings.
For example in my program the user enters in if they want a large or extra large pizza. They also choose to have 1, 2, 3, or 4 toppings for the 1 pizza that they just ordered, not including cheese. You can only ever order a single pizza at a time. My program will then calculate the cost of the pizza and the tax (HST). It will then display the subtotal, tax and the final cost.
Here is a breakdown of cost:If you are not sure on any part of the problem, just ask me and I will give you additional information.
REMEMBER: variables that never change (speed of light) or rarely (like cost for large pizza) need to be constants; no majical numbers in your code!
Design Document(s):
this includes Story Board(s) and flowchart(s)
Test Cases:
at least three (3) test cases (maybe more if it is needed!) done by some other method than your (or some else's) program
Use radio buttons for (Large - Extra Large) and another set of 4 for the toppings (1 -> 4)
I can get a bonus? Yes you can!
If you complete just the above part of the assignment in JavaScript, you will be marked out of 3+. You will be marked out of 4+ if you do the programming in a second language as well.