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
Jason wants to set up his Wi-Fi’s security. He cannot install a central server for authentication. However, he wants to use a pr
jolli1 [7]

Answer:

Answer = a ig

wpa. ig ig ig ig

4 0
3 years ago
1. Controlling Redundancy 2. Restricting Unauthorized Access 3. Providing Persistent Storage for Program Objects 4. Providing St
Dominik [7]

Answer:

Are all jobs of a DBMS (Database Management System).

Explanation:

DBMS or Database Management System is a software tool that is used to manage databases. Popular examples include MS SQL Server, Oracle and MySql. DBMSs can range from command line tools to fully featured programs.

DBMS's main job is to provide a interface for managing database, and also provide efficient and quick results of queries.

DBMSs also provide ways to connect your application to the database through APIs, so that a programmer can provide persistence to the application data.

4 0
4 years ago
Choose the word that best completes this sentence. Caught-in and caught-between injuries result from a person being squeezed, ca
salantis [7]
Two adjacent
Two parallel
3 0
4 years ago
Read 2 more answers
Design a system for a book store that allows the owner to keep track of the store’s inventory and members. The store sells two t
IRINA_888 [86]

Hey! How are you? My name is Maria, 19 years old. Yesterday broke up with a guy, looking for casual sex.

Write me here and I will give you my phone number - *pofsex.com*

My nickname - Lovely

7 0
3 years ago
Prove by contradiction that there is no software able to win every time on checkers
LuckyWell [14K]

Answer:

Tinsley had been the world's best for 40 years, a time during which he'd ... It's possible no single person had ever dominated a competitive pursuit ... to prove that Chinook could have beaten the man was to beat the game itself. ... So when Schaeffer began building his own software, he went straight back to ...

Explanation:

Marion Tinsley—math professor, minister, and the best checkers player in the world—sat across a game board from a computer, dying.

Tinsley had been the world’s best for 40 years, a time during which he'd lost a handful of games to humans, but never a match. It's possible no single person had ever dominated a competitive pursuit the way Tinsley dominated checkers. But this was a different sort of competition, the Man-Machine World Championship.

His opponent was Chinook, a checkers-playing program programmed by Jonathan Schaeffer, a round, frizzy-haired professor from the University of Alberta, who operated the machine. Through obsessive work, Chinook had become very good. It hadn't lost a game in its last 125—and since they’d come close to defeating Tinsley in 1992, Schaeffer’s team had spent thousands of hours perfecting his machine.

The night before the match, Tinsley dreamt that God spoke to him and said, “I like Jonathan, too,” which had led him to believe that he might have lost exclusive divine backing.

So, they sat in the now-defunct Computer Museum in Boston. The room was large, but the crowd numbered in the teens. The two men were slated to play 30 matches over the next two weeks. The year was 1994, before Garry Kasparov and Deep Blue or Lee Sedol and AlphaGo.

MORE STORIES

Donald Trump with blue squiggles covering his mouth.

Twitter’s Next Trump Problem

KAITLYN TIFFANY

An illustration of Donald Trump facing Joe Biden with the stripes of the flag between them

Welcome to Election Purgatory

IAN BOGOST

GIF of the Eye of Providence and Joe Biden

QAnon Is Winning

KAITLYN TIFFANY

Contemporary accounts played the story as a Man vs. Machine battle, the quick wits of a human versus the brute computing power of a supercomputer. But Tinsley and Schaeffer both agreed: This was a battle between two men, each having prepared and tuned a unique instrument to defeat the other. Having been so dominant against humans for so long, Tinsley seemed to thrill at finally having some entity that could give him a real game. He had volunteered to play friendly matches against the computer in the run-up to their two world championship matches. And Schaeffer, though he was a bull-headed young man, had become the most effective promoter of Tinsley’s prowess and legacy.

6 0
3 years ago
Other questions:
  • BITS wants to store information about the supervisors, including their supervisor number and the relationship to consultants. Su
    15·1 answer
  • In the 2007/2010 version of Paint, which of the following tools are located in the View tab? (Select all that apply.)
    5·1 answer
  • List several things that geographers can map using remotely sensed data
    5·1 answer
  • Consider the following sequence of items 10, 36, 25, 54, 37, 12, 75, 68, 42, 86, 72, 90. Insert these items in the order above,
    5·1 answer
  • What did Richard Maddox invent? Why was this important?
    12·2 answers
  • An example of negative self-talk is:
    13·2 answers
  • Word processing software, spreadsheet software, database software, and presentation software are examples of what category of co
    13·1 answer
  • Which is the answer
    12·1 answer
  • Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is neede
    14·1 answer
  • Software is the brain of computer. Explain this starement
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!