Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a software company sells a package that retails for $99. quantity discounts are

ID: 441636 • Letter: A

Question

a software company sells a package that retails for $99. quantity discounts are given according to the following table: quantity discount 10-19 20% 20-49 30% 50-99 40% 100 or more 50% create an appliccation that lets the user enter the number of packages purchased. the program should thenm display the amount of the discount(if any) and the total amount of the purchase after the discount. note: i want the solution in c# not in c++ plz

Explanation / Answer

Application Steps: 1. Input packages purchased. 2. Display ammount of discount. 3. Display the total for the purchase after the discount has been applied. */ // Define System Wide Classes using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; // Define Namespace namespace _304_Ch04_Example01 // Define Partial Classes meaning that the classes below are specific to this project. { public partial class Lab4 : Form { public Lab4() { InitializeComponent(); } // Begin Code for Click Event private void calculateBtn_Click_1(object sender, EventArgs e) { // Declare variables int PkgsPurchased; int TotalDiscount; // Convert text box values PkgsPurchased = int.Parse(pkgsPurchasedTbx.Text); // Process calculations TotalDiscount = PkgsPurchased + discApplied /* Logical Operators: AND is representinged by && - both subexpressions must be true OR is represented by || - either of the the subexpressions can be true NOT is represented by ! - reverses the expression */ // selection structure to determine the points awarded version #3 if (PkgsPurchased < 10) discAppliedLbl.Text = "0"; else if (PkgsPurchased >= 10 && PkgsPurchased = 20 && PkgsPurchased = 50 && PkgsPurchased = 100) discAppliedLbl.Text = "50%"; } private void Lab4_Load(object sender, EventArgs e) { } } }