Calculate the monthly interest

Assignment Help Basic Computer Science
Reference no: EM131236371

Write a program that calculates the balance of a savings account at the end of a period of time. It should ask the user for the annual interest rate, the starting balance, and the number of months that have passed since the account was established. A loop should then iterate once for every month, performing the following:

A) Ask the user for the amount deposited into the account during the month. (Do not accept negative numbers.) This amount should be added to the balance.

B) Ask the user for the amount withdrawn from the account during the month. (Do not accept negative numbers.) This amount should be subtracted from the balance.

C) Calculate the monthly interest. The monthly interest rate is the annual interest rate divided by twelve. Multiply the monthly interest rate by the balance, and add the result to the balance.

After the last iteration, the program should display the ending balance, the total amount of deposits, the total amount of withdrawals, and the total interest earned.

Reference no: EM131236371

Questions Cloud

Create a timeline in microsoft word : Part 1: Create a timeline in Microsoft Word that covers at least four major events that defined the 1960s.
Write a program that displays a weekly payroll report : If the sum state tax + federal tax + FICA withholdings for any employee is greater than gross pay, print an error message and ask the user to re-enter the data for that employee.
Calculate the maximum fanout for the output low condition : Determine i1, i3, i4, and v for (i) vX = 0.1 V, vY = 3.3 V and (ii) vX = vY = 3.3 V. - Calculate the maximum fanout for the output low condition such that Q1 remains biased in saturation.
Important observation on sadler report : Q1. Were there any details in the hearings from which you can make an important observation on sadler report Q2. Who was the intended audience of the hearings?
Calculate the monthly interest : After the last iteration, the program should display the ending balance, the total amount of deposits, the total amount of withdrawals, and the total interest earned.
Is it important that they have access to the site : Visit the site, observe the place, take notes on how people interact with each other, what's going on, and ask people about how this particular place relates to them. What does it mean for them to have this particular site available in their commu..
Why does sentencing disparity exist : Why does sentencing disparity exist?Are there programs that can reduce disparity in sentencing?If so, what are they?Should all people who commit the same crime receive the same sentence? Explain.
British political culture reflect europe : Please provide a highly cogent response to the question below. Minimum is 2 paragraphs and please list all references. Does British political culture reflect Europe or is it as its people often argue unique to itself? Explain your answer.
Settlement of north america by european countries : What were the major factors that shaped the settlement of North America by European countries? What were these countries looking for, and what did they ultimately find?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Design a dns namespace

Design a DNS namespace

  How to make sure that written work is free of grammar

How do you make sure that written work is free of grammar and spelling errors? Write down tools or secrets do you use?

  Optimal objective functional value of linear programming

You need to describe the problem considered for your project and propose a model and/or solution approach for solving the problem using decomposition techniques discussed in class

  Create input forms fleet truck maintenance database

Using Microsoft access create input forms for the Fleet Truck Maintenance Database.

  Result of the calculation to be truncated

Assuming that variables value1 and value2 are both declared as ints, which of the following statements causes the result of the calculation to be truncated?

  Computer memory to store a value for a symbol

What is the process of reserving a place in computer memory to store a value for a symbol?

  Generate a random number for the user and for the monster

I have been trying for days to figure out how to get this working, but have yet to succeed in doing so. Can some please help me with this?

  Position on the ethical concerns

Take a position on the ethical concerns raised by employees who are upset about organizations monitoring their email or Internet access for security purposes. Assess whether you believe it is fair for an employee to undergo this type of surveillan..

  Explain why a transaction may have many cursors.

C Also, how is it possible that a transaction may have more than one cursor on a given table?

  Discuss three elements of managerial work-one function

Discuss three elements of managerial work-one function, one role and one skill-and describe how IT improves the manager's performance of each element.

  Write a program that creates two vectors from x-one

write a program that creates two vectors from x-one (call it P) that contains the positive elements of x, and a second (call it N) that contains the negative elements of x. In both P and N, the elements are in the same order as in x.

  Use a wrapper class to convert

The BufferReader class's readLine method returns a line from a file as a String. If you need to perform calculations, you will need to convert the String object into a number. You can use a wrapper class to convert.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd