Write a Python program that prompts the user to enter an integer and reports whether the input was even or odd


This is a practice activity that will prepare you for this module’s graded assignment. It is NOT graded but you must submit an attempt to this dropbox in order to have the solution file revealed to you. The task is to solve a problem with a Python program. After completing this activity and uploading your Python file, you will be able to view a video detailing an exemplary solutions provided by your instructor.


Two programs are required. In each program:

  • Start with a comment that includes your name and course number.
  • Include pseudocode that describes all steps required to solve the problem.
  • Employ variable names that describe the values they store and adhere to Python naming conventions.
  • Include additional comments as needed to annotate your code.
  • Use correct spelling and grammar.

1. Write a Python program that uses a for loop with the range function to display the integers from 5 to 50 in increments of 5. See page 170-173 to learn about the range function. The program should also print the square and cube of each integer. Your output should print the a table with 3 columns and each column should be 7 characters wide. See page 72-73 for how to format integers. See also example output.


2. Write a Python program that prompts the user to enter an integer and reports whether the input was even or odd. Assume that the user follows instructions and enters only integers. The program must use a while loop and it should continue to execute until the user enters zero. See pages 144-146 to learn about sentinels.

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages

Order your essay today and save 7% with the discount code COLLEGE7