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

Problem 2 (40 points)-Write a program. Submit a file named weight.cpp Create a program that continuously allows a user to enter

his or her weight in either pounds or kilos. The program should then convert the given weight. Possible Sample Run 1 (your program does not have to match the following exactly, but should have the same functionality): Please enter your name and weight. James 182 pounds Hi James- you weigh 82.5 kilos. Please enter your name and weight. Connor 78 Not enough info to convert. Please enter your name and weight. Connor 78 kilos Hi Connor-you weigh 171.9 pounds. Please enter your name and weight. exit Exiting…
Computers and Technology
1 answer:
JulsSmile [24]3 years ago
4 0

Answer: here

Explanation:

Hi James- you weigh 82.5 kilos. Please enter your name and weight. Connor 78 Not enough info to convert. Please enter your name and weight. Connor 78 kilos Hi Connor-you weigh 171.9 pounds. Please enter your name and weight.

You might be interested in
What tasks does google do?
melomori [17]
What do you mean by tasks?
4 0
3 years ago
Which term means a device that converts one voltage to another?
Orlov [11]

Answer:

I believe it is an adapter

Explanation:

7 0
3 years ago
Will the Python code below print something? And will it terminate?
77julia77 [94]

Answer:

Yes and Yes

Explanation:

When programs are written without indentation; it becomes a problem to read;

I'll rewrite your program as follows:

<em>def print_n(s, n):  </em>

<em>    if n > 0:  </em>

<em>        print(s)  </em>

<em>        print_n(s, n-1)  </em>

<em>    return n  </em>

<em>n = 3  </em>

<em>while print_n("hi", n):  </em>

<em>    print_n("there!", n)  </em>

<em>    n = 0</em>

<em />

Using the above as a point of reference,

Yes, the program will run and Yes, it'll terminate;

Because n is initialized to 3 at line 6 (where the main starts);

The following is passed to the function; s = "hi" and n=3

This prints "hi", three times

s = "there" and n=3 is then passed to the function print_n, afterwards;

The function then prints "there" three times

Then, the program terminates

3 0
3 years ago
30 POINTS! PLEASE ANSWER QUICK!!!
SpyIntel [72]

Answer:

your doctype comes first.

Explanation:

The first thing you should make sure to have in any HTML document you create is a "document type definition (DTD)" declaration.

it defines what elements and attributes are allowed to be used in a certain flavor of HTML

6 0
3 years ago
Which PlayStation was the first to allow connection between it and computer network
Bezzdna [24]

If you're talking about connecting to the internet internet, it would be the PS2. You could buy an adapter for an ethernet cable to allow for online play.

4 0
3 years ago
Other questions:
  • A musical compact disc is an example of
    13·1 answer
  • Tiffany is an instructor at a college that is run on student tuition and not state taxes. Which statement best describes her emp
    6·2 answers
  • Which file extension indicates that a file is an Adobe Acrobat document?
    13·1 answer
  • How can multiple items be selected at the same time in aJList?
    8·1 answer
  • Data types influence the following in the workflow: (Select all that apply)a. the color choices and layout decisions around comp
    15·2 answers
  • Help me with this, please. Are vacuum cleaners, Cd players, and telephones considered computers? Do they store any data or proce
    8·2 answers
  • I need a utube name for a gaming channel....PLEASE HELP...BRAINLIEST
    5·1 answer
  • 4.11 lesson practice quizz need help on 2 and 3
    5·1 answer
  • When do you use an else statement?
    10·1 answer
  • Sự ra đời của thương mại điện tử có tác động như thế nào đến việc quảng cáo và Marketing sản phẩm
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!