Question: This is a CS project for my C programming class, I know there is a lot of IF functions but that's about it. I really
This is a CS project for my C programming class, I know there is a lot of IF functions but that's about it. I really would like to see some example code or something, just a little confused about whow the if statements should look.
Here's the assignment:
Project Overview: Now that you are in college, you have to manage more things on your own. For example, you have to figure out what to wear every day. Since you also do your own laundry, you are constantly asking yourself Can I wear this or do I need to wash it? If you look at the diagram on the next page, weve developed a flowchart that allows a person to determine whether he/she should wear or wash the article of clothing under consideration. The flowchart asks a series of questions and expects specific answers to each question.
For example, the first question you will ask the user is What are you considering? and the user will always give you one of three possible answers shirt, pants, or other. For this project, you can assume that the user: Will always enter lower-case answers (or legal, non-negative numbers) to the questions Will always enter a single-word answer to the questions The complete set of possible inputs that you could see with this program is shown below shirt, pants, other, t-shirt, nice, sweatshirt, jeans, socks, fine, marginal, bad, none, small, lots
As an example of the execution of this program, consider the two instances shown below.
Program prompts are shown in blue and the users input is shown in red.
What are you considering? shirt
What kind? t-shirt
How does it smell? fine
Are there any stains on it? none
You can wear this
What are you considering? pants
What kind? jeans
How many times have you worn them? 7
How does it smell? bad
You need to wash this
We recommend writing functions for the basic questions that get asked on a regular basis.
These four functions are: What Kind? and Smell Test and Stains Test and Times Worn.
Each of these functions would ask the user a question, read the users input, and the return a value to the calling routine. The exact wording of the question is not important; you can phrase it as you want as long as the user knows what the expected answer should be.
What You Need To Do
Create a directory called project2 on your machine. In that directory, create a file named wash.c
In wash.c, write the code needed to solve the problem stated above.
Make sure that your program
o Has a header block of comments that includes your name and a brief overview of the program
o Follows the rules specified in the flowchart
o Use at least four functions (and has a brief comment describing the purpose of each function).
o Clearly prints either Wash it or Wear it at the end of the program
You may assume that the user will always enter valid input.

CS 100 Wash It or Wear It Guide Smell Test fine marginal bad Stains Test none small lots What are you considering? shirt pants other What Kind? What Kind? What Kind? t-shirt nice sweatshirt jeans other socks other Smell Test Stains Test Times Worn Times Worn Stains Test Times Worn Times Worn 5 or more One time One or more More than once Less than 3 3 or more small lots fine small lots Less than 5 marginal none bad none Stains Test Smell Test Smell Test Smell Test Stain Test Smell Test Zero bad fine Stains Test fine fine none marginal bad fine marginal marginal none small marginal bad lots lots none Stains Test sm small lots none lots small bad Wash It Wear It
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
