Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 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
grams of
protein per kilogram of body weight. The RDA is the ambunt of a nutrient you need
to meet your basic nutritional requirements.
lb
is equal to
kg
To convert lbs to kg you must multiple Ibs
E
ample:
lb
kg
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started