Write a C program to which inputs the response for each student and which computes / outputs the required percentages. Assume that 25 students were surveyed.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

This program deals with processing the results of a survey which was recently conducted. This survey was intended to determine the percentage of students who walk to
campus, the percentage who drive to campus and the percentage who live in residence on campus.
The results of the survey are recorded as follows:

W
D
D
L
.
.
.

This data is to be interpreted as follows: the first person surveyed said that he walks – hence W is
recorded, the second person said that he drives – hence D, the third person said that he drives –
hence D, and the fourth person said that he lives on campus – hence L.

Write a C program to which inputs the response for each student and which computes / outputs the
required percentages. Assume that 25 students were surveyed.

Your prompt should have the following format:

Do you walk, drive or live on campus. Use
W – if you walk
D – if you drive
L – if you live on campus
Use the following data for the execution of your program:

W D D L L W D D L L W W D D W L W L L D W L W L D

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY