Question: please write the coding in JAVA language By using switch case, nested loop control structure (while-loop/ do-while loop/ for-loop) and methods (return value and not

please write the coding in JAVA language please write the coding in JAVA language By using switch case, nested

By using switch 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 Cover Single Trip Annual Cover Price RM 2.00 per day RM 200 per anual Price per person RM 12.00 Type of Plan Individual / Group Family Adult (12 years and above) Children (1 month to 11 years) RM 10.00 RM 5.00 Destination Region 1 (Asia and Oceania) Region 2 (Europe, Asia and Oceania) Region 3 (Wordwide Countries) Price RM 50.00 RM 100.00 RM 200.00 Plan Option Gold Silver Bronze Price RM 100.00 RM 50.00 RM 30.00 Total Price of Travel Insurance Protection: Single_Trip x Day + (Adult x price) + (Children x price) + Destination + Plan_Option Single_Trip 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 Sample output: MY TRAVEL INSURANCE PROTECTION Plan Option Gold Type of Cover Single Trip Type of Plan Family Destination(s) Europe Date 9 Feb 2021 - 20 Feb 2021 Number of Day(s) 12 Number of Adult(s) Number of Children Total Contribution RM 254.00 2 2

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!