Thursday, May 14, 2020

CPR Tutor Demonstration

Here is a demonstration of what our code looks like on the terminal!

The program first displays a welcome message to the user and explains what they will be doing, which is taking a quiz about the steps to CPR. 


The program displays the steps for CPR next, and then explains to the user how to answer fill in the blank questions. 
The first question is displayed too. The user should answer "A" to be correct - it is true that checking if the person is breathing is a very important step in performing CPR. 

A few questions have gone by, and the user has answered. The user is going to answer incorrectly for this multiple choice question (just for fun): How many times should you compress and breathe into the person who is choking? 
A) 4 times. B) 9 times. C) As many needed until help arrives. D) Maybe 11 times.
They pick D, which is incorrect. 

The user continues to answer questions, until they are finished with the quiz, and the program displays this message below. By answering some of the questions incorrectly, the user received lower than a 100 percent. 

Not displayed to the terminal is the "UserAnswers.txt" file, which begins blank...

and then while the program is running, fills with questions and answers. This is to let the user reference to which questions they answered correctly and incorrectly. 

No comments:

Post a Comment