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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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