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
chubhunter [2.5K]
3 years ago
9

Write Java program to allow the user to input the amount of deposit, yearly interest rate (percentage), and income tax(percentag

e). Then the program will calculate the amount of interest that the person earns in the year. See the example output below: The amount of deposit: 10000 Yearly interest rate: 7.5%

Computers and Technology
1 answer:
Vedmedyk [2.9K]3 years ago
3 0

Answer:

import java.util.Scanner;

public class num12 {

   public static void main(String[] args) {

       Scanner scr = new Scanner(System.in);

       System.out.println("Enter a Deposit Amount");

       double amt = scr.nextDouble();

       System.out.println("Income tax in percentage");

       double incomeTaxRate = scr.nextDouble()/100;

       System.out.println("Yearly interest rate:");

       double rate = scr.nextDouble();

       double intRate = rate/100;

       double interest = (amt*intRate)-(amt*incomeTaxRate);

       System.out.println("The Interest on "+amt+" at "+rate+"% after one year is "+interest);

   }

}

Explanation:

Find the sample output attached

Java's Scanner class is used to prompt and receive values for deposit amount, income tax rate and interest rate

The yearly interest is calculate by interest = (amt*intRate)-(amt*incomeTaxRate);

You might be interested in
Write a method that takes two arguments: two integers. The integers are then squared, added and the result printed on the screen
diamong [38]

Answer:

import java.util.Scanner;

class Main

{

   

     public static void main(String[] args)  

     {

     System.out.println(" Enter the the two numbers:");

     Scanner input = new Scanner(System.in);

     int a = input.nextInt();

     int b = input.nextInt();

     int c = sumsquareFunction(a, b);

     System.out.println("Sum of Square of two numbers are:" + c);

     }

public static int sumsquareFunction(int n1, int n2) {

     int c= n1*n1 + n2*n2;

     return c;  

  }

}

Explanation:

Please check the answer.

6 0
3 years ago
Most network cards contain a port that accepts a(n) ____, which looks similar to a telephone connector but is larger.
Vadim26 [7]
YOUR ANSWER IS -------- It accepts a RJ-45 connector
hope i helped you :).
take care
8 0
3 years ago
After establishing a long term goal and understanding what it entails, the best next step is
Aleks [24]

Answer:

plan numerous intermediate short-term goals.

Explanation:

8 0
2 years ago
David was editing his audio recording in his audio editing software. He adjusted the vocal track of his audio toward
Dmitrij [34]

Answer:

b

Explanation:

balancing the sound

a                h    o

l                 e    u

a                      n

n                      d

c

i

n

g

6 0
2 years ago
A have a string, called "joshs_diary", that is huge (there was a lot of drama in middle school). But I don't want every one to k
Norma-Jean [14]

Answer:

C and G

Explanation:

In C language, the asterisks, ' * ', and the ampersand, ' & ', are used to create pointers and references to pointers respectively. The asterisks are used with unique identifiers to declare a pointer to a variable location in memory, while the ampersand is always placed before a variable name as an r_value to the pointer declared.

5 0
3 years ago
Other questions:
  • You can execute three main types of linux commands. what are they?
    8·1 answer
  • To name a computed field, follow the computation with the word ____ and then the name you wish to assign to the field
    8·1 answer
  • Which strategy should individuals working in a diverse workplace adopt?
    13·2 answers
  • 4.5 Code Practice
    15·1 answer
  • Ftp is a _________ that is utilized to copy and manage files over the internet
    13·1 answer
  • Denise is working as a market analyst in a publishing house. What is her career field?
    6·2 answers
  • Why is data processing done in computer?​
    14·1 answer
  • Kevin is working in the Tasks folder of his Outlook account. Part of his computer screen is shown below.
    14·1 answer
  • What type of platform is Twitter?
    10·2 answers
  • Which feature is used to help identify the appropriate content for particular form fields?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!