Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 points Status: Not Submitted In this article , the American Heart Association recommends that adult men get no more than 36 grams of added

image text in transcribed
5 points Status: Not Submitted In this article , the American Heart Association recommends that adult men get no more than 36 grams of added sugar and adult women get no more than 25 grams of added sugar per day! Y In this program, ask the user to enter the number of grams of added sugar they have eaten that day. Using 30 grams as the cut off point, use a boolean statement to state if the user can eat more sugar. Here is what your output should look like: How many grams of sugar have you eaten today? 28 You can eat more sugar: true

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Programming questions