Question: By usingswitch case,nested loop control structure(while-loop/do-while loop/for-loop)and methods(return value and not return value), you are required to write a program code that able to calculate

By usingswitch case,nested loop control structure(while-loop/do-while loop/for-loop)and methods(return value and not return value), you are required to write a program code that able to calculate the travel insurance protection based on a given plan as follows:

Type of CoverPrice

SingleTripRM 2.00 per day

AnnualCoverRM 200 per anual

Type of PlanPrice per person

Individual / GroupRM 12.00

FamilyAdult (12 years and above)RM 10.00Children (1 month to 11 years)RM 5.00Destination

PriceRegion

1 (Asia and Oceania)RM 50.00Region

2 (Europe, Asia and Oceania)RM 100.00Region

3 (Wordwide Countries)RM 200.00

Plan OptionPrice

GoldRM 100.00

Silver RM 50.00

BronzeRM 30.00

Total Price of Travel Insurance Protection:

Single_Trip xDay + (Adult x price) + (Children x price) + Destination + Plan_Option

Single_Trip x Day + (Individual x price) + Destination + Plan_Option

Annual_Cover + (Adult x price) + (Children x price) + Destination + Plan_Option

Annual_Cover+ (Individual x price) + Destination + Plan_Option

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!