Skip to content

Retail price calculator

raman neupane

Asked Oct 7, 2014, 5:36 PM EDT1 answer
Share
LinkedInX
Create a C# GUI application that lets the user enter an item’s wholesale cot and its mark-up percentage. It should then display the item’s retail price. For Example
? If an item’s wholesale cost is $5.00 and mark-up percentage is 100 percent, then the item’s price is $10.00.
? If an item’s wholesale cost is $5.00 and mark-up percentage is 50 percent, then the item’s price is $7.50.
The program should have a method named calculateRetail that receives the wholesale cost and the mark-up percentage as arguments and returns the retail price of the item.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    private void button1_Click(object sender, EventArgs e) { decimal cp; decimal mp; decimal rp; cp = Convert.ToDecimal(txtcost.Text); mp = Convert.ToDecimal(txtmarkup.Text); rp=cp+(cp*(mp/100)); MessageBox.Show(rp.ToString()); }
    0