Write a program that will ask the user for results of an election. There are 3 candidates that get votes. The program should ask, for each candidate: the name (without spaces) and the number of votes.Then the program should display the results in tabular format: name left justified, number of votes right justified, and percentage of votes right justified with 1 decimal,for each of the three candidates.At the end, display total votes.You can assume names are no longer than 8, and the number of votes in less than two thousand total.No input validation needed.Example (you should match the format) Give name: John Give votes: 200 Give name: Adam Give votes: 750 Give name: Susan Give votes: 50
John 200 20.0% Adam 750 75.0% Susan 50 5.0% Total votes 1000 Hints - Follow incremental development with the following suggested increments: 1. Write program to read three names and three votes and just display name and votes John 200 Adam 750 Susan 50
Unfortunately, your question requires a lot of work and cannot be done for free.Submit it with all requirements as an assignment to our control panel and we'll assist you.
Hi Expert, so I wasn't able to try the new version because they closed of the submission portal. Oh well,
but I want to give you my sincerest thank you for helping me throughout this assignment! Honestly, you are an absolute legend! Your line by line explanation was superb and honestly helped me understand most of the concept I learnt during my semester better than my own lecturer! Thank you for consistently helping and being persistent with the versions!
You've honestly been the greatest help and I would have been so lost if it wasn't without your expertise!
So thank you once again!