answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
xenn [34]
2 years ago
8

An online bank wants you to create a program that shows prospective customers how their deposits will grow. Your program should

read the initial balance and the annual interest rate. Interest is compounded monthly. Print out the balances after the first three months. Here is a sample run:
Initial balance: 1000

Annual interest rate in percent: 6.0

After first month: 1005.00

After second month: 1010.03

After third month: 1015.08
Computers and Technology
2 answers:
EleoNora [17]2 years ago
8 0

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

   

 Scanner input = new Scanner(System.in);

 System.out.print("Enter the initial balance: ");

 double initialBalance = input.nextDouble();

 System.out.print("Enter the annual interest rate: ");

 

 double annualInterestRate = input.nextDouble();

 double monthlyInterest = (annualInterestRate / 100) / 12;

       double currentBalance = initialBalance + (initialBalance * monthlyInterest);

 

 for(int month=1; month<=3; month++){

     System.out.printf("Your balance after " + month + ". month: %.2f \n", ((initialBalance + (initialBalance * monthlyInterest)* month)));

 }

}

}

Explanation:

* The code is written in Java

- Ask user to enter initial balance and annual interest rate

- Calculate the monthly interest

- Calculate the current balance

- Print the value of the balance after first three months using for loop

lana66690 [7]2 years ago
5 0

Answer:

  1. init_balance = float(input("Initial balance: "))
  2. interest = float(input("Annual interest rate in percent: "))
  3. montly_interest = (interest / 100) / 12
  4. current_amount = init_balance + init_balance * montly_interest
  5. print("After first month: %.2f " % current_amount)
  6. current_amount = current_amount + current_amount * montly_interest  
  7. print("After second month: %.2f " % current_amount)
  8. current_amount = current_amount + current_amount * montly_interest
  9. print("After third month: %.2f " % current_amount)

Explanation:

The solution code is written in Python.

Firstly, prompt user to input initial balance and annual interest rate using input function (Line 1 - 2).

Next, divide the annual interest by 100 and then by 12 to get the monthly interest rate (Line 4).

Apply the formula to calculate the current amount after adding the monthly interest (Line 5) and display the current month after first month (Line 6).

Repeat the same steps of Line 5 - 6 to calculate amount after two and three months and display print them to console. (Line 8 - 12).

You might be interested in
Broker Ray is closely acquainted with the Subdivision Heights neighborhood of his town. Over the year, Ray has made it a practic
spin [16.1K]
No multiple choice?
4 0
2 years ago
Janice has a "jammed" key on her keyboard. Every time she strikes the "S" key it sticks and doesn't pop back. What should Janice
Alekssandra [29.7K]

Answer:

I think its A canned air

Explanation:

because i was in computer last year and finished with a 97 i hope this helps

3 0
2 years ago
Read 2 more answers
Docker is focused on ______ containerization.
e-lub [12.9K]

Answer:

Application

Explanation:

Docker is a known container technology platform that can help in the packaging of an application by a developer. It is a platform that is used by software developers to build applications based on containers. Using this containerization platform would enable the application to run without issues In any environment. That is either development, test or production environment.

5 0
2 years ago
Write a program that has the following String variables: firstName, middleName, and lastName. Initialize these with your first,
Licemer1 [7]

Answer:

The programming language is not stated; However, I'll answer your question using C++ programming language.

Comments are used for explanatory purpose

Program starts here

#include<iostream>

#include <string>

using namespace std;

int main()

{

//Declare Variables

string firstName, middleName, lastName;

char firstInitial, middleInitial, lastInitial;

/*Initialize firstName, middleName and lastName (Replace values with your details)*/

firstName = "First Name";

middleName = "Middle Name";

lastName = "Last Name";

 

// Get Initials

firstInitial = firstName.at(0);

middleInitial = middleName.at(0);

lastInitial = lastName.at(0);

 

//Print Results

cout<<"Lastname: "<<lastName<<endl;

cout<<"Firstname: "<<firstName<<endl;

cout<<"Middlename: "<<middleName<<endl;

cout<<"Last Initial: "<<lastInitial<<endl;

cout<<"First Initial: "<<firstInitial<<endl;

cout<<"Middle Initial: "<<middleInitial<<endl;

return 0;

}

3 0
2 years ago
Use the image below to answer this question.
Leviafan [203]

Answer:

The question given is incomplete as it does not contains the image. I have found the image of the question and it is attached below.

The solution of the question is also attached below in the image.

I hope it will help you!

Explanation:

4 0
2 years ago
Other questions:
  • Let's assume that the smallest possible message is 64 bytes (including the 33-byte overhead). if we use 100base-t, how long (in
    10·1 answer
  • What is the term for a web site that uses encryption techniques to protect its data?
    12·1 answer
  • Jimmy is preparing a slide show to teach the grade three students the importance of cleanliness. which element should he use in
    5·2 answers
  • What was one important academic skill the blogger learned?
    9·1 answer
  • Fill in the blank; "As well as their traditional role of computing data, computers are also extensively used for..."
    14·1 answer
  • A database design where certain data entities are combined, summary totals are carried in the data records rather than calculate
    5·1 answer
  • The X.500 standard defines a protocol for a client application to access an X.500 directory known as which of the following opti
    10·1 answer
  • To be eligible for the leadership training program offered by the office, a student must have at least 2 years of post-secondary
    9·1 answer
  • Which argument forces a writer to return to and change the input before resolving a “UnicodeError”?
    10·1 answer
  • A record company is using blockchain to manage the ownership of their copyrighted content. The company requires that every time
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!