Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Creating an Invoice Total Application Part I Using C# in Visual Studio 2019 C reate an Invoice Total application that lets the user to input

Creating an Invoice Total Application Part I Using C# in Visual Studio 2019

Cimage text in transcribedimage text in transcribedreate an Invoice Total application that lets the user to input a subtotal into the text box, and then calculates the Discount Percent, Discount Amount, and Total for that order when the user clicks the Calculate button. INPUT -> Price (Subtotal) OUTPUT -> Discount Percent, Discount Amount, Total

Creating an Invoice Total Application Part I Using C# in Visual Studio 2015, create an Invoice Total application that lets the user to input a subtotal into the text box, and then calculates the Discount Percent, Discount Amount, and Total for that order when the user clicks the Calculate button. INPUT -> Price (Subtotal) OUTPUT -> Discount Percent, Discount Amount, Total The user interface for this application is shown below: INVOICE TOTAL X PRICE (SUBTOTAL) CALCULATE DISCOUNT PERCENT CLEAR DISCOUNT AMOUNT EXIT TOTAL Open with Pseudo code The Discount Percent should be displayed based on the following conditions: If the Subtotal is between 1 - 99, then the Discount Percent should be 1% (0.01) If the Subtotal is between 100 - 199, then the Discount Percent should be 2% (0.02) If the Subtotal is between 200 - 299, then the Discount Percent should be 3% (0.03) For any Subtotal greater than or equal to 300, then the Discount Percent should be 4% (0.04) Note: You could use either if else if else or switch statement to program this. Calculate the Discount Amount using the following formula: Discount Amount = SubTotal * Discount Percent Calculate the Total using the following formula: Total = SubTotal - Discount Amount Other Programming Criteria All the data (Subtotal, Discount Percent, Discount Amount, and Total) should be stored in Variables. If the user inputs a value other than a number, it should display (using a message box) "Please enter a valid input". If the user inputs a value less than $1, it should display (using a message box) Please, enter a valid amount: $1.00 or more". When the user clicks the Clear button, the Textbox and the three display Labels should be cleared. Also, when the user changes the value of the TextBox, the three display labels should be cleared automatically. A sample output INVOICE TOTAL PRICE (SUBTOTAL) 260 CALCULATE DISCOUNT PERCENT 3.00% CLEAR DISCOUNT AMOUNT $7.80 EXIT $252.20 TOTAL Page 2 13 Q +

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

LO1 Summarize the organizations strategic planning process.

Answered: 1 week ago