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
pogonyaev
3 years ago
5

Develop a java application that meets the following program description:

Computers and Technology
1 answer:
saw5 [17]3 years ago
3 0

Answer:

import java.util.Scanner;

public class Appliance

{

public static void main(String[] args) {

   

    final double financingRate = 0.03;

    final int numberOfMonths = 12;

    Scanner input = new Scanner(System.in);

   

    System.out.print("Enter the item you want to purchase: ");

    String itemPurchased = input.nextLine();

    System.out.print("Enter the price for the item: ");

    double purchasePrice = input.nextDouble();

       

       double monthlyPayment = ((purchasePrice * financingRate) + purchasePrice) / numberOfMonths;

       double totalPayment = monthlyPayment * numberOfMonths;

double extra = totalPayment - purchasePrice;

   

System.out.print("You purchased "+ itemPurchased+ "\nYour monthly payment is: "+ (String.format("%.2f",monthlyPayment)) + "\nYour total payment is: "+ (String.format("%.2f",totalPayment)) + "\nYour extra payment is: "+ (String.format("%.2f",extra)));

}

}

Explanation:

- <em>financingRate</em> and <em>numberOfMonths</em> are initialized as constant.

- <em>Scanner object</em> is used to get <em>purchased item and price</em>.

- <em>monthlyPayment</em> is calculated using the given formula.

- <em>totalPayment</em> is calculated by multiplying <em>monthlyPayment </em>and 12.

- <em>extra</em> is calculated by subtracting <em>purchasePrice</em> from <em>totalPayment</em>.

- All the required things are printed out. Be aware that since numbers are required to have two decimal points, String.format("%.2f", variableName) is used.

You might be interested in
Word provides an undo button that can be used to cancel the most recent command or action. true or false.
erastova [34]
The answer would be true.
7 0
3 years ago
Read 2 more answers
In a _____ cloud, a participating organization purchases and maintains the software and infrastructure itself.
notka56 [123]

Answer:

"Private" is the right solution.

Explanation:

  • Application servers supplied sometimes over the World wide web or through a personal corporate network as well as to chosen customers rather than the community benefit of the entire, is termed as the private cloud.
  • It provides companies with the advantages of a cloud environment that include self-checkout, adaptability as well as flexibility.
6 0
3 years ago
Which of the following galaxy types is most likely to be clearly identifiable, regardless of orientation? SBc
Reil [10]

Answer:

The most likely galaxy type to be identifiable regardless of orientation is: Irr

Explanation:

The Irr galaxies don't have a discernable or usual shape; that is why it is relatively easy to identify.

When we talk about E type galaxies, this statement proves itself by the way the cumulus of stars compounds the galaxy. The elliptical galaxies have the form of ellipses, with a reasonable distribution of stars. The degree of eccentricity is the number that complements the E letter; that's why E0 galaxies are almost spherical, while E7 is considerably elongated.

SBc, SBa galaxies are spiral; this means it can be flat in some angles difficulting their identification process; in this case, the last letter means the way the arms display their form, with "c" having a vague form and "a" well-defined arms. That's why in some angles can be mistreated as another type of galaxy.

3 0
3 years ago
Recent trends on operating system
katovenus [111]

Answer:

Windows 10 if this is what I think u mean

7 0
3 years ago
In a relational database, a ____ would ensure that two customers with the same name don’t get confused with each other.
earnstyle [38]

Answer: Primary key

Explanation: Relational databases are those databases which are commonly found in the form of tables . It works in the relation pattern for accessing the data in the database

Primary key is a major factor which is found in the relational databases for the identification of the data in the table's column.It is considered as the unique value that corresponds to the values of rows in the table of relational database.

6 0
3 years ago
Other questions:
  • Ten 9600-bps lines are to be multiplexed using TDM. a. Ignoring overhead bits in the TDM frame, what is the total capacity requi
    6·1 answer
  • What is life all about?
    15·2 answers
  • During an experiment, if you purpose change the temperature to test a hypothesis the temperature is called what??
    6·1 answer
  • Computers store temporary Internet files in the Recycle Bin. These files take up space and slow down a computer. Which tool can
    10·1 answer
  • Python: Write a program that generates 8 random scores (between 0 and 100), store them in an array,
    8·1 answer
  • The number of pixels that can be displayed on the screen at one time is known as what? screen resolution. viewing angle. color d
    5·1 answer
  • How to get the home button on your screen?
    13·1 answer
  • You are working with an online tech service to fix a problem with installation of a program on your machine. You grant them remo
    13·1 answer
  • What is the purpose of extent in lines in engineering drawing
    12·1 answer
  • Matt uploads a malware sample to a third-party malware scanning site that uses multiple antimalware and antivirus engines to sca
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!