Question: ( RDA ) for protein The Recommended Dietary Allowance ( RDA ) for protein is a modest 0 . 8 grams of protein per kilogram

(
RDA
)
for protein
The Recommended Dietary Allowance
(
RDA
)
for protein is a modest
0.8
grams of
protein per kilogram of body weight. The RDA is the ambunt of a nutrient you need
to meet your basic nutritional requirements.
1(
lb
)
is equal to
0.45359237(kg)
To convert lbs to kg you must multiple Ibs
*0.45359237
E
ample:
150lb 0.45359237
=
68.0388555kg
Problem:
Write a program that asks a user for their name and weight in Ibs. In the program
convert lbs to
kg
,
calculate their RDA for protein. Print out to the user their
converted weight, their name, and their RDA for protein. See below for the sample
output. Remember to add comments to your code with your name and date to get
credit for the program.
Important Note
/
hints:
Assume more than one person would be running this program.
Allow weight to be given as floating
-
point numbers.
No names or weight should be typed directly into the program code
(
only at
run time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!