Question: this is c++ this is c++ Question 3 [10 + 6 = 16 Points] A) Write a function called insuranceAmnt that takes three parameters: a

this is c++
this is c++
Question 3 [10 + 6 = 16 Points] A) Write a function called insuranceAmnt that takes three parameters: a string named carType, an integer named cylinder, and a float named price. The function will return the insurance amount to be paid as follows: Insurance Amount = Initial + Cylinder* Ratio + Price * Percentage Where Initial, Ratio and Percentage values are selected from the following table according to the car type: Car Type Initial Ratio Percentag e %5 %7 Toyota, Nissan BMW, Mercedes Any other car type 50 70 80 10 20 30 %9 B) Write a program that prompts the user to enter a carType (string), number of car cylinders (int) and car price (float). The program should display the insurance amount by using the function defined in Part A. The Input/output of the program should be displayed as follows: Sample Input/output Enter Car Type, No. of Cylinders and Price: Nissan 5000 6 The insurance amount is BD 360.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
