Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with the following: Write a program SurveyProcessor that uses a for

ID: 3617174 • Letter: P

Question

Please help with the following: Write a program SurveyProcessor that uses a for loop to readin 10 numbers in the range 1-5. 1 represents Poor, 2 representsFair, 3 represents Good, 4 represents Very Good, and 5 representsExcellent. Create 5 variables (count1, count2, etc.) to hold thecount of each and use a switch statement to count the number input.Your switch statement should have a default case. After the forloop output the results for each count, clearly labeled. Use theDOS console for input and output. For example: Survey Responses    Poor :              1    Fair :               2       Good   :           3    VeryGood :    2    Excellent :      2 Use formatting to make your numbers line up. Please help with the following: Write a program SurveyProcessor that uses a for loop to readin 10 numbers in the range 1-5. 1 represents Poor, 2 representsFair, 3 represents Good, 4 represents Very Good, and 5 representsExcellent. Create 5 variables (count1, count2, etc.) to hold thecount of each and use a switch statement to count the number input.Your switch statement should have a default case. After the forloop output the results for each count, clearly labeled. Use theDOS console for input and output. For example: Survey Responses    Poor :              1    Fair :               2       Good   :           3    VeryGood :    2    Excellent :      2 Use formatting to make your numbers line up.

Explanation / Answer

please rate - thanks import java.util.*; public class untitled1 {public static void main(String [] args) {Scanner in=new Scanner(System.in); int num,i,c1=0,c2=0,c3=0,c4=0,c5=0; for(i=0;i