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:

  1. 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:

  1. 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

  1. 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

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!