Flow Chart 

unnamed.jpg

Pseudocode 

Create variables for users name and number of answers correct

Ask user for their name

Introduce program

 

Ask a question and provide 4 choices

Check if the user imputed an integer and if not repeat the question.

Check if the user imputed a number 1-4 and if not repeat the question.

Check if the answer is correct and if it is then go onto next question

Count score

Check if the answer is incorrect and if it is then go onto the next question.

Count score

 

Check score and display score

Display a message for the score.

 

Version 1 

I wrote out the first question to make sure that everything worked first. 

screen-shot-2017-01-20-at-3-33-10-pm

 

Version 2 

I wrote out all of the questions and I got them all to work. 

screen-shot-2017-01-20-at-4-03-42-pm

Version 3  

Here I added a place where the user can type their name and also I provided a intro for the program. 

screen-shot-2017-01-20-at-4-23-37-pm

Version 4 

This is the ending of the program 

 

screen-shot-2017-01-20-at-4-47-39-pm

 

 

 

Advertisements