Answer to Question #255559 in Algorithms for Israel

Question #255559

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.


1
Expert's answer
2021-10-23T13:53:12-0400
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);

 }
 }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS