EDIT POST First Post Mark as Spam lisa5134
Posts: 1 - Registered: 2011-10-02 07:36:53
I need help. I’m taking a class in Visual Basic (and no I don’t want you to do my homework for me). I don’t understand what is going wrong with my coding (please note I haven’t finished all of the coding because I need to get the first part right first). Here is the topic: (Part 1) Lynette Rifle owns an image consulting shop. Her clients can select from the following services at the specified regular prices: makeover $125, Hair Styling $60, Manicure $35, and Permanent Makeup $200. She has distributed discount coupons that advertise discounts of 10 percent and 20 percent off the regular price. Create a project that will allow the receptionist to select a discount rate of 10 percent, 20 percent, or none, and then select a service. Display the total price for the currently selected service and the total due for all services. A visit may include several services. Include buttons for Calculate, Clear, Print and Exit. (Part 2) Allow for sales to additional patrons, include buttons for Next Patron and Summary. When the receptionist clicks the Summary button, display in a summary message box the number of clients and the total dollar value for all services rendered. For Next patron, confirm that the user wants to clear the totals for the current customer.
Once I’m done with part 1, I don’t know how to code part 2. Can some explain this is easy terms please? Thank you.
Here is my code so far:
EDIT POST Reply #1 Mark as Spam ciiure
Posts: 5 - Registered: 2011-11-18 13:45:08
Hi there mate ;D
Ok so the code you wrote did not contain to many mistakes. The only problem with it is the fact that the button event handling lines are different at start and at the end.
Private Sub btnCalculate_Click_1(sender As System.Object, e As System.EventArgs) Handles btnCalculate.Click
yours was btnCalculate_Click_1 and at the end Handles ButtonCalculate.
Other thing was when you press Clear it was ticking manicure checkbox but was not doing anything with other checkboxes so if while running you picked permanent makeup it would stay even after pressing clear button.
I fixed your code:
Didnt add the part 2 coding as it is your project ;P
Good luck with it
EDIT POST Reply #2 Mark as Spam Pantium48
Posts: 2 - Registered: 2016-04-29 02:00:04