questiona a bank has four types of accounts with


Question:

(a) A bank has four types of accounts with annual interest rates as follows:

Savings 8%
Savings with Cheque Book 5%
Current 4%
Fixed deposits 10%

Using the switch statement, write a C++ program that allows a user to input the current balance of an account and the type of account and displays the total interest obtainable.

(b) Loops allow program statements to be repeated either using counter controlled or sentinel controlled. Explain these two terms.

(c) Explain the use of the Break and Continue statements in a loop.

(d) Following a laboratory experiment, an engineering student needs to measure and input a certain number of voltage values of a circuit of n components in series.

Write a C++ program to allow the student to make the above entries and hence calculate the total voltage of the circuit.

Note that the program should ask the student if he/she wants to continue. If he/she answers „y? or „Y? the user will be allowed to enter a new value for n followed by n new values. If he/she answers „n? or „N?, the program should exit. However, if the student does not answer by y/Y or n/N, the program should ignore the answer and prompt him/her to re-enter the answer.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: questiona a bank has four types of accounts with
Reference No:- TGS0361496

Expected delivery within 24 Hours