Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a menu driven check balancing C++ program. The menu includes; (D/d): deposit, (W/w): withdraw, and (E/e): exit. The selection must be made by a

Create a menu driven check balancing C++ program. The menu includes; (D/d):

deposit, (W/w): withdraw, and (E/e): exit. The selection must be made by a character.

Your program must produce an error message if a user enters an invalid choice. You

must show 2 digits below the decimal point for the output.

Purpose of the program :

Creating a simple menu driven check balancing program.

Section 1 : Receive the current balance.

Section 2 : Show a menu and receive a selection from a user.

Section 3 : Receive an amount for a deposit or a withdrawal.

Section 4 : Show the entered amount and display the remaining balance.

(You must show 2 digits below the decimal point.)

Section 5 : Repeat Section 2 through Section 4 until user specifies

Exit.

image text in transcribed

Welcome to check balancing program Please enter the current balance 987 Current balance 987.00 D d Deposit W Withdraw Exit Please make your selection D Please enter deposit amount 10.57 Deposit 10.57 Remaining balance 997.57 D d Deposit N Hithdraw Exit Please make your selection w Please enter withdrawal amount 245.67 Hithdraw 345.67 Remaining balance 651.90 Deposit N W Withdraw Exit Please make your selection F You entered invalid code. Please try again D d Deposit N Withdraw Exit Please make your selection e The new balance 651.90 Thank you for using check balancing program. Good bye. Press any key to continue

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

Step: 3

blur-text-image

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

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions