Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Ask the user to enter an integer. Print even if the input is even; print odd if it's odd. 5. Ask the user to

image text in transcribed
4. Ask the user to enter an integer. Print "even" if the input is even; print "odd" if it's odd. 5. Ask the user to enter three integers. Print all the even values on one line, then print all the odd values on a second line. For example, if the integers are 4, 5, and 7, the output would be: Even: 4 Odd: 57 6. Create a variable initialized to "secret". Ask the user for a password. If the input matches the variable, print "Welcome"; if not, print "Access Denied" 7. Ask the user to describe the weather. If the input is "hurricane", print "Stay Inside!". If the response is "rain", print "Take an umbrellal". If the input is "sunny", print "Enjoy". If the response is anything else, print "Sorry. I don't understand that." 8. The Nola Caf costs $10 for seniors at least 65, $13 for ages 13-64, and $8 for children under 13. Ask for the user's age and print the price. 9. Ask the user for a temperature and whether it's raining. Advise according to the following: Raining / temperature Less than 50 50 or greater "yes" Raincoat Umbrella "no" Heavy coat Light Jacket

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

Did you open with an issue explanation?

Answered: 1 week ago

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago

Question

3. Who would the members be?

Answered: 1 week ago