Question: CSCE 2 4 0 Programming Assignment One Due: 1 1 : 5 9 pm on Wednesday, January 2 4 th Program Purpose Compute a 3

CSCE 240 Programming Assignment One
Due: 11:59pm on Wednesday, January 24th
Program Purpose Compute a 30-day average checking account balance.
Program Details
The user will enter a date with their beginning checking account balance
followed by the dates and values of debits and credits made to the account. The
program will calculate the average end-of-day balance for the 30-day period
starting from the beginning balance date.
The users first entry will be in the format m/d/yyyy numeric_balance
Assume that the input will be in the correct format.
Each subsequent entry will be in the format
debit_or_credit_indicator m/d/yyyy value
The debit or credit indicator will be either d for debit, c for credit, or q to
quit
e.g. d 1/12/202412.36
Assume that all input will be in the correct format and assume that all dates
entered are valid dates.
All entries must be made in chronological order. If an entry is made out of
chronological order, the program should exit and provide an error message in the
following format.
Entries must be provided in chronological order.
Out-of-order-entry-date entered after previous-entry-date

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!