question:a pizza company has contracted you to design an application program to help the company calculate cost of an order.Your program is to be used by their telephone operator who has to take orders and let the customer know the total cost of the pizza and delivery quickly and accurately.Currently the pizza company only sells 1 type of pizza.Below is some additional information relevant to the proposed application.
Neccesary inputs:
-number of pizzas ordered
-number of extra toppings ordered
-pice of pizza
Details:
-extra toppings at $0.50 each
-Delivery charge of $2
-Tax charge of 7%
I have attached the form that i have designed to calculate cost of pizza.
Now,im required to change the program abit.The programme should not hard-code the delivery charges,price of extra toppings and Tax charge.A separate area in the GUI should be identified to display these data for the purpose of them being editable by the user.However,the default values as per original user requirements should be displayed in the beginning.The program should not close if a user entered a non-numeric data.
I know that i have to use the "TryParse" eg:int noOfPizza;
if (int.TryParse(noOfPizzaTb.Text,,out numOfPizza)==false
{
numOfPizza = 0;
}


Sign In
Create Account



Back to top









