A university recently conducted a survey with regards to demographics and programmes in which students are enrolled. To this end, they asked 15 students the following questions:  In what programme are you enrolled? Responses are C for Civil Engineering, I for ICT, M for Mechanical Eng., P for Process & Utilities. Note that the response could be in any case.  What is your age? Write a C program to input this data for the 15 students and to output (a) the percentage of students who enrolled in ICT, and (b) the percentage of students who are enrolled in Civil Eng. and who are under the age of 30. Use the switch statement in your program.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 5VE
icon
Related questions
icon
Concept explainers
Question

A university recently conducted a survey with regards to demographics and programmes in which students are enrolled.

To this end, they asked 15 students the following questions:

 In what programme are you enrolled? Responses are C for Civil Engineering, I for ICT, M for Mechanical Eng., P for Process & Utilities. Note that the response could be in any case.

 What is your age?

Write a C program to input this data for the 15 students and to output (a) the percentage of students who enrolled in ICT, and (b) the percentage of students who are enrolled in Civil Eng. and who are under the age of 30. Use the switch statement in your program.

 

Use the following data when executing your program:
Data Input
Data Input continued
M
I
19
25
I
C
21
29
M
18
18
I
I
24
24
C
M
35
23
C
C
26
21
I
I
35
34
M
21
Transcribed Image Text:Use the following data when executing your program: Data Input Data Input continued M I 19 25 I C 21 29 M 18 18 I I 24 24 C M 35 23 C C 26 21 I I 35 34 M 21
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning