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 program that calculates and displays the amount of money available in a bank account...
Write a program that calculates and displays the amount of money available in a bank account that initially has $8000 deposited in it and that earns interest at the rate of 3.5 percent a year. Your program should display the amount available at the end of each year for a period of 7 years. Use the relationship that the money available at the end of each year equals the amount of money in the account at the start of the...
* Write a Java program that calculates and displays the Fibonacci numbers * First prompt the...
* Write a Java program that calculates and displays the Fibonacci numbers * First prompt the user to input a number, N * Then use a for loop to calculate and display the first N fibonocci numbers * For example, if the user enters 5, the output should be: * 1, 1, 2, 3, 5 * * if the user enters 10, the output should be: * 1, 1, 2, 3, 5, 8, 13, 21, 34, 55
Write most basic C++ program possible that calculates monthly savings account balance. Program will prompt user...
Write most basic C++ program possible that calculates monthly savings account balance. Program will prompt user to enter initial account balance, annual percentage rate, amount deposited each month, and total number of months. Validate user inputs allowing only positive numbers. B = initial account balance A = amount deposited each month R = annual percentage rate Total Balance = (R/12+1)B+A
WRITE A JAVA PROGRAM 1. Assignment Description Write a stock transaction program that calculates a customer's...
WRITE A JAVA PROGRAM 1. Assignment Description Write a stock transaction program that calculates a customer's profit (or loss) within a certain period of time. 1) First, the program need to get user's name, the stock's code, number of shares and the price he/she purchased the stock, it also asks the user for the price he/she sold the stock later on. The program then compute the following: The amount of money the customer paid for the stock. The amount of...
Create a program in C++ language, create a flowchart, provide a screenshot of the program and...
Create a program in C++ language, create a flowchart, provide a screenshot of the program and output, and involve looping for your program: Nested loops: Challenge. Write a program that calculates and displays the yearly amount available if $1000 is invested in a bank account for 10 years. Your program should display the amounts available for interest rates from 6% to 12% inclusively, in 1% increments. Use a nested loop, with the outer loop controlling the interest rate and the...
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...
programming loop sample (Python) Problem 4.) Each month, Pytho puts $$100 into her bank account at...
programming loop sample (Python) Problem 4.) Each month, Pytho puts $$100 into her bank account at the beginning of each month. Initially, she has $$100 in the account, marking her first deposit. At the end of each month, she earns 2% interest on her current balance, before the next deposit. Then, she makes her $$100 deposit. She would like a function that gives her balance after ?n months. Complete the function below so that the function returns the final 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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT