Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Checking Account Lab Construct a C program, check.c, that reads the details of a monthly checking account and outputs a bank statement summarizing these transactions.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Checking Account Lab Construct a C program, check.c, that reads the details of a monthly checking account and outputs a bank statement summarizing these transactions. An input ile, account.txt, contains a list of transactions for the checking account for one month. Each line of the input file consists of a one-character transaction code along with a double containing the amount of the transaction. Valid transaction codes are as follows: I Initial balance brought forth from previous month D Deposit C Check As each transaction is entered, you should output on a single line the type of transaction, the amount of the transaction (separate columns for deposits and checks), and the balance after the transaction has been processed: Transaction Deposit Check Balance Initial Balance Deposit Deposit Check Check 478.83 606.28 1226.12 281.00 276.24 127.45 619.84 945.12 4.76 The bank's service charges (which should be deducted from the balance at the end of the month) are as follows: $3.00 per month to maintain the account. $0.06 for each check cashed. $0.03 for each deposit made. 55.00 overdraft whenever a check cashed brings the balance below s0.00. Note: Do not assess the overdraft service charge when the transaction is a deposit into an overdrawn account that does not bring the balance above zero. Page 25

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions