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

Starting Out With Visual Basic 2012 (6th Edition) Chapter 4 -11PC and 12 PC solu

ID: 3787978 • Letter: S

Question

Starting Out With Visual Basic 2012 (6th Edition) Chapter 4 -11PC and 12 PC solution for the internet service provider in Chegg solutions in visual basic 2012 on Chegg works just fine I coded that. In addtion to that solution Part 1 and 2 I need to do the following.

I now need to add a checkbox with "Display potential savings" as text that display as in the image below and to do the follwing when checked. Add a comparison functionality that will display any potential savings for the customer based on their package selection and ISP usage. The updated form should be as displayed below.

Add a check box for Display Potential Savings, that when checked will display the amount Package A customers would save if they selected Package B or C, or the amount Package B customers would save if they selected Package C. If there is no savings, the message should indicate that instead.

How do I do the calculations?

Internet Service Provider Par... Select a Subscription Package O Package A V Display Potential savings Package B Select a Discount O Package C Nonprofit Organization Enter the Number of Hours Used: 45 Total Amount Due: $79.95 Potential Savings Package B $40.00 Package C: $60.00 Calculate Exit

Explanation / Answer

Psuedo-code for possible calculations:

if(PackageA is selected) then

-> Calculate Package A price, take variable PA

-> Calculate Package B and C price, correspondingly PB and PC

-> Print (Potential Savings)   

-> if(PA > PB) then

Print (Package B) : (PA-PB)

-> if(PA > PC) then

Print (Package C) : (PA-PC)

if(PackageB is selected) then

-> Calculate Package B price, take variable PB

-> Calculate Package A and C price, correspondingly PA and PC

-> Print (Potential Savings)   

-> if(PB > PA) then

Print (Package A) : (PB-PA)

-> if(PB > PC) then

Print (Package C) : (PB-PC)

if(PackageC is selected) then

-> Calculate Package C price, take variable PC

-> Calculate Package B and A price, correspondingly PB and PA

-> Print (Potential Savings)   

-> if(PC > PA) then

Print (Package A) : (PC-PA)

-> if(PC > PB) then

Print (Package B) : (PC-PB)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote