Question: 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

 4. Ask the user to enter an integer. Print "even" if

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!