Amount deposited into the account during the month

Assignment Help Basic Computer Science
Reference no: EM131682247

(Program analysis worksheet)

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:

1) Ask the user for the amount deposited into the account during the month. This amount should be added to the balance.

2) Ask the user for the amount withdrawn from the account during the month. This amount should be subtracted from the balance.

3) Calculate the monthly interest. The monthly interest rate is the annual interest rate divided by 12. 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 eared.

Reference no: EM131682247

Questions Cloud

How much money will martin win : Martin decides to try out this strategy. However, he only has $31, so he may end up walking away bankrupt rather than continuing to double his bet.
Regional hospital implement a major informatics : You have been brought in to help a regional hospital implement a major informatics upgrade that promises to significantly improve efficiency and patient
Analyzes the basic legal social and economic environment : Analyzes the basic legal, social, and economic environment in which the organizations operate. Identifies and explains the strong points of the managers.
Success or the causes of problems : Dig more deeply into your experiences and point to what you believe were the most critical contributors
Amount deposited into the account during the month : 1) Ask the user for the amount deposited into the account during the month. This amount should be added to the balance.
Discuss tremendous diversity of ecosystems : Write an essay of 1500 words by exploring Ocean County, New Jersey's tremendous diversity of ecosystems
Prove that the pmf of x satisfies the symmetry property : Let X be a discrete r.v. with support n, n + 1,..., 0,...,n 1, n for some positive integer n. Suppose that the PMF of X satisfies the symmetry property.
Create a vision and a business model for the new division : Create a vision and a business model for this new division that clearly demonstrates your decision on what you want your business to become in the future.
Discussing sql injection : Discussing SQL Injection. Be sure to include ways to prevent this type of attack. Use at least two sources outside your text and course material for this paper

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Research the simple computer games snake and tron

Research the simple computer games "Snake" and "Tron."

  Savings account at the beginning of month

If the account pays 4.8% APR, what amount must you deposit each month?

  Which of the following addresses are not allowed on internet

Which of the following addresses are not allowed on the internet?

  What tag tells the browser where the page starts and stops

Tags and text that do not show directly on the page are placed where?

  Write function integer power-returns value of base exponent

For example, integer Power( 3, 4 ) = 3 * 3 * 3 * 3. Assume that exponent is a positive, nonzero integer, and base is an integer.

  Define an adt for character strings

Define an ADT for character strings. Your ADT should consist of typical functions that can be performed on strings, with each function defined in terms of its input and output. Then define two different physical representations for strings.

  When are voting and elections used in distributed databases

What are the software components in a client-server DDBMS? Compare the twotier and three-tier client-server architectures.

  Construct a frequency polygon of the data

Highway Safety The maximum speed limits in miles per hour for interstate highways for the fifty states are given below.

  Discuss the advantages of cloud infrastructure

Discuss the advantages of Cloud infrastructure over a traditional enterprise computing.

  Digital forensic best practices

Provide at least one example of how being familiar with and following digital forensic best practices, AND criminal justice standards would benefit you

  Problem regarding the benchmark tests

Scenario: Ted has PC5400-DDR2 installed on his motherboard. The memory slots are maxed out. He now upgrades the processor but when doing some benchmark tests, he is disappointed that the system does not seem any faster. Can you suggest any reasons..

  Covert storage channel and a covert timing channel

The distinction between a covert storage channel and a covert timing channel is not a clear-cut. Every timing channel can be transferred into an equivalent storage channel. Explain how this transformation could be done.

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