Anzeige
Create the following program- Calculate the daily balance in your chec.docx
Nächste SlideShare
© Anthony W. Smith, 2015 CSCI 114 Programming Fundamentals I.docx© Anthony W. Smith, 2015 CSCI 114 Programming Fundamentals I.docx
Wird geladen in ... 3
1 von 1
Anzeige

Más contenido relacionado

Más de lez31palka(20)

Anzeige

Create the following program- Calculate the daily balance in your chec.docx

  1. Create the following program: Calculate the daily balance in your checking account under the following conditions: Biweekly paycheck on days 15 and 30 of $1200 Won lottery on day 8 in the amount $75 Transfer $250 from savings when daily balance is below $500 (make sure to calculate all balance transaction before checking that the daily balance is less than 500 ) - Every 3rd day withdraw amount of $335 to cover expenses Create a constant DAYS_MAX and initialize it with 30 Using the input function to get the initial balance and store it in variable initialBalance Create a variable daily balance and initialize it with initialBalance Create a for loop in the range of 1 -DAYS_MAX and use day as the iterator variable For each iteration, check the variable day and perform either a deposit or withdrawal based on the rules above For each iteration, display the daily balance (as shown below)
Anzeige