Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The data has been collected from Form 5 secondary school students as a respondent to find out their confidence level in getting high marks


The data has been collected from Form 5 secondary school students as a respondent to find out their confidence level in getting high marks for subject Additional Mathematics. The survey has been given to those students who are taking the subject for the current year. The respondent will give a score from 1 to 5 only, where score 1 represents the lowest confidence level of getting good mark for the subject, while score 5 represents the highest confidence level of getting good mark for the subject. You are requested to write a C++ program to do the following: a. Input all the respondent scores. b. The program only reads the valid score number, which is 1 to 5 only, other than that number, display the error message. C. The program will determine the total number of respondents for each score and overall number of respondents who are involved in the survey. d. The program needs to calculate and display the average score result. The input will continue until user chooses to stop entering the data. The sample output is shown below: Survey on the confidence level in getting high marks for subject Additional Mathematics SCORE TOTAL NUMBER OF RESPONDENTS 12345 20 40 120 50 10 Total overall respondent: Average score result: 240 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sampling Design And Analysis

Authors: Sharon L. Lohr

2nd Edition

495105279, 978-0495105275

More Books

Students also viewed these Programming questions