Write a program that asks the user to enter how many toys are in the candidate list
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that asks the user to enter how many toys are in the candidate list this year (as an integer). Then ask the user to enter the names of the toys and store them in a list of strings. The next step to get from the user the total number of votes each toy received and store these values in a second list (as integers).
The program should calculate:
the total number of votes received,
the toy with the highest number of votes and what percentage of the total votes that is,
the toy with the lowest number of votes and what percentage of the total votes that is.
The program should then display the results,
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: