Software

profilespike34
Topic1.docx

Prompt; you will write a short application that uses conditionals to create a “forked” branching structure for the recipe manager.

Specifically, you will create a branching structure that leads to the following output:

· If the number entered is between 1 and 100 (inclusive), the application will display a message that says, “Good job! The number you entered is___.”

· However, if the number entered is not between 1 and 100 (inclusive), an error message will be displayed to inform the user that the entry does not fit the expected range: “The number entered was not between 1 and 100!”

Guidelines for Submission: This assignment should be submitted as a Java file.

· Adapt your Ingredient Java file to include data-type validation steps for each of the variables in the class:

· ingredientName (String)

· ingredientAmount (float)

· unitMeasurement (String)

· Number of calories (double)