Question
Please help where it says You must finish the code The programming is C# // Programmer: Bill Smith( put your name her and NOT Bills)
Please help where it says "You must finish the code" The programming is C#
// Programmer: Bill Smith( put your name her and NOT Bills) // Purpose: A program that will compute the total amount of items sold // and compute and print the total // Updated: Feb. 1, 2021 Now skip a couple blank lines here below the date ...just press Enter to separate the comments above from the Pseudocode/Algorithm below: // Algorithm // I. Variable Declaration // A. bags denotes the number of bags of candy sold // B. total denotes the total number of bags sold // II. Input // A. Get the five amounts of candy sold for each type of candy entered in five textboxes // III. Process // A. Compute total by adding the five candy amounts or bags sold // total = bags1 + bags2 + bags3 + bags4 + bag s5
//IV. Output A. Print The total amount of bags sold are the number goes here the total amount is (total here) //V. End k. Now type your code below the button_click event line and in between the 2 braces { } I highly recommend type in comments between the various parts to briefly explain what the parts of the programs do as that is part of your grade. private void button1_Click(object sender, EventArgs e) { //Variable declarations below establish the named memory locations // and data type to hold or store the values used in the program double bags1, bags2, bags3, bags4, bags5, total, totalwithtax; // The code below will use assignment statements to assign // values from the textboxes into variables using // the Convert.ToDouble method bags1 = Convert.ToDouble(txtBags1.Text); bags2 = Convert.ToDouble(txtBags2.Text); You finish the rest of the code........................below................ total = bags1 + bags2 ...........you finish this line ; totalwithtax = total * 2.00; txtPrint.Text = You ordered + total + items for a total of + totalwithtax.ToString(C2) ; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started