Algorithm for an application for a Pizza delivery company. The application must provide a place for the user to enter their contact information (address, cell, telephone, e-mail) and some of the contact information should be displayed when the order is placed. Your application should have a picture logo and company name. Provide selections such as small, medium and large for pizza (Vegetarian, Hawaiian, Something Meaty.
m.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace asignment_3
{
public partial class frmPizzaOrder : Form
{
public frmPizzaOrder()
{
InitializeComponent();
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
}
private void btnCalculateCost_Click(object sender, EventArgs e)
{
const decimal LARGE_PIZZA_COST = 6.00M;
const decimal EXTRA_LARGE_PIZZA_COST = 10.00M;
const decimal ONE_TOPPING_COST = 1.00M;
const decimal TWO_TOPPINGS_COST = 1.75M;
const decimal THREE_TOPPINGS_COST = 2.50M;
const decimal FOUR_TOPPINGS_COST = 3.25M;
decimal pizza;
decimal toppings;
decimal total;
if numudLargeOrExtra = 2
this.lblFinalTotal.Text = "The cost is: " + string.Format("{0:c}", total);
}
}
}
Comments
Leave a comment