1. Engineering
  2. Computer Science
  3. starting in week 4 you will create the ipo chart...

Question: starting in week 4 you will create the ipo chart...

Question details

Starting in Week 4, you will create the IPO chart for the program, then you will continue to update the IPO chart each week. The project file .py will also be updated from week to week, so there will be no need to start from scratch each week.

Each week you will submit the following:

Current IPO chart

python code file

Completed Test Plan with three screenshots showing three successful tests

Programming Standards

Each increment of the program will adhere to the following standards:

Each source file will have a comment header describing the program, programmers names, date, purpose of the program, and increment.

Each source file will adhere to the coding standards provided in the lecture, or given by the Professor.

Each program will have an introductory output message introducing the program to the user and providing directions.

All program output will be well structured, easy to read, and appropriately formatted.

Test Plan

Your test plan should test for a variety of cases. In your test plan list the values you tested along with a screenshot for each. You should test both incorrect and correct inputs. Include 3 screenshots of test cases.

Problem Description

You will be creating a Guess the number program. In this game, you will give the user a choice with a menu. The user can choose to guess a number, type a number and see how fast the computer can guess it, and exit the game.

Initially, the program will just have the user guess the number and each week more functionality will be added to the program.

#Guess the number week 4

#Name:

#Date:
#Random number, loop while true
#ask user for number.
#if number is too high or too low, tell user, if they guessed it break out of loop

Display "Welcome to my Guess the number program!"

random mynumber

while True

Display "Guess a number between 1 and 10"

Get guess

if (guess<mynumber)

Display "Too low"

else if (guess>mynumber)

Display "Too high"

else if (guess==mynumber)

Display "You guessed it!"

When you run your program the result should be something like this:

Welcome to my Guess the number program!

Please guess a number between 1 and 10: 5

Too high

Please guess a number between 1 and 10: 4

Too high

Please guess a number between 1 and 10: 3

Too high

Please guess a number between 1 and 10: 2

You guessed it!

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution