Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions