Making a Difference
-
7.35 (Polling) The Internet and the web enable people to network, join a cause, and so on. The presidential candidates use the Internet to get out their messages and raise money. In this exercise, you’ll write a polling program that allows users to rate five social-consciousness issues from 1 to 10 (most important). Pick five causes (e.g., political issues, global environmental issues). Use a one-dimensional
stringarraytopicsto store the causes. To summarize the survey responses, use a 5-row, 10-column two-dimensionalarrayresponses(of typeint), each row corresponding to an element in thetopicsarray. When the program runs, it should ask the user to rate each issue. Have your friends and family respond to the survey. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access