Question
Your task is to write an application to ask peoples preferences on a topic of your choice and compute statistics and display the results. Follow
Your task is to write an application to ask peoples preferences on a topic of your choice and compute statistics and display the results. Follow the direction in Exercise 7.40, but with your own topic, instead of surveying social-consciousness issues. An example topic is to survey the favorite winter Olympic games people want to watch among speed skating, snowboard, figure skating, bobsleigh, and ice hockey. Rate the item from 1 (least preferred) to 10 (most preferred). You must use at least one enhanced for statement. Please use a separate method to compute and display the results instead of implementing all the code in the main method. The method must have at least one parameter of an array that includes the user input.
Your code must compile and run from the windows command line using the following commands.
javac Polling.java
java Polling
You must add appropriate comments in you code as below and generate javadoc.
Add class level javadoc comment with @author tag and description about the class.
Add method level javadoc comments with @param and @return (if your method returns a
value) tags with the description of the method, parameters, and return value.
In the methods, please add end-of-line or block comments whenever necessary to help others
understand your code
DO NOT add comments such as // end of method, // end of class. Such comments were
added in the textbook just teach you the Java grammar. Your application does not need to explain the Java grammar. Instead, you have to explain what your application does.
Please make sure the java documents you generated contains your javadoc comments properly.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started