Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Plz help code this problem in java. What did I eat today? Tell me what I will be eating for breakfast, lunch and dinner. Create

Plz help code this problem in java.

image text in transcribed

What did I eat today? Tell me what I will be eating for breakfast, lunch and dinner. Create an algorithm to determine what I will eat for all the meals of a given day, based on my decision making criteria. If it is raining I eat oatmeal for breakfast. If it is below 32 degrees F, I have hot tea to drink with my meals rather than any other beverage. On days that are have "odd parity," I always have waffles no matter what! On no special day, I just eat a bowl of cheerios with cashew milk. If I have cereal, I don't have a beverage, otherwise I drink iced tea with my meals. On sunny days, I eat a sandwich in the park at mid-day, if it is raining I have a salad in my car, unless it is freezing outside, then I have soup for lunch in my office. During the first week (a week is 7 days) of the month, I always treat myself to sushi at a nearby restaurant. On days that have even Parity," dinner is pizza: Mondays Pineapple and ham, Wednesdays BBQ chicken, Fridays - veggie, All other days - just cheese, please. The remaining dinners, I just have a chocolate bar and a coke. O.K. ... do you want some hints? You are going to need to ask for more than just the calendar day of the week. Make a list of the data you will need as input before you begin. What did I eat today? Tell me what I will be eating for breakfast, lunch and dinner. Create an algorithm to determine what I will eat for all the meals of a given day, based on my decision making criteria. If it is raining I eat oatmeal for breakfast. If it is below 32 degrees F, I have hot tea to drink with my meals rather than any other beverage. On days that are have "odd parity," I always have waffles no matter what! On no special day, I just eat a bowl of cheerios with cashew milk. If I have cereal, I don't have a beverage, otherwise I drink iced tea with my meals. On sunny days, I eat a sandwich in the park at mid-day, if it is raining I have a salad in my car, unless it is freezing outside, then I have soup for lunch in my office. During the first week (a week is 7 days) of the month, I always treat myself to sushi at a nearby restaurant. On days that have even Parity," dinner is pizza: Mondays Pineapple and ham, Wednesdays BBQ chicken, Fridays - veggie, All other days - just cheese, please. The remaining dinners, I just have a chocolate bar and a coke. O.K. ... do you want some hints? You are going to need to ask for more than just the calendar day of the week. Make a list of the data you will need as input before you begin

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

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions