Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11:43 oo AT&T 91%, public asu.edu ASU CSE 110 Assignment #8 Due date/Time: Friday, April 28, 2017 at 5:30pm What this Assignment is About: Leam

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
11:43 oo AT&T 91%, public asu.edu ASU CSE 110 Assignment #8 Due date/Time: Friday, April 28, 2017 at 5:30pm What this Assignment is About: Leam to read in data by using InputStreamReader & BufferedReader classes. Leam to use PrintWriter class to write the output to a text file Leam to use printfo method to format the output Note: for this lab, you are NOT allowed to use Scanner class to read in data! Coding Guidelines for All Labs/Assignments oou will be graded on this) Give identifiers semantic meaning and make them easy to read examples numStudents, grossPay, etc), Keep identifiers to a reasonably short length. Use upper case for constants. Use title case (first letter is upper case)for classes. Use lower case with uppercase word separators for all other identifiers (variables, methods, objects). Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, methods, and code associated with ifs, switches and loops. Be consistent with the number of spaces or tabs that you use to indent. Use white space to make your program more readable. Use comments properly before or after the ending brace of classes, methods, and blocks to identify to which block it belongs. Assignment description In this assignment, write a program that calculates the balance of a saving account at the end ofa three-month period. It should ask the user for the starting balance and the annual interest rate. A loop should then iterate once for every month in the period, performing the following steps: A) Ask the user for the total amount deposited into the account during that month and add it to the balance. Do not accept negative numbers. B) Ask the user for the total amount withdrawn from the account during that month and subtract it from the blance. Do not accept negative numbers or numbers greater than the balance after the deposits for the month have been added in. C) Calculate the interest for that month. The monthly interest rate is the annual interest rate divided by 12. Multiply the monthly interest rate by the average of that month's starting and ending balance to get the interest amount for the month. This amount should be added to the balance. After the last iteration, the program should display a report and save it inside a file called result.tu that includes the following information: starting balance at the beginning of the three-month period total deposits made during the three months total withdrawals made during the three months total interest posted to the account during the three months final balance

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago