Calculate the BMI of a person using the formula BMI = ( Weight in Pounds / ( ( Height in inches ) x ( Height in inches ) ) ) x 703 and assign the value to the variable bmi. Assume the value of the weight in pounds has already been assigned to the variable w and the value of the height in inches has been assigned to the variable h. Take care to use floating-point division.
SUBMIT
1 of 4: 2020-05-24 21:05:22 - W2 of 4: 2020-05-24 21:39:16 - W3 of 4: 2020-05-24 21:54:30 - W4 of 4: 2020-05-24 22:32:18 - W
#python program to compute BMI
print("Enter weight in pounds:")
w = float(input())
print("Enter height in inches:")
h = float(input())
bmi = w / (h * h) * 703
print("BMI = " + str(bmi))

Answers

Answer 1

Answer:

See Explanation

Explanation:

Your program is correct.

However, it's best to control your output (especially when it involves decimals) by rounding up to some decimal places.

So, I'll rewrite the program as follows (See comments for explanation)

#Prompt user for weight

w = float(input("Enter weight in pounds: "))

#Prompt user for height

h = float(input("Enter height in inches: "))

#Calculate BMI

bmi = w / (h * h) * 703

#Print BMI and round up to 2 decimal places

print("BMI = " + str(round(bmi,2)))


Related Questions

You decide that you want to run multiple operating systems on a single machine which of these will you need?

firmware

multitasker

hypervisor

0S switcher

Answers

Answer:

Hyer-V = Hypervisor

Explanation:

Hyper visor because their job is to mostly multi Task work

Is a house phone a computer?
And why??

Answers

Answer:

yes because they emit radio waves or radio frequency

Explanation:

No there are two separate device one is for calling and reviving info and the other is too work on even though they both take in information

1. Immunomedics was alerted that there was some negative buzz about the company in a chat room. The poster used a pseudonym, and therefore the company was unable to identify the poster for lawsuit purposes. The only information the company could ascertain was the poster’s ISP. So the company decided to subpoena the ISP for identity information of the poster in order to file suite against the poster. How should the courts handle these cases, where the company’s complaints may, or may not rise to the level of an actionable legal claim?
2. Users of the popular Internet website Craigslist are able to post advertisements for housing that permit statements regarding the preference, limitation, or discrimination of others based on race, religion, sex, or family status. The Fair Housing Act (FHA), however, prohibits making, printing, or publishing a notice, statement, or advertisement for sale or rental of dwellings indicating preference, limitation, or discrimination based on protected classes. As such, the Chicago Lawyers Committee for Civil Rights Under Law, Inc. brought suit against Craigslist alleging a violation of the FHA. In defense, Craigslist claimed that it was immune from liability based on Section 230(c)(1) of the CDA, which protects interactive computer services from liability for unlawful third-party content. Should Craigslist be subject to liability for FHA violations? Why or why not?

Answers

Explanation:

1.)

If the only information that this company was able to get is the ISP then they should provide it to the court and then the court handles it by ordering that the ISP be registered. through the ISP, details of the poster would be ascertained and. this poster would be caught. The company can then decide to take legal actions because this a a degradation on the company and it is also a form of social harassment.

But in a situation where the complaints is unable to be proven because of insufficient facts, then a lawsuit cannot be filed.

2.)

craigslist cannot or shouldn't be subjected to any liability for FHA violations after all they are just a service provider and shouldn't be held responsible for the violations or unlawful practices of a another party. What craigslist engages in is the provision of platform for users to be able to post advertisements.

Other Questions
How does social Darwinism fit into immigration ? Loss of habitat leads to a loss of generalist species, followed by a lossof generalist species?True or False? what is the answer to 5x2 + 7x2 + 5 George is 2 in. taller than the quotient of Myrons height and 3. Let m represent Myrons height, in inches. Write an expression that represents Georges height, in inches. Dale is on the Internet 12 hours a day. He spends 75% of that time sending messages. He spends the rest of the time playing games. How many hours does Dale play games on the Internet each day? Match the thinkers with their ideas Thomas Malthus adam smith and Robert owen use the sum of cubes identity to write this polynomial expression in factored form: 8x^3 + 27 1. Which sentence best describes the section Transforming America?5 pointsA. It lists the events of the Industrial Revolution.B. It provides information about the amount of coal found in the U.S.C. It helps readers understand why many children worked in coal mines in 1911,D. It describes how coal changed people's lives. PLEASE HELP QUICKLY: (FIRST ANSWER GETS BRAINLIEST) PERSONAL & FAMILY FINANCEWhich statement BEST argues that stock markets can be good for society?The stock market helps people earn money without having to pay any taxes on their income.The government requires all companies to participate in the stock marketThe stock market allows individuals to invest money and create more money. Is the chemical equation NH3(g)+O2(g)NO(g)+H2O(l) balanced? WILL GIVE BRAINLIEST!!!!!!!!!!!!!!!!!!!!!!!!!!!Which of the following DOES NOT add carbon dioxide to the atmosphere.Group of answer choicesplanting treesburning woodcooking with gasriding in a bus Jonah is looking in the camera menu for a place where he can choose the file formatfor his photograph-what setting should he look for?"slow lens" or "zoom lens""depth of field" or "metadata""image size" or "recording mode""JPEG" or "RAW" I have a Spanish Essay due and I dont know if my essay meets the criteria and if the spelling, grammar, and structure is good. I will give brainliest for people who can help!Here is my essay: Luis Alfonso Rodrguez Lpez-Cepero es un msico, artista, intrprete y compositor, conocido como Luis Fonsi en el mundo de la msica. Colocado en San Juan, Puerto Rico, el 15 de abril de 1978, es hijo de Alfonso Rodrguez y Delia Lpez-Cepero. Desde muy joven, demostr un inters innato en la msica, ya que casi siempre imit a los miembros de la banda y se convirti en parte del Coro Infantil de San Juan Puerto Rico. Luis Alfonso asisti a la Universidad Estatal de Florida para estudiar msica. Saba que quera unirse al coro de la universidad. Viaj por todo el mundo con el equipo del coro de su escuela y finalmente condujo a un contrato con Universal Music Latin. Una vez, Luis condujo a su grupo del coro se perdi la leccin del coro despus de tomar un giro equivocado. Luis tambin trajo una grabadora para cada prctica para grabar. Luis saba todo sobre la msica y lo que quera perseguir a una edad temprana. Durante una de sus fiestas del coro en un pas diferente, Luis no saba dnde despegaba el avin y casi perda su vuelo. El 9 de julio de 2011, Luis tuvo una cartelera que lo nombr "Lder de la generacin musical latina. Luis y Daddy Yankee lanzaron "Despacito" a principios de 2017 y se convirtieron en la cancin de ms rpido crecimiento. En cuatro meses, "Despacito" alcanz un total de 5 mil millones de visitas. Despus de lanzar "Despacito", se convirti en un cantante muy conocido, ya que su msica se hizo ms popular. Lamentablemente, en 2005, Luis estaba en medio de una gira internacional que fue cancelada cuando la esposa de Luis tuvo cncer. Luis prometi quedarse a su lado en todo momento. Pero, el trabajo de Luis se puso a esperar, ya que en 2017, Puerto Rico y La Repblica Dominicana se enfrentaron a un terrible huracn. Desde 2008, Luis ayuda en el hospital infantil St. Judes, para ayudar a los nios con cncer. En noviembre de 2017, lanz una cancin con Demi Lovato y la cancin se convirti en el top tres en la lista "Latin Hot Songs". Luis volvi a la casa en la que creci con su esposa diciendo: "Esta es la casa en la que crec". Luis y su espousal asistieron a una fiesta y fue demasiado para Luis, as que Luis entr en otra habitacin y cerr la puerta, detrs de la cual la fiesta continu. En conclusin, Luis es una gran inspiracin para los jvenes cantantes. Aprend que Luis siempre estaba trabajando duro, y puedo sentir lo mismo. Trabajo duro y trato de dar lo mejor de m, Luis ha demostrado que puede trabajar duro y divertirse. Tambin aprend que Luis siempre haca que las cosas funcionaran en sus malos momentos. Hago todo lo posible para sacar lo mejor de las situaciones difciles. Luis seguir haciendo msica para entretener a los fans y convertirse en uno de los mejores cantantes latinos.Requirements:- Complete a basic information section on your person- at least 2 challenges your subject faced- at least 2 things your subject has accomplished- what you learned about you influential person and how you can apply it to your life- use of saber/conocer- use of imperfect and preterit- use of two stem-changing verbs in the preterit- use of a minimum of two relative pronouns. If you have any suggestions on changes, spelling errors, grammar errors, please let me know! 11. If L || m, find the value of x.L = 8x+20M= 11x-31 Select the correct answer. Which sentence would most likely be the topic of a classification essay?A) Explain why students enjoy music.B) Identify the four best types of video gamesC) Define what it means to be a good friend Please give me the most reliable answer !! Thank you :D (LC)The sound tech is in charge of running the sound board in a theatrical production. True False Which describes the greatest displacement?A. walking 3 m east, then 3 m north,then 3 m westB. walking 3 m east, then 3 m south,then 3 m eastC. walking 3 m north, then 3 m south,then 3 m northD. walking 3 m north, then 3 m west,then 3 m southTabial 1 What is the number of moles in .025g (NH4)2Cr2O7? Japan began to invade its East Asian neighbors during the 19th and 20th centuries in order to: A. prevent the spread of communism in the region. B. spread their religious and cultural beliefs to other states. C. secure the natural resources needed for industrialization. D. win support from other imperial powers in western Europe. Of the following government types, which two have the most in common? A.an aristocracy and a democracyB.a democracy and a republicC.a democracy and a monarchyD.a republic and a dictatorship