how to write a program in c++ for this type of question?
Write a calculator program in c++ that allows the user to select which operation they would like to perform such as:
Addition,
subtraction,
multiplication,
division,
modulus,
Square,
Square root,
Convert Celsius to Fahrenheit (Fahrenheit = 1.8 Celsius +32),
Convert Celsius to Kelvin (add 273.15 °),
Convert Fahrenheit to Celsius (Celsius = (F-32) x (5/9)),
Convert Fahrenheit to Kelvin (Kelvin = 5/9 x (Fahrenheit - 32) + 273).
Make sure your program contains menu and will keep on looping until the user enter a specific value to end it. Please use Functions to do the calculation. You might want to use switch for the menu.
how to write this....?
question 2:
A parking garage charges a RM2.00 minimum fee to park for up to three hours. The garage charges an additional RM0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24 hour period is RM10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of 3 customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use FUNCTION to determine the charge for each customer.