Transactions

Download Category:

Transactions.zip - (438.09 KB)
[
Transactions/Debug/
Transactions/Debug/cl.command.1.tlog
Transactions/Debug/CL.read.1.tlog
Transactions/Debug/CL.write.1.tlog
Transactions/Debug/link.2264.read.1.tlog
Transactions/Debug/link.2264.write.1.tlog
Transactions/Debug/link.2264-cvtres.read.1.tlog
Transactions/Debug/link.2264-cvtres.write.1.tlog
Transactions/Debug/link.command.1.tlog
Transactions/Debug/link.read.1.tlog
Transactions/Debug/link.write.1.tlog
Transactions/Debug/link-cvtres.read.1.tlog
Transactions/Debug/link-cvtres.write.1.tlog
Transactions/Debug/mt.command.1.tlog
Transactions/Debug/mt.read.1.tlog
Transactions/Debug/mt.write.1.tlog
Transactions/Debug/rc.command.1.tlog
Transactions/Debug/rc.read.1.tlog
Transactions/Debug/rc.write.1.tlog
Transactions/Debug/Transactions.exe
Transactions/Debug/Transactions.exe.embed.manifest
Transactions/Debug/Transactions.exe.embed.manifest.res
Transactions/Debug/Transactions.exe.intermediate.manifest
Transactions/Debug/Transactions.ilk
Transactions/Debug/Transactions.lastbuildstate
Transactions/Debug/Transactions.log
Transactions/Debug/Transactions.obj
Transactions/Debug/Transactions.pdb
Transactions/Debug/Transactions.write.1.tlog
Transactions/Debug/Transactions_manifest.rc
Transactions/Debug/vc100.idb
Transactions/Debug/vc100.pdb
Transactions/Question.txt
Transactions/Screenshot_1.png
Transactions/Transactions.cpp
Transactions/Transactions.sln
Transactions/Transactions.suo
Transactions/Transactions.vcxproj
Transactions/Transactions.vcxproj.filters
Transactions/Transactions.vcxproj.user
]

Design an algorithm that will prompt for and receive your current check book balance, followed by a number of financial transactions. Each transaction consists of a transaction code and a transaction amount. The code can be a ‘D’ for deposit or ‘C’ for check. Your program is to add each deposit amount to the balance and subtract each check amount. After each transaction is processed, a new running balance is displayed, with a warning message if the balance becomes negative. When there are no more transactions a ‘Q’ is entered as the transaction code. Your algorithm is to then display the initial and final balance along with the number of checks and deposits that were made.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.