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
A document may wordwrap differently depending on the type of printer being used.
Naddika [18.5K]

I believe the answer is true :)

7 0
4 years ago
Intro to Computers quiz answers me need for test please help me hurry
RSB [31]

Answer:

Ethernet connection

Explanation:

4 0
3 years ago
before donating a computer you should use a program to wipe the hardest to remove all of his data true or false
Katarina [22]
True or they could get into your stuff. 
6 0
4 years ago
A company wishes to move all of its services and applications to a cloud provider but wants to maintain full control of the depl
Brrunno [24]

Answer:

b. IaaS  Infrastructure as a Service

Explanation:

  • Infrastructure as a Service is a cloud infrastructure service or platform which provides with the computing resources like servers, storage services, backup service and networking services.
  • These services are provided to the organizations by cloud service providers to fulfill their business and resources requirements and the users have to purchase these services.
  • These resources and services are provided from the data centers of the cloud service providers.
  • It is beneficial to utilize these virtual services from a third party provider  than to buy the hardware equipment and the consumers can use these services as per their needs and are charged accordingly instead of purchasing their own hardware which often gets difficult to maintain.
  • These services also provide and manage the operating systems, the applications and provides with the backup services, internet connection, security such as firewall and access controls and manage storage such as hard drives. Users can install and run any applications.
  • Iaas offers scalability as it can add resources and services with the growing requirements of the users.
4 0
3 years ago
A related database stores data in the form of______
avanturin [10]

Answer:

Lists.

Explanation:

A relational database stores data in the form of lists.

6 0
3 years ago
Other questions:
  • I need help to find out what is wrong with this program and my variable, "exponent" comes out as 0 in the output instead of the
    14·1 answer
  • You want to find information about Paris, France in the last five years, written in English. What is the best way to search for
    5·2 answers
  • In JavaScript, which of the statements below can be used for string declaration?
    11·1 answer
  • Order the following list of functions by the big-Oh notation. Group together those functions that are big θ of one another.6nlog
    5·1 answer
  • What coding language should i begin with if i'm looking to get into AI ?
    11·1 answer
  • What is difference between rand() and srand() ?
    11·1 answer
  • End-user computer refers to a group of end users working together to manage their interactions with a computer.
    10·1 answer
  • How do I change my name on my Brainly Profile?
    15·2 answers
  • Imagine that you are preparing a multimedia presentation. What are the four things you need to consider when getting started?
    14·2 answers
  • 1 paint 2 anahaw leaf 3 shellac 4 varnish 5 metal sheets 6 paint 7 G.I. pipe 8 enamel paint 9 bamboo 10 fillers
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!