Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Description Use what we have learned about data types, variables, operators, and conditional statements to evaluate random numbers and output different messages based on

Problem Description Use what we have learned about data types, variables, operators, and conditional statements to evaluate random numbers and output different messages based on those evaluations. Required Reading Chapter 2, 3, 4, and 5, and materials from labs You are expected to use only the material we have covered in the course so far. Even if you know of another way to solve this programming problem, please stick to the approach we are using in this class. Learning Goals Learn to work with conditional statements relational and logical operators operators for arithmetic and text larger programs with more variables data types variables Prerequisites Random number generator from lab. Temperature simulation program from lab. Task Use conditional statements to create a program that provides wardrobe advice based on a randomly simulated weather report. Use a random number generator to simulate a temperature between 35 and 95, including 35 and 95 in the range. Use another random number generator to simulate the chance of precipitation between 0 and 100 percent. Create at least 5 categories for the chance of precipitation such as sunny, mostly sunny, cloudy, rainy, very rainy, etc. Use conditional statements to evaluate the temperature and chance of precipitation. Create three wardrobe categories as listed below. Each wardrobe category must have at least four wardrobe items of your choice that are selected for based on temperature or the chance of precipitation as specified below. Required categories are: Tops (ex. Shirts, tank-top, etc) select for based on temperature Bottoms (ex. Pants, shorts, etc.) select for based on temperature Outer wear (ex. Coat, rain jacket, etc.) select for based on chance of precipitation Print the following to the command line Forecast temperature as an integer Forecast chance of precipitation as an integer Combination temperature and precipitation forecast in text format without numbers Example: Looks sunny and cold today. A wardrobe suggestion based on forecast with an item from each of the categories listed above. In the output, remember to use plain language for non-technical users In your source code Use comments to make note of helpful information that may be useful to other programmers or your future self Sample Output for this Project

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago