Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey I need help on this programming/coding project. I have no idea where to start. If you could post the code in the answer I

Hey I need help on this programming/coding project. I have no idea where to start. If you could post the code in the answer I would be greatly appreciative and would rate highly!!! image text in transcribed
image text in transcribed
Ca ualearn.blackboard.com https://ualearn.blac 3339695-dR-content-.. Project two has you write a program to answer that question. The flowchart on the next page guides the decision process. Your program will implement this flowchart. Specifically, it will prompt the user for a set of inputs (all strings). It then tells the user what to do. Two sampke executions of the program are shown below, with the p prompts in blue and the user responses in red What fell on the floor? meat What kind of meat? chicken Was it chicken nuggets? no Is the floor clean? yes on the floor more than 3 seconds? no Do NOT eat what was dropped What fell on the floor? bread Was the bread buttered? yes Did it land butter side up? no You can eat what was dropped You can assume the user will always enter legal input. Every input will be one of the lowercase words shown below, and each input will be one of the expected answers to the question that was asked. meat produce bread junk-food beef chicken other fresh leftovers candy donuts chips yes no The exact wording of the prompts (questions) is up to you. You can customize them as you want as long as you maintain the existing flowchart functionality Create a directory project2 on your machine. In that directory, create a file named eat.c .In eat.c, write the code needed to implement the "should I eat this" flowchart. Make sure that you Include a header block of comments with your name and a brief overview of the program. Prompt the user for input and make a recommendation based on that input. Print the expected recommendation in a clear, legible format, such as: o o o You can eat what dropped Do NOT eat what dropped You may assume that all input is lowercase and legal and answers the specific question that was asked. There are a number of possible paths through this flowchart. You can see where each of the paths should lead. Make sure that your program works for all possible paths through the flowchart. When you are ready to submit your project, bundle your project2 directory into a single (compressed) zip file. See the Basics document on Blackboard if you do not remember how to do this. Once you have a compressed zip file that contains your project2 code, submit that file to Blackboard. . * Project 2 is due at 5:00pm on Eriday,.February 2. Late projects are not accepted

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago