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