Question: 6. Write program to perform simple banking operations. The user at first will be given a starting balance. Then, he will be asked to select

 6. Write program to perform simple banking operations. The user at

6. Write program to perform simple banking operations. The user at first will be given a starting balance. Then, he will be asked to select one of the following operations: deposit, withdraw or balance inquiry. The account should not allow overdrafts (i.e. Withdraw an amount greater than the current balance) and should prevent user from entering negative values for withdraw and deposit. The program should display the final balance after it performs any deposit or withdraw operation requested by the user. 7. Write a C++ program that calculates and prints the bill for a car rental company. The company charges a daily fee for each day a car is rented depending on the type of the car. Moreover, an additional fee is charged if the car travels more than 400 KM. This fee also varies depending on the type of the car. Fee for additional KM Type of car Mercedes Toyota Cadillac Jaguar Daily fee 150 60 120 130 15 7 10 14 Your program should ask the user to enter The type of the car (M or m for Mercedes, Tort for Toyota...) How many days was the car rented? How many KM did the car travel

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