Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is the significance of employee selection?

Answered: 1 week ago