Question

Problem 2 write Pseudocode for a program that calculates and displays a customer's bank balance at...

Problem 2 write Pseudocode for a program that calculates and displays a customer's bank balance at the end of a month. The customer's bank balance at the end of the month is the beginning bank balance + the total amount of monthly deposit made - the total amount of monthly withdrawals made + interest earned. The information the program will need to get from the user is the beginning bank balance, the amount of monthly deposits , the amount of monthly withdrawals, and the monthly interest rate. The program will need to calculate interest, do so using this formula: interest=interest rate (ending balance before taking interest into account). In other words, the program should calculate the interest earned based on the ending bank balance before adding interest to it. The program should display the ending bank balance on the screen.

Homework Answers

Answer #1

Procedure BankBalanceCalculator()

   print("Beginning bank balance : ");
  
   beg_bal = read_input(); // take the beginning bank balance from user
  
   print("Total amount of monthly deposite made : ");
  
   deposite = read_input(); // take the amount of monthly deposits from user
  
   print("Total amount of monthly withdrawals made : ");
  
   withdrawals = read_input(); // take the amount of monthly withdrawals from user
  
   print("Monthly interest rate : ");
  
   interest_rate = read_input(); // take the monthly interest rate
  
   transaction = beg_bal + deposite + withdrawals;
  
   interest_earned = ( transaction * interest_rate ) / 100 ; // calculating earned monthly interest
  
   ending_bal = transaction + interest_earned; // calculating the ending bank balance
  
   print("The ending balance : " , ending_bal); // showing the ending bank balance to the screen

End BankBalanceCalculator

Java Version -

import java.util.Scanner;

public class BankBalanace {

   public static void main(String[] args) {
       System.out.println("\nBank Balance Calculator\n");
       Scanner ob=new Scanner(System.in);
       System.out.print(" The beginning bank balance : ");
       double beg_bal,deposite,withdrawals,interest_rate,transactions,interest_earned,ending_bal;
       beg_bal=ob.nextDouble();
       System.out.print("\nTotal amount of monthly deposite made : ");
       deposite=ob.nextDouble();
       System.out.print("\nTotal amount of monthly withdrawals made : ");
       withdrawals=ob.nextDouble();
       System.out.print("\nMonthly interest rate : ");
       interest_rate=ob.nextDouble();
       transactions=beg_bal+deposite-withdrawals;
       interest_earned=(transactions * interest_rate)/100;
       ending_bal=transactions+interest_earned;
       System.out.println("\nThe ending balance : "+ending_bal);
       ob.close();
   }

}

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a modular program that calculates and displays a person’s body mass index (BMI). The BMI...
Write a modular program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula BMI = weight * 703/height2 Where weight is measured in pounds and height is measured in inches. The program should ask the user to enter his or her weight and height and then display the user’s BMI. The...
Design a program that calculates the amount of money a person would earn over a period...
Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what salary was for each day, and then show the total pay at the end of the period. The output should be displayed in a...
When you examine Huron’s combined cash budget, you also notice something incorrect. Which of the following...
When you examine Huron’s combined cash budget, you also notice something incorrect. Which of the following facts would you flag for the company’s accountant to follow-up on? A. The company has indicated that seems to already know the months in which it will need to borrow cash from the bank. B. Huron uses the beginning cash balance from the previous month to determine the ending cash balance for the following month. C. The company has added the beginning cash balance...
Carlos Perez has a NOW account at the First State Bank. His checkbook ledger lists the...
Carlos Perez has a NOW account at the First State Bank. His checkbook ledger lists the following checks: Check Numbers Amount 654 $206.05 658 55.02 662 103.00 668 99.06 670 6.18 671 50.39 672 24.90 673 32.16 674 44.50 675 30.00 676 30.00 677 111.23 678 38.04 679 97.99 680 486.84 681 43.50 682 75.04 683 98.55 Carlos also made the following withdrawals and deposits at an ATM near his home: Date Amount Transaction 11/1 $50.00 withdrawal 11/2 $525.60 deposit...
Item #1. The bank statement for August 2019 shows an ending balance of $3,490. Item #2....
Item #1. The bank statement for August 2019 shows an ending balance of $3,490. Item #2. On August 31 the bank statement shows charges of $35 for the service charge for maintaining the checking account. Item #3. On August 28 the bank statement shows a return item of $100 plus a related bank fee of $10. The return item is a customer's check that was returned because of insufficient funds. Item #4. The bank statement shows a charge of $80...
A company borrows $52000 at 10.75% simple interest from State Bank to purchase equipment. State Bank...
A company borrows $52000 at 10.75% simple interest from State Bank to purchase equipment. State Bank requires the company to make monthly interest-only payments and pay the full $52000 at the end of 5 years. In order to meet the 5 year obligation of $52000,the company makes equal deposits at the end of each month into a sinking fund with Wolf Savings. The sinking fund earns 6.75% compounded monthly. Note: This problem is set to allow for an answer of...
Jimmy Herring can borrow $100,000 for three years at 8.0% interest with monthly payments based on...
Jimmy Herring can borrow $100,000 for three years at 8.0% interest with monthly payments based on a 30-year amortization. Assume twelve 30-day months in a year, payments always made on the first day of the month and monthly accrual of interest. Create an interactive amortization schedule in Excel that contains an input menu and that shows monthly payments, monthly interest, monthly principal and the ending monthly balance in columns. Beginning and ending dates do not matter at this point –...
You plan to take a 30-year mortgage in the amount of $800,000 to buy a home....
You plan to take a 30-year mortgage in the amount of $800,000 to buy a home. The bank charges 5.5% annual interest compounded monthly. You are going to pay off this loan by fixed installments (fixed total payment) to be made at the end of each month for thirty years. How much is each installment payment? How much is the total principal repayment after four months? How much is the total interest payment after four months. Draw an amortization table...
The Tarragon Trading Company's bank statement for the month of November showed a balance per bank...
The Tarragon Trading Company's bank statement for the month of November showed a balance per bank of $5,000. The company's Cash account in the general ledger had a balance of $3,440 at 30 November. Other information is as follows: (1)    The bank statement shows a debit memorandum for $50 for cheque printing charges. (2)    The total amount of cheques still outstanding at 30 November amounted to $2,800. (3)    Cash receipts for 30 November recorded on the company's books were $3,100...
This is a Java program Program Description You work for a local cell phone company and...
This is a Java program Program Description You work for a local cell phone company and have been asked to write a program to calculate the price of a cell phone data plan being purchased by a customer. The program should do the following tasks: Display a menu of the data plans that are available to be purchased. Read in the user’s selection from the menu.  Input Validation: If the user enters an invalid option, the program should display an error...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT