Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

help asp

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago