Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- double total;
- if (babyRadioButton.Checked)
- total = 10.0;
- else if (mamaRadioButton.Checked)
- total = 13.0;
- else if (papaRadioButton.Checked)
- total = 16.0;
- if (deepRadioButton.Checked)
- total += 2.0;
- total = (pepperoniCheckBox.Checked)? total + 1.5 : total;
- total = (onionsCheckBox.Checked) ? total + .75 : total;
- total = (greenPeppersCheckBox.Checked) ? total + .5 : total;
- total = (redPeppersCheckBox.Checked) ? total + .75 : total;
- if (anchoviesCheckBox.Checked) total += 2;
- if((pepperoniCheckBox.Checked&&greenPeppersCheckBox.Checked&&anchoviesCheckBox.Checked) ||( pepperoniCheckBox.Checked&&redPeppersCheckBox.Checked&&onionsCheckBox.Checked))
- {
- total -= 2.0;
- }
- this.total.Text = "$" + total.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement