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
IrinaVladis [17]
4 years ago
9

Create a program named PaintingEstimate whose Main() method prompts a user for length and width of a room in feet. Create a meth

od that accepts the values and then computes the cost of painting the room, assuming the room is rectangular and has four full walls and 9-foot ceilings. The price of the job is $6 per square foot. Return the price to the Main() method, and display it.
Computers and Technology
1 answer:
mario62 [17]4 years ago
7 0

Answer:

   public static double paintingCost(double roomLength, double roomWitdth){

       double roomDimension = roomLength*roomWitdth;

       double ceilingCost = 6*9; //Since the ceiling is 9-feets ($6/feet)

       double totalCost = (roomDimension*6)+ceilingCost;

       return  totalCost;

   }

Using Java programming language, A complete program is with a call to the method is given in the explanation section

Explanation:

import java.util.Scanner;

public class PaintingEstimate {

   public static void main(String[] args) {

       System.out.println("Please Enter the Length and Width of the Room in Feets");

       Scanner in = new Scanner(System.in);

       double roomLen = in.nextDouble();

       double roomWit = in.nextDouble();

//Calling the method in the output statement

       System.out.println("The total cost of painting the walls and ceiling is:  "+paintingCost(roomLen,roomWit)+" dollars");

}

   public static double paintingCost(double roomLength, double roomWitdth){

       double roomDimension = roomLength*roomWitdth;

       double ceilingCost = 6*9; //Since the ceiling is 9-feets ($6/feet)

       double totalCost = (roomDimension*6)+ceilingCost;

       return  totalCost;

   }

}

You might be interested in
Java allows you to declare methods with the same name in a class. this is called
Tanzania [10]
Polymorphism. Understand: you can have the same names, but the arguments HAVE to be different so that in the bytecode the signatures are unique.
8 0
3 years ago
explain why the intangibility of software systems poses special problems for software project management.
Vaselesa [24]
Unlike other projects like hardware, mechanical works which is tangible it is very easy to identify the progress of the product. But since the product here is software, it is very hard to determine at what phase or progress you are on now. Thus it needs a documentation from someone who are very knowledgeable to be able to know your progress,
4 0
3 years ago
Under which condition below would you expect a glassy extrusive rock like obsidian to form?
agasfer [191]
Hihi!

The correct answer would be D. Quick cooling on Earth's surface! Obsidian is<span>a volcanic rock formed by the rapid solidification of lava without crystallization!

I hope I helped!
-Loliarual
</span>
7 0
4 years ago
Read 2 more answers
Compare and contrast the properties of a centralized and a distributed routing algorithm. give an example of a routing protocol
Naily [24]

Answer and Explanation:

Centralized : Central node in the system gets whole data about the system topology, about the traffic and about different hubs. This at that point transmits this data to the particular switches. The benefit of this is just a single hub is required to keep the data. The hindrance is that if the focal hub goes down the whole system is down, for example single purpose of disappointment.

Distributed: Distributed nodes gets data from its neighboring hubs and afterward takes the choice about what direction to send the parcel. The weakness is that if in the middle of the interim it gets data and sends the parcel something changes then the bundle might be deferred.

Example :

Link State takes Centralized approach

Distance Vector takes Decentralize approach

8 0
3 years ago
2.5 code practice I need answers please
Leni [432]

Answer:

import random

a = random.randint(1,10)

b = random.randint(1,10)

answer = a * b

print (str(a) + " X " + str(b) + " = " + str(answer))

Explanation:

Happy to help you mate

7 0
3 years ago
Other questions:
  • Which steps would you take to determine how much an employee should be paid? Select all that apply.
    9·1 answer
  • Individuals and businesses have concerns about data security while using Internet-based applications. Which security risk refers
    13·1 answer
  • Is the following an example of social media viral marketing? Indicate your response by selecting Yes or No.
    7·1 answer
  • What will the following segment of code output?
    7·1 answer
  • DOUBLE POINTS!! PLEASE HELP QUICKLY!!!!!
    15·2 answers
  • do you think that some people have difficulty talking to others face to face because of how prevalent texting is today
    15·2 answers
  • Write code to check that HairEyeColor is an array. e) Write code to determine: (i) the total number of respondents in the survey
    6·1 answer
  • Which of the following would most likely be the target audience for a product
    7·2 answers
  • Animations<br> Animations are !<br> Blank which can be Applied to blank in a presentation?
    7·1 answer
  • What are LinkedIn automation tools used for?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!