1answer.
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]
4 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]4 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]4 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
Any movie/show suggestions??
trasher [3.6K]
The office is a good one. If you haven’t ever watched it
6 0
3 years ago
Read 2 more answers
An HP PC does not support the HP System Board Configuration tool, and you must use the HP System Board Replacement and System Di
GuDViN [60]

Answer:

Press F2 to see if the System Diagnostics or Hardware Diagnostics UEFI menu displays.

Explanation:

Start the HP BIOS Setup utility and view the Advanced > Diagnostics screen for supported diagnostics.

Boot to Windows and launch HPSA. Search for HP PC Hardware Diagnostics UEFI.

All HP commercial products manufactured after 2009 have HP PC Hardware Diagnostics UEFI installed on the hard drive.

7 0
3 years ago
Using more than one array to store related data is called _____________ arrays.
Makovka662 [10]
It is called matrix arrays
6 0
3 years ago
Read 2 more answers
Write a definition in your own words for telecommunication. Do not cop and paste please.
34kurt

Answer:

Telecommunication is also known as telecom(s), is the exchange of information over significant distances by electronic means, referring to all types of voice, data, and video transmission. This is a broad term that includes a spacious telecommunication field called the electromagnetic wireless range of technologies and communications infrastructures, such as wired phones; mobile devices, such as cellphones; microwave communications; fiber optics; satellites; radio and television broadcasting; the internet; and telegraphs.

A complete, single telecommunications circuit consists of two stations, each equipped with a transmitter and a receiver. The transmitter and receiver at any station may be combined into a single device called a transceiver. The medium of signal transmission can be via electrical wire or cable -- also known as copper -- optical fiber, electromagnetic fields, or light. The free space transmission and reception of data by means of communications. information  

Explanation:

7 0
3 years ago
Which case would benefit from Explainable Artificial Intelligence (AI) principles?
Nadya [2.5K]

The case that will benefit from Explainable Artificial Intelligence (AI) principles is a doctor who depends on AI to make diagnosis.

Using Explainable Artificial Intelligence principles of supported evidence, understandable and accurate explanations, and knowledge limit as designed for AI, will save the doctor and all medical staff enormous amount of time.

Explainable Artificial Intelligence enables all medical staff to focus on correct medical interpretation and treatment instead of wasting time on repetitive medical tasks.

In comparison, the medical doctor will benefit more than a music streaming platform recommending a song, a navigation platform suggesting fastest routes, or a social media platform that identifies faces from a picture.

Thus, a medical doctor will find Explainable Artificial Intelligence principles useful to reduce some of the repetitive tasks that she undertakes, thereby focusing her attention on providing appropriate medical care to the patients.

Learn more about Explainable Artificial Intelligence here: brainly.com/question/22650312

5 0
3 years ago
Read 2 more answers
Other questions:
  • Choose the correct sequence for classifier building from the following.
    7·1 answer
  • Is a book considered technology?
    8·2 answers
  • How many much memory is in one megabyte ?
    9·1 answer
  • Rutherford concluded from his calculations that the volume of an atom is filled with protons, neutrons and electrons. is mostly
    14·1 answer
  • How can you represent a graphic element in a wireframe?
    5·1 answer
  • How do you resolve conflicts in your life??
    11·1 answer
  • Write a program that will generate a personalized invitation within a text file for each guest in the guest list file using the
    15·1 answer
  • What is a computer class from 8​
    12·1 answer
  • State the Limitations of the first generation of computers​
    8·1 answer
  • Which of the following uses the proper syntax for creating an HTML comment?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!