79597449

Date: 2025-04-29 01:05:28
Score: 1.5
Natty:
Report link

double subtotal = (double)nudBuffaloChickenSalad.Value * 13.25

+ (double)nudReuben.Value * 9.20

+ (double)nudWater.Value * 1.99

+ (double)nudWings.Value * 18.99

+ (double)nudChzPizza.Value * 10.99;

double discount = chkRewards.Checked ? subtotal * 0.05 : 0;

double tax = (subtotal - discount) * 0.06;

double total = (subtotal - discount) + tax;

lblSubtotal.Text = subtotal.ToString("C");

lblDiscount.Text = discount.ToString("C");

lblTax.Text = tax.ToString("C");

lblTotal.Text = total.ToString("C") ;

lblStatus.Text = "Calculated";

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: YoshiOhNo