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
andrezito [222]
3 years ago
13

Create a script that asks for the visitor's weight in pounds and his/her height in inches. The program should then calculate the

body mass of the visitor. Display the weight, height, and body mass on the screen.

Computers and Technology
1 answer:
Nookie1986 [14]3 years ago
6 0

Answer:

weightPound = float(input("Enter your weight in pounds "))

heightInches = float(input("Enter your height in inches "))

weightKg = weightPound*0.453592

heightMeter = heightInches*0.0254

BodyMassIndex = weightKg/(heightMeter*heightMeter)

print("")

print("Your Weight in kilograms is: ")

print(weightKg)

print("Your Height in meters is: ")

print(heightMeter)

print("Your Body Mass Index is: ")

print(BodyMassIndex)

Explanation:

  1. Above is a Python Script to accomplish the task
  2. See attached image for the program output.
  3. Observe that we used the formula weight/height*height to calculate the Body Mass Index
  4. Observe also the conversion from pounds to Kilogram and inches to meters

You might be interested in
can anyone yell how to save the python file in folder i am saving it but whenever I'm trying to open its not open​
NISA [10]

Saving a python file implies that one wants to have a physical file of the program on a storage device.

To save a python program, the following step must be followed

  1. Select Save As
  2. Navigate to the directory where you want to save the file
  3. Enter the file name
  4. Click save

Note that python files are saved in the .py extension

Read more about python programs at:

brainly.com/question/16397886

4 0
3 years ago
Read 2 more answers
python If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention. Write a program that prompts t
aksik [14]

Answer:

PYTHON CODE:

str = input("Enter the first 9 digits of an ISBN-10 as a string : ") # user input

i = 1

checksum = 0 # for total sum

while i < 10:

c = int(str[i - 1]) # getting every digit of the ISBN

c = c * i

checksum += c

i=i+1

checksum=checksum % 11 # getting the last digit of ISBN

ch=checksum

if checksum==10: # if the last digit is 10 then change it to X

ch="X"

print("The Complete 10-Digit ISBN is : ",end="")

print(str,end="") # displaying the 9 digit of ISBN

print(ch) # appending the last digit of ISBN

Explanation:

3 0
3 years ago
Tumblr, Jaiku is an example of _____________ website.
adelina 88 [10]

Answer:

<h3><u>Microblogging </u></h3>

  • <u>One of the best-known channels in the microblogging world. Twitter is a quick and convenient way to share short posts, GIFs, article links, videos and more. Pinterest: Companies on Pinterest link to products, articles and other useful information for </u><u>audiences </u><u>.</u>

Explanation:

<h2>Hope this helps you !! </h2>
3 0
2 years ago
which type of classroom enables students to attend lectures without being physically present with the teacher
natka813 [3]
It should be high classed with a interesting pictures so students get attracted to listen
6 0
3 years ago
Who invented the balloons?
Alexandra [31]
<span>Professor Michael Faraday</span>
6 0
3 years ago
Read 2 more answers
Other questions:
  • At an open or uncontrolled intersection, yield if ____.
    11·2 answers
  • What devices are used to connect computers to a network?
    10·1 answer
  • which of the following is involved in ordering an outline. A.grouping B.merging C.organizing D.arranging
    10·1 answer
  • Microsoft acknowledged that if you type a res:// url (a microsoft-devised type of url) which is longer than ____ characters in i
    9·1 answer
  • Personality traits such as thoughtfulness, empathy, self-control, and goal orientation belong to the _____ category.
    5·2 answers
  • Which of the following is not a characteristic of a motorcycle?
    6·1 answer
  • HELP!!!
    13·2 answers
  • What is 11100111 to decimal form?
    9·2 answers
  • ____ is an example of a set of prewritten classes that allows you to access data stored in a database.
    8·1 answer
  • Lab: even/odd values in an array
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!