Program that allows users to enter a dollar amount

Assignment Help JAVA Programming
Reference no: EM13713050

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

- Add an appropriate 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.

Please only use things that would have been learned in the first six chapters of the book mentioned above. Please dont use code that we have not learned about.

Points will be awarded promptly as long as it is right format correct code and runs properly.

Reference no: EM13713050

Questions Cloud

Evaluate the tip amount that should be added : Write a program that will be used to evaluate the tip amount that should be added to a restaurant charge. Allow the user to input the total, before taxes and the tip percentage (15% or 20%).
Write a program which adds two matrices : Write a program which adds two matrices together and displays the sum - Two arrays will contain user input, and the third array will be used to contain the sum of the two arrays.
Calculate and display the miles-per-gallon value : Program that asks the user to enter the number of miles traveled and the number of gallons of gasoline consumed. It should then calculate and display the miles-per-gallon value. Confine your output to 1 decimal place.
Describe the characteristics of laminar airflow : Describe the characteristics of laminar airflow in the boundary layer. Explain in brief of the above problem.
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. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50.
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 and the given test method:
Find cfgs for the languages : Find CFGs for the languages over the alphabet sigma = {a   b}:
Prepare a vb application for the subsequent math application : Prepare a VB application for the subsequent Math Application - The problems displayed for the students into two levels.
Difference for class linked bag and test into main program : write a method difference for the class linked bag and test into main program.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java program called namecollector

Write a Java program called "NameCollector" that contains an object invocation for a class called "Collector".

  Creates a professorraing class

Write a program that creates a professorRaing class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfullness, and clarity. In a separate implementation class, allow the user to enter the values.

  A program that reads a four-digit number from the keyboard

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  Complete the recursive method matchstring x string y in the

complete the recursive method matchstring x string y in the code below which will determine whether or not two strings

  Describe the applications functionality

Create an application for Koch's Cottages, a weekend getaway resort that rents cottages and boats to use on the local lake - Add labels as suitable to describe the application's functionality. Save the file as JCottageFrame.java.

  Given a hash function hkey prepare a java simulation

given a hash function hkey prepare a java simulation program to determine each of the subsequent quantities after

  What is the purpose of using javascript on a website what

what is the purpose of using javascript on a website? what is a specific example of a javascript application that will

  Create a japplet that contains a jlabel and jbutton

Create a JApplet that contains a JLabel and JButton -  create an HTML document to host the applet, set the Width to 450 and the Height to 200. Save as TestJChangeFont.html.

  The array at the index method

have an array, how do i remove an entry from the array at the index method?

  Make a program that show the sales amount

You have to make a program that show the sales amount. Be sure to include comments. Comments should be included in the program to explain your calculations and program.

  Write a generic class

Write a generic class (using Java generics) called Pair that stores two values of the generic type.  It should have a constructor to set them, two methods getfirst() and getsecond() to retrieve them.

  Write a program that assigns seats on an airplane

Prepare a program that teaches arithmetic to a young child. The program tests subtraction and addition. Write a program that assigns seats on an airplane.

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