Question: Solve by using C++ A) Write a function called insuranceAmnt that takes three parameters: a string named car Type, an integer named cylinder, and a
Solve by using C++

A) Write a function called insuranceAmnt that takes three parameters: a string named car Type, 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 Toyota, Nissan BMW, Mercedes Any other car type Initial 50 70 Ratio 10 20 30 Percentage %5 %7 %9 80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
