Sunday, April 18, 2010

Learning & Assessment Activity 1.2

Using the five step process, develop an algorithm for the following problem:

You want to estimate the number of hours it will take you to complete all of the levels in a new video game based on your past performance with other games.

Publish your findings and the resulting algorithm from the five-step process to your
assessment document.

Step One: Define the problem

Find out how long it will take you to finish all of the levels in a new video game

Step Two: Define the inputs

The number of levels
Past performance

Step Three: Define the outputs

The number of hours it will take to complete all of the levels

Step Four: Define processing

Get the number of levels
Get the past performance
Multiply the number of levels by the past performance

Step Five: Develop the algorithm

Calculate the hours

Prompt the user for the number of levels
Get the number of levels
Prompt the user for the past performance
Get the past performance
Number of levels x Past performance
Display the number of hours that it will take to finish  all of the levels

End

No comments:

Post a Comment