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
jarptica [38.1K]
2 years ago
15

In java complete a program that takes a weight in kilograms as input, converts the weight to pounds, and then outputs the weight

in pounds. 1 kilogram = 2.204 pounds (lbs).
Computers and Technology
1 answer:
sleet_krkn [62]2 years ago
6 0

 In java complete a program that takes a weight in kilograms as input, converts the weight to pounds, and then outputs the weight in pounds. 1 kilogram = 2.204 pounds (lbs) by import java.util.

<h3>How do you change kilograms to kilos in Java?</h3>

The public static void main(String [ ] args) the burden in pound: "); pound = in. nextInt(); kilo = pound * 0.453592; gram = pound * 453.59237; System.

  1. import java.util.Scanner
  2. ;
  3. public elegance pound_KG the burden in pound
  4. : "); pound = in.nextInt(); kilo = pound
  5. * 0.453592; gram = pound * 453.59237;
  6. System.out.println("weight in kilos = " + kilo); System.out.println("weight in grams = " + gram);
  7. }

Read more about java:

brainly.com/question/25458754

#SPJ1

You might be interested in
A user reports that he cant browse to a specific website on the internet. From his computer, you find that a ping test to the We
ikadub [295]

Answer:

Incorrect DNS server address

Explanation:

7 0
2 years ago
Why should you try to contact the technical support staff of a web hosting provider before you become one of its customers?
Marianna [84]

Answer: Contacting technical support can give you a general idea of the responsiveness of the web host provider to issues and problems. If the technical support staff is slow getting back to you at this point, don't be surprised if you get the same type of service when you have a problem and need immediate help. While not fail-safe, a quick response to a simple question at least gives the appearance of a well-organized, professional, and responsive technical support staff.

7 0
3 years ago
Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guz
Soloha48 [4]

Answer:

boolean recalled;

((modelYear>=1999 && modelYear<=2002 && modelName=="Extravagant") || (modelYear>=2004 && modelYear<=2007 && modelName=="Guzzler")) ? recalled = true : recalled =false

Explanation:

Using a combination of comparison operators and logical operators, the conditions stated in the question is captured in the code snippet with the boolean variable recalled also declared. Since we are not allowed to use the if statement, we have used the conditional or ternary operator that checks if a condition is true executes the statment that follows the question mark else it executes the statement after the full colon.

3 0
3 years ago
Which of the following statements is true of entrepeneurs
Vanyuwa [196]

Answer:

B. Entrepreneurs often work long hours and must take on the financial responsibilities of the business.

Explanation:

The options:

A. Entrepreneurs generally start their business with the help of many employees who can take on all the day-to-day responsibilities.

B. Entrepreneurs often work long hours and must take on the financial responsibilities of the business.

C. Entrepreneurs usually work standard hours and only have some decision-making authority within the business.

D. Entrepreneurs often have all the responsibilities of managers but rarely deal with legal/safety concerns.

Entrepreneurs certainly work for long hours, and also they take on the financial responsibilities of the business. Other options like they start with the help of many employees is not true certainly. Also, all the decisions are being taken by them, and they always deal with the legal/safety concerns. Hence, B is the correct answer to this question.

8 0
3 years ago
Given a variable temps that refers to a list, all of whose elements refer to values of type float , representing temperature dat
VARVARA [1.3K]

Answer:

The problem of the question code is as follows:

Explanation:

  1. There must be the items in the list: The above question code is in python language. The temps are a list type variable that is used to hold the collection of items or value. But in the above code, there is no item in the K list. So first remove this problem with the help of add the value on the list. There are two ways to add value to the list:- 1. Define the static list element by writing like "temps=[1.2,2.4,4.5]". and 2. Take input from the user and then add by "temps.append(item)".
  2. The syntax of the for loop: The syntax of the for loop is not right because it holds the "range" keyword which is written when we give the numeric value like, "for x in range(2)" or "for x in range(1,2)". So to correct for syntax the user needs to write "for k in temps:".

If the user removes the above-defined error from the code then the above code will run correctly

5 0
3 years ago
Other questions:
  • Which item is essential to know before sketching a navigation menu flowchart
    15·2 answers
  • The system should enable the staff of each academic department to examine the courses offered by their department, add and remov
    14·1 answer
  • What are the links between the operating systems, the software, and hardware components in the network, firewall, and IDS that m
    7·1 answer
  • What technique creates different hashes for the same password? ccna routing protocols final answers?
    7·1 answer
  • Assume that an array named salarySteps whose elements are of type int and that has exactly five elements has already been declar
    11·1 answer
  • What number will be output by the console.log command on line 5?
    14·2 answers
  • What are the advantages of using a folder?​
    6·1 answer
  • True or False: Nanomemory applies to computers.
    13·1 answer
  • Order the steps to add a recommended chart in excel.
    5·2 answers
  • How has the dependence on technology made humanity less intelligent?​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!