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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 43 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply