Question: Write a C++ program segment that determine the annual fee of credit card holder using if...else statement. The amount is given in the following

Write a C++ program segment that determine the annual fee of credit

 

Write a C++ program segment that determine the annual fee of credit card holder using if...else statement. The amount is given in the following table: Card Type Classic Gold Platinum Visa (RM) 60 120 600 1 2 3 MasterCard (RM) 80 160 800 Ward charges are calculated based on patient's occupational status. Occupational Status Rate per day(RM) 50 150 5 Write a function that accepts the occupational status and number of days as parameters. Then, it calculates the total ward charges by multiplying the rate per day and number of days in the ward. This function returns the total charges to the caller.

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 Programming Questions!