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

  Write a method that removes the duplicate elements

Write a test program that prompts the user to enter 10 integers to a list and displays the distinct integers separated by exactly one space.

  Should the getter and setter methods for the properties be

Design and draw a class hierarchy for the above objects, based on the given properties. In your class hierarchy place variable names next to each class.

  How the total number of nodes considered

Explain how the total number of nodes considered during the search could be reduced by conducting two searches at the same time-one beginning at the initial state while the other searches backward from the goal- until the two meet.

  Determine what are best values of n for various list sizes

A phase consists of N accesses in the list, for a given parameter N. Determine what are the best values of N for various list sizes.

  There will be a discussion about the binary number system

Under the Hood. There will be a discussion about the binary number system. Give an example of how you would teach

  Explain the advantages of the mib module

Now create a MIB Module for your company. The objective is to find the inventory of any specific product while sitting in your office.

  Describe uses for each of intellectual property protection

Give two examples of how a social pressure or need led to the development of a new information technology. Give two examples of how the adoption of a new information technology changed society.

  How can law enforcement deal with the problem

What challenges does law enforcement face in controlling Child Pornography? How can law enforcement deal with this problem?

  Write an application that computes the area of a circle

Write an application that computes the area of a circle, rectangle, and cylinder. Display a menu showing the three options.

  Create a package diagram of the problem domain layer

Create a package diagram of the problem domain layer using the communication diagrams and the CRUDE matrix through the use of graphical tools

  Build the given bit shift register with given three ttl

TTL 74174 is a 6-bit parallel in=parallel out register that has six inputs D0-D5 and six outputs Q0-Q5. Show how to connect TTL 74174 so that it operates.

  Grading for this assignment will be based on answer

write a 2-3 page paper in which youidentify and describe the challenges when implementing groupware.explain the

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