Question: What would the coding be for this problem? 5 points Status: Not Submitted In this article, the American Heart Association recommends that adult men get

 What would the coding be for this problem? 5 points Status:
Not Submitted In this article, the American Heart Association recommends that adult
What would the coding be for this problem?

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. 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 Source: https://www.heart.org/en/healthy living healthy eating/eat- smart/sugar/added-sugars 3.1.7: Sugar Tax Save Submit + Continue 1 import java.util.Scanner; 2 3 public class Added Sugar 4-{ 5 public static void main(String[] args) 6 { 7 // Create a Scanner object 8 9 // Ask the user for the grams of sugar 10 11 // Use a boolean expression to print if they can eat more sugar 12 } 13}

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!