Question: hi i need help writing this java program thank you | uestion CellphoneHub is cellphe plan comparison service that helps user choose an appropriate phone

hi i need help writing this java program thank you hi i need help writing this java program thank you | uestion

| uestion CellphoneHub is cellphe plan comparison service that helps user choose an appropriate phone plan in Canada. They currently provide details for three different plans and support 3 different cell phone models. The details are mentioned below CellPhonelub Plans Please enter the nuber of phone 1ines you need (1-5): 3 Line 1 Infa Do you need a phone with this line yfn): n Three cellphone models available are Google Pixel 3, Samsung Note 9 and iPhone X Max. There are three family cell phone plans available (all of them are 2 year plans): Line 2 Info: Do you need a phone with this line (y): y Do you want to purchase the phone outrignt (y: y Please enter 1 for Googla, 2 fer Sasung ar 3 for iPhone: a (1) Plan A- (Canada wide calling with 4GB shared data) 2) Plan B (Canada wide calling with 10GB shared datal (3) Plan C-(Canada wide calline with 12GB shared data) Line 3 Info: Do you need a phone with this line (): y Do yau want to purchase the phone outright (y): n Please enter 1 for Gooele, 2 for 5asune or 3 for iPhone: 2 You can add as many lines to the shared plan as you want and you will get $10 discount for each added line. You also get $10 discount if you bring your own phone (BYOP). The details for cell phone discounts with each plan and along with plan price tags are tabulated below Plans Surnary PLANS and Phone Prices PLAN A ($70) PLAN B (S89) PLAN C ($120] $10 discount $10 discount $10 discount $429.00 $839.00 $939.00 Phones Phone Outright Price N/A $1269.00 1599.00 $1809.99 Tatal cast for 2 years with plan A will be $7318.99 Tatal cast for 2 years with plan will be $8336.99 Tatal cast for 2 yars with plan C will be $18368.99 BYOP (No Phone) 0.00 $639.00 $819.99 Pixel 3 $779.00 1189.00 $1339.00 Samsung Note Cel1PhoneHub Plans Phone X Max Pinasa antr the nurber af hone lines you nned (1-5): 5 Write a program that helps a user decide which plan works better for him. The program should ask the user to enter the total number of phone lines and whether or not a phone needs to be purchased with each line. Compare all three plan costs and provide the user with all his options. You can leave more than 2 decimal places for the prices and you do not need to compute taxes. You may assume a perfect user and therefore there is no need for any input validation; however the y choices should be case in-sensitive. Here are a few sample outputs to illustrate the expected behavior of your program. Note: user input is highlighted in grey. Line 1 Info: Do you need a phane with this line (y): y Do you want ta purchase the pnana outright (y): y Please enter 1 for Google, 2 for Sasung or 3 for iPhone: 3 Line 2 Infa: Do you need a phone with this line (y): y Do you want to purchase the piene outrignt (y): n Please enter 1 for Googla, 2 for Sasung ar 3 for iPhone: 2 Line 3 Info: Do you need a phune with this line (y): n CellPhoneHuh Plans Line 4 Info: Do you need a phone with this line (yn) y Do you want to purchase the phone outright (y): Pinasa ntor 1 far Google, 2 for Satsung an 3 for iPhone:1 Pleasc enter the nunber of phone linas you noed (1-5): 2 Line 1 Info: Do you need , phone with this line (y): y Do you want to purchase the phone outright (y): n Please enter 1 for Gocele, 2 for Sansune or 3 for iPhone: 1 Line 5 Info: Do you need a prane with this line (y): y Do yau want ta purchase the phone outrignt (y): n Please enter 1 for Google, 2 for SaTsung or 3 for iPhone:3 Lina 2 Info: Da you need a phone with this 1ine (yin): n Plans Surnary Plans Sumary Tatal cast for 2 years with plan A will be $12886.99 Tatal cast for 2 years with plan B will on $14336.99 Total cost for 2 years with plan C will e $17737.98 Total cost for 2 years with plan A will1 be 13659.6 Tatal cost for 2 years with nian B will be $4221 . e Total cost for 2 years with plan C wi11 be 528a.e COMP248/Winter 2019 Assignment 2 Page 4 of 6 COMP248/Winter 2019 Asignment 2 Page 5 of | uestion CellphoneHub is cellphe plan comparison service that helps user choose an appropriate phone plan in Canada. They currently provide details for three different plans and support 3 different cell phone models. The details are mentioned below CellPhonelub Plans Please enter the nuber of phone 1ines you need (1-5): 3 Line 1 Infa Do you need a phone with this line yfn): n Three cellphone models available are Google Pixel 3, Samsung Note 9 and iPhone X Max. There are three family cell phone plans available (all of them are 2 year plans): Line 2 Info: Do you need a phone with this line (y): y Do you want to purchase the phone outrignt (y: y Please enter 1 for Googla, 2 fer Sasung ar 3 for iPhone: a (1) Plan A- (Canada wide calling with 4GB shared data) 2) Plan B (Canada wide calling with 10GB shared datal (3) Plan C-(Canada wide calline with 12GB shared data) Line 3 Info: Do you need a phone with this line (): y Do yau want to purchase the phone outright (y): n Please enter 1 for Gooele, 2 for 5asune or 3 for iPhone: 2 You can add as many lines to the shared plan as you want and you will get $10 discount for each added line. You also get $10 discount if you bring your own phone (BYOP). The details for cell phone discounts with each plan and along with plan price tags are tabulated below Plans Surnary PLANS and Phone Prices PLAN A ($70) PLAN B (S89) PLAN C ($120] $10 discount $10 discount $10 discount $429.00 $839.00 $939.00 Phones Phone Outright Price N/A $1269.00 1599.00 $1809.99 Tatal cast for 2 years with plan A will be $7318.99 Tatal cast for 2 years with plan will be $8336.99 Tatal cast for 2 yars with plan C will be $18368.99 BYOP (No Phone) 0.00 $639.00 $819.99 Pixel 3 $779.00 1189.00 $1339.00 Samsung Note Cel1PhoneHub Plans Phone X Max Pinasa antr the nurber af hone lines you nned (1-5): 5 Write a program that helps a user decide which plan works better for him. The program should ask the user to enter the total number of phone lines and whether or not a phone needs to be purchased with each line. Compare all three plan costs and provide the user with all his options. You can leave more than 2 decimal places for the prices and you do not need to compute taxes. You may assume a perfect user and therefore there is no need for any input validation; however the y choices should be case in-sensitive. Here are a few sample outputs to illustrate the expected behavior of your program. Note: user input is highlighted in grey. Line 1 Info: Do you need a phane with this line (y): y Do you want ta purchase the pnana outright (y): y Please enter 1 for Google, 2 for Sasung or 3 for iPhone: 3 Line 2 Infa: Do you need a phone with this line (y): y Do you want to purchase the piene outrignt (y): n Please enter 1 for Googla, 2 for Sasung ar 3 for iPhone: 2 Line 3 Info: Do you need a phune with this line (y): n CellPhoneHuh Plans Line 4 Info: Do you need a phone with this line (yn) y Do you want to purchase the phone outright (y): Pinasa ntor 1 far Google, 2 for Satsung an 3 for iPhone:1 Pleasc enter the nunber of phone linas you noed (1-5): 2 Line 1 Info: Do you need , phone with this line (y): y Do you want to purchase the phone outright (y): n Please enter 1 for Gocele, 2 for Sansune or 3 for iPhone: 1 Line 5 Info: Do you need a prane with this line (y): y Do yau want ta purchase the phone outrignt (y): n Please enter 1 for Google, 2 for SaTsung or 3 for iPhone:3 Lina 2 Info: Da you need a phone with this 1ine (yin): n Plans Surnary Plans Sumary Tatal cast for 2 years with plan A will be $12886.99 Tatal cast for 2 years with plan B will on $14336.99 Total cost for 2 years with plan C will e $17737.98 Total cost for 2 years with plan A will1 be 13659.6 Tatal cost for 2 years with nian B will be $4221 . e Total cost for 2 years with plan C wi11 be 528a.e COMP248/Winter 2019 Assignment 2 Page 4 of 6 COMP248/Winter 2019 Asignment 2 Page 5 of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!