Question: write in c++ 2.20 LAB: Multiple choice statistics Write a program that ca'culates the percentage of students choosing each answer in a multiple choice question
2.20 LAB: Multiple choice statistics Write a program that ca'culates the percentage of students choosing each answer in a multiple choice question (A, B, C, or D) The program should input the number of students who selected each answer and then display the percentage of students who chose each answer. Store the number of students choosing each answer in an integer variable Ex.lf the input is: 71145 the output is: A:25.91B:40.71Ct14.81D:18.51 - Use int for the data type of the input values - The output should dieplay fractional amounts to one decimal place - Do Not use an array - Follow the Style Gri delines LanActivir
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
