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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started