Answered step by step
Verified Expert Solution
Link Copied!

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
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

Explain the importance of prioritizing training and HRD needs

Answered: 1 week ago