You are required to design, implement and test a small console-based quiz in Python which performs the description given below. The quiz should ask the user(s) 10 questions. The quiz topic can be on any subject of your choice. You are required to produce a program which reads in, from the console (command line), ten quiz questions and ten correct answers, one correct answer for each question. Once you have added these questions to your program, you then need to extend the console (command line) interface so that it: 1. Asks the user their name 2. Runs through all questions of the quiz and keep a running score of the number of correctly questions answered; 3. Once the users has answered all the questions, the system should print out their score out of 10 as well as a percentage score on the screen; 4. The program should then prompt to ask if anybody else wants to take the quiz. It should then perform steps 1-4 again for the next user; 5. Once all the users have finished the quiz, the program displays: 1. The name of the user with the highest score (as well as other users’ score). 2. The average score of all users. 6. You should make use of conditional statements, iterative statements, functions, data structures etc. in your program. 7. Your program should suitably handle user errors (e.g., incorrect input type, such as empty answer or name etc.). The above describes the basic features that you are expected to attempt for this assessment. Extra marks are available if you can extend your program so that it implements the following additional features: 1. You can produce a quiz which can ask any number of questions (i.e. user can specify the number of questions they wan to answer, e.g., 15 questions). 2. The system displays questions in random order each time the quiz is taken. 3. The user is shown which questions they got correct and which they got incorrect (as well as showing the correct answer for any questions they answered incorrectly Your source code should include sufficient and correctly formatted comments. Reflective report : You are required to write a report (approximately 1000 words) detailing the following points: • A critical discussion of your chosen approaches for testing the strengths and weaknesses of your system. For example, how did you test the system functionality or the structure of your program? o Provide an appendix at the end of the report to include the following: Clear and easy to read/view screenshots of all the implemented features and functionalities of the system. For each screenshot you must provide the following: Short title to state the feature of the system the screenshot represent. A short paragraph to describe the content of the screenshot and reference to snippet of programming code in your system related to the content of the screenshot. The reference to the programming code could be by giving the full path to the source code file that contains the code for the screenshot or example of code that produced the feature/functionality. System demonstration: (This one you just need to write a small paragraph and answer these questions below) + record a short video of how you test Python code from your computer). Prepare up to 10 minutes of recorded presentation of all the features and functionalities of your implemented software. Your presentation should show at least the following aspects of your system: • Clear view of the user interface. • Clear view of the source code generating the user interface. • Clear view of the source code of different classes you have implemented. • Show all the system functionalities using different types of input and the way your system handles errors and potential problems. • Appropriately pitched and paced audio. Skills: Python, Report Writing, Video Upload
Uncategorized
You are required to design, implement and test a small console-based quiz in Pyt
- Posted
- AuthoradminX
- Length619 words
- Reading time3 min
Make your next academic task easier to manage
Tell us what you are working on and take the next step with Treatisely.