Inspiration: I really enjoyed my grade 11 physics class because my teacher tried her best and actually did very well as a teacher, she was also my computer Science teacher, so for fun, I made this the Physics code and will later show it to her.

What it does: My code will ask the users name and will then ask 10 multiple choice questions, after completing the test, it will then give the result to the user, and after It will ask the user if it wants to redo the test if they were to do bad.

How we built it: I stored all the Questions in arrays and the answers in another, I then added a "for loop" so that as each question goes on the answers are aligned, I also made an else and else if statements for there result, like for example if they get 9 answers correct, there will be a certain feedback for that, 7-9 questions answers correctly would have a separate feedback ETC.

Challenges we ran into Creating a "for loop" was the greatest challenge I had to face, I'm still learning to code, and this loop was for the code to ask the users Questions and give feedback if the user gets is right or wrong.

Accomplishments that we're proud of: I was most proud of the use of arrays, I never really used them before but for this project I did, and I utilized them quite well. I also used a graphical user interface (GUI) to make it look a little fancier.

What we learned: since coding is still very new to me, I learned loops a lot when coding, since they were the hardest part of the code, I took the tike and went on the internet and learn how to use them

What's next for Physics Test

in the future, I will be thinking to add a feature, and that would be a confirmation, for example when the student enters his/her answer, they will be a question asking "are you sure" then the user can decide yes or no.

Built With

Share this project:

Updates