Write a program that allows users to enter a dollar amount

Assignment Help C/C++ Programming
Reference no: EM13163426

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel value that the user can enter to stop enter checks. Store the amounts in an array and count the entries as the user makes them. Finally ask the user to enter a monthly interest rate if the account is interest bearing, or 0 if it is not. If the user enters 0 for the interest rate, than call a function named balanceAccount() that accepts the beginning balance, the number of checks, and the array of check amounts as parameters; the function displays the final balance after all checks have been subtracted from the beginning balance. If the user enters a number other than 0 for the interest rate, then call an overloaded function named balanceAccount() that accepts the beginning balance, the number of checks, the array of check amounts, and the interest rate as parameters. This function then computes the final balance by subtracting all the checks from the beginning balance and using the monthly interest rate to increase the final balance before displaying it. 

Reference no: EM13163426

Questions Cloud

Add the correct code to fill the matrix array with the value : Use the file below code and add the correct code to fill the matr2 array with the values that make it the matrix transpose of matr1. There are many examples on the Internet that show how to do this in C++ and what it should look like when it is corre..
Compute the downward pressure in pascals due to gravity : Calculate the downward pressure in pascals due to gravity exerted by the bottom face of a 3.25kg cube of iron that is 7.50 cm
Calculate the concentration of sodium ion in a solution : Calculate the concentration of sodium ion in a solution made by diluting 350.0 mL of 3.00 M sodium carbonate to a total volume of 2.00 L.
Determine molar mass for this compound and oxidation state : Determine molar mass for this compound and oxidation state of lead in it. write the oxide formula of lead for the corresponding oxidation state
Write a program that allows users to enter a dollar amount : Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month.
A photo-sharing startup offers : A photo-sharing startup offers the following service. A client may upload any number N of photos and the server will compare each of the N pairs of photos with their proprietary image matching algorithms to see if there is any person that is in bo..
State the atmospheric pressure in the room : The atmospheric pressure in the room when the measurement was made was 628 mmHg and the temperature was 36.0 degrees C. What is the density of the gas?
Floating point values into an array : Write a program that allows a user to enter 10 floating point values into an array. Then, in a loop, the program should prompt the user for a desired precision and subsequently display each value to the correct precision.
Write a recursive and iterative versions of binary search : in C++ write a recursive and iterative versions of binary search and compare their run times using the array a[i]=i, i=0,..., n-1

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Use structures to create c program to compute student record

Explain the following and give their suitable syntax. A pointer. Use structures to create C program to compute and store student records of class.

  Write a program that plays a tic-tac-toe game.

Using functional decomposition, write a program that plays a tic-tac-toe game.

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Program to add numbers and display sum

For each of problems write C++ code to do the required task. Receive the number and find out whether it is odd or even.

  Write a program that computes the cost of long distance call

Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules.

  Least number of comparisons needed

What is the least number of comparisons needed to sort an array of 6 numbers, in the worst case, using any sorting algorithm that sorts with binary comparisons? Explain

  Design and implement a library system

Design and implement a library system that does the following: ? Takes details of a student/library users: first name, last name, other names, user ID number, and nationality.

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Implement a simplified version of the set class

You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.

  Brownian motion is a physical phenomenon

Brownian motion is a physical phenomenon which can be observed, for instance, when a small particle is immersed in a liquid.

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Write a program to convert between rectangular

Write a program to convert between rectangular and cylindrical coordinates, based upon user input. For example, if the user wants to convert cylindrical to rectangular coordinates, the user would input r, ?, z values and the program would output x, y..

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