Page 1 of 1

Hello, I have a Python Practical coming up this week and the following was supplied as an example to practice for it. Ca

Posted: Fri May 20, 2022 4:51 pm
by answerhappygod
Hello, I have a Python Practical coming up this week and the
following was supplied as an example to practice for it. Can you
please create the program and append useful comments to your lines
of code, explaining what they do. Thank you very much.
Hello I Have A Python Practical Coming Up This Week And The Following Was Supplied As An Example To Practice For It Ca 1
Hello I Have A Python Practical Coming Up This Week And The Following Was Supplied As An Example To Practice For It Ca 1 (82.63 KiB) Viewed 44 times
Create a Python program that to be used by the student council in this upcoming election to tabulate the votes after the election. Your program will list, and number, the three candidates for president then allow the user to enter all the ballets until they enter 0 and then tell them who won the election and what percentage each candidate earned, e.g. Election Candidates: 1. John Macdonald 2. Alexander Mackenzie 3. Tony Abbott Enter Vote (0 to exit): 1 Enter Vote (0 to exit): 1 Enter Vote (0 to exit): 1 Enter Vote (0 to exit): 2 Election Results: John Macdonald won John Macdonald earned 75% of the votes Alexander Mackenzie earned 25% of the votes Tony Abbott earned 0% of the votes Marking Scheme: Your name, student Id, and today's date at the top Good interface (clear layout, clear prompts) Variables well named Comments added Functionality (correct result output) Input validation Code efficiency (good code structure, no unnecessary code) Program allows user to repeat another ballet 1 1 1 1 7 3 3 3 20 Total