Calculate the balance of a savings account at the end

Assignment Help Computer Engineering
Reference no: EM132208505

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:

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. 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.

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: EM132208505

Questions Cloud

Print the initial database of accounts : The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc..
Write a program that finds the area of a circle : Write a program called cirearea() that finds the area of a circle. It should take an argument of type float and return an argument of the same type.
Calculate statistical information on list of integer number : Return the double average and standard deviation via call by reference parameters. The function itself does not return anything.
Write a program that calculates the occupancy rate : Write a program that calculates the occupancy rate for a hotel. The program should start by asking the user how many floors the hotel has.
Calculate the balance of a savings account at the end : Write a program that calculates the balance of a savings account at the end of a period of time.
Simulate a coin toss and determines if it is realistic : Prompt the user to enter the number of times the coins should be tossed. The coin should be tossed at least 10 times.
Calculate and print the sum of the first 100 even numbers : Write a program to calculate and print the sum of the first 100 even numbers. Hint: You need a running sum.
Display the contents of the first array : Write a program in C that uses two identical arrays of just eight intergers. Display the contents of the first array, then call a function to sort.
Write a program to compute the pressure of water at depths : Write a program to compute the pressure of water at depths of 150, 200, and 250 ft.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What do you do to connect to what you are reading

When you are reading an easy piece of text, for instance a piece of fiction you might read for fun, what do you do to connect to what you are reading?

  Designing the class

Develop a test class with at least three unit tests for the program which translates a letter grade into the number grade. Letter grades are A, B, C, D, F, possibly followed by + or -.

  How can algorithmically judge whether turker was answering

This is an opinion task, but how can we algorithmically judge whether Turker was answering in a random or arbitrary manner instead of doing their job seriously?

  Find out the upper control limit ucl and lower control

determine the upper control limit ucl and lower control limit lcl for an x-bar chart if six samples of subgroup size 3

  Calculate area and length of the boundary of field

Define a class called Plot that has private members of length and width. Include a constructor and a public function that calculates the area and the length of the boundary of the field.

  What changes will you suggest for hydro-quebec and why

explain the external factors and internal factors affecting change in IT management at Hydro-Quebec.

  Write a java program that prints a string of zeros and ones

Write a JAVA program that prints a string of zeros and ones that represent the bits of an integer.

  Draw a graph satisfying the given criteria

For each of the following, either draw a graph satisfying the given criteria or explain why it cannot be done. Your graphs should be simple, i.e. not having any multiple edges or self-loops.

  Write a method in your class called reversearray

Write some code that asks the user to enter an integer via the keyboard, use that integer to set the length of an array and populate.

  Show how mediawiki can be install on cloud

Show how MediaWiki can be install on Cloud. (AWS EC2 cloud). I highly recommend creating / using a knowledge base in almost any environment.

  Write structured pseudo code describing your preparation

Draw a structured flow chart or write structured pseudo code describing your preparation to go to bed at night. Include at least two decisions and two loops.

  Obtain eight bit planes for the sena

Use the function extrctb p to obtain eight bit planes for the sena . img and omaha. img test images, and encode them using arithmetic coding. Use the low-resolution contexts shown in given Figure.

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