Lorenzos is having a BoGoHo (Buy One, Get One Half Off) sale. The store manager wants an

Question:

Lorenzo’s is having a BoGoHo (Buy One, Get One Half Off) sale. The store manager wants an application that allows the salesclerk to enter the prices of two items. The half off should always be applied to the item that has the lowest price. The application should calculate and display the total amount the customer owes as well as the amount he or she saved. For example, if the two items cost $24.99 and $10.00, the half off is applied to the $10.00 item. The total owed is $29.99 and the savings is $5.00. Display the calculated amounts in label controls, and display them with a dollar sign and two decimal places.
a. Create a Windows Forms application. Use the following names for the project and solution, respectively: Lorenzo Project and Lorenzo Solution. Save the application in the VB2017\Chap04 folder. Change the form file’s name to Main Form.vb. Change the form’s name to frmMain. Create an appropriate interface and then code the application.
b. Save the solution and then start and test the application.
c. Now professionalize your application’s interface as follows: The calculated amounts should be removed from the interface when a change is made to the contents of a text box in the interface. The contents of each text box should be selected when the text box receives the focus. Each text box should accept only numbers, the period, and the Backspace key. Save the solution and then start and test the application.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: