help this is my first tme on a forum and i dont know my way around.
i have a
java restaurant ordering program.It is showing the ordering list but it wont calculate the orders.example if i order 2 burger and a fries it should calculate the cost of each burger and fries to give output.
help help help.
code:
CHEESE $100
TOMATO $80
MUSHROOMS $95
GREEN PEPPERS $75
BLACK OLIVES $95
ONIONS $60
PEPPERONI $125
CHICKEN $130
TUNA $140
All pizzas should include CHEESE, TOMATO and the selected pizza base.
These are the prices for the pizza bases:
SMALL BASE $800
MEDIUM BASE $1500
LARGE BASE $2600
Obviously, only one kind of pizza base is allowed per pizza, but the customer
does choose from 3 available pizza bases.
The amount we charge for the pizzas depends on whether the pizza is small, medium, or large and goes like this:
SMALL PIZZA = SMALL base + 1 * price of selected toppings
MEDIUM PIZZA = MEDIUM base + 1.5 * price of selected toppings
LARGE PIZZA = LARGE base + 2 * price of selected toppings
I really don't know much about computers, but I'm eager to learn. However, I'd like the system easy to operate.
You thank the pizza owner, and return to your work place to think about the design and implementation of the pizza ordering system.
Use the code below to implement the functions stated above.
"What I'd like is a system to which I can enter the order the customer wants, and I'd like the system to calculate the price for the pizzas that were ordered. The price depends on the toppings that a pizza has and if the pizzas are small, medium or large.based on what the toppings cost: