Question
Please, I have 20% maybe written and need help writing this code. Its in Python. Program specification You will the user to enter a integer
Please, I have 20% maybe written and need help writing this code. Its in Python.
Program specification
You will the user to enter a integer value.
Calculation for the program
- You will determine the input is EVEN or ODD.
- You will determine if the input value is or not a multiple of 3
- You will determine if the input value is a number in the teens
- Based on the input value, you will output, RED, WHITE or BLUE
Sample on how it should work:
- The integer inputted was: 66
Output:
66 is an even number
66 is multiple of 3
66 is not a number in the teens
The color based on 66 is BLUE
Sample on how it should work:
- The integer inputted was: 17
Output:
17 is an Odd number
17 is not multiple of 3
17is a number in the teens
The color based on 17 is RED
- Sample on how it should work:
The integer inputted was: 152
Output:
125 is an even number
152 is multiple of 3
152 is not a number in the teens
The color based on 152 is WHITE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started