Menu

[Solved]Lab Assignment Ll Add Second Form Invoice Total Application Lets User Change Sales Tax Per Q37227766

In this lab assignment, youll add a second form to an Invoice Total application that lets the user change the sales tax perc

Modify the code for the Invoice Total form 5. Add code that displays the Sales Tax form and gets the result when the user cli

In this lab assignment, you’ll add a second form to an Invoice Total application that lets the user change the sales tax percent. Suppose user always enters valid data, data validation is optional. Invoice Total 225 $22.50 S202.50 $15.69 $218.19 Product total Discount amount: Subtotal Tax (7.75%): Total Sales Tax Sales tax pct: 7.975 Change Percent Cancel OK Calculate 1. Create a new Windows Forms application named InvoiceTotal in Visual Studio 2015 2. Design and define the “Invoice Total” form as shown above Create the Sales Tax form 3. Add another “Sales Tax” form to the project, add controls and set the properties so they appear as shown above. When the user presses the Enter key, the Click event of the OK button should fire. When the user presses the Esc key, the Click event of the Cancel button should fire . Add code to get the sales tax, store it in the Tag property of the form, and set the DialogResult property of the form to OK when the user clicks the OK button Modify the code for the Invoice Total form 5. Add code that displays the Sales Tax form and gets the result when the user clicks Change Percent button. If the user clicks the OK button on the Sales Tax form, this event handler should store the new sales tax percent in the sales tax variable and change the Tax label on the form so it displays the correct tax. Test the application to be sure this works correctly. Show transcribed image text In this lab assignment, you’ll add a second form to an Invoice Total application that lets the user change the sales tax percent. Suppose user always enters valid data, data validation is optional. Invoice Total 225 $22.50 S202.50 $15.69 $218.19 Product total Discount amount: Subtotal Tax (7.75%): Total Sales Tax Sales tax pct: 7.975 Change Percent Cancel OK Calculate 1. Create a new Windows Forms application named InvoiceTotal in Visual Studio 2015 2. Design and define the “Invoice Total” form as shown above Create the Sales Tax form 3. Add another “Sales Tax” form to the project, add controls and set the properties so they appear as shown above. When the user presses the Enter key, the Click event of the OK button should fire. When the user presses the Esc key, the Click event of the Cancel button should fire . Add code to get the sales tax, store it in the Tag property of the form, and set the DialogResult property of the form to OK when the user clicks the OK button
Modify the code for the Invoice Total form 5. Add code that displays the Sales Tax form and gets the result when the user clicks Change Percent button. If the user clicks the OK button on the Sales Tax form, this event handler should store the new sales tax percent in the sales tax variable and change the Tax label on the form so it displays the correct tax. Test the application to be sure this works correctly.

Expert Answer


Answer to In this lab assignment, you’ll add a second form to an Invoice Total application that lets the user change the sales tax… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *