C PROGRAM / C LANGUAGE Make a C program array. Situation: Conduct a survey for investigatory project to ask how satisfied the students are with the current state of our school. Use a rating system of 1 to 10. There are a lot of people who answered the survey and you could not accurately tally the number of people who answered 1, or 10, or any other number in between. INPUT 1. Value of n Description The size of an array Constraints The value is guaranteed to be greater than or equal to 1 Sample 5 2. The element of the array Constraints All of the elements are 2 1 and s 10 Sample 2 3 2 7 3. Value of y Description The value of the element we are counting Constraints The value is 2 1 and s 10 Sample 2 EXPECTED OUTPUT A EXPECTED OUTPUT A Enter n: 5 Enter elements: Enter n: 4 Enter elements: 3 2 9 8 Enter y: 2 FREQUENCY: 2 Enter y: 9 FREQUENCY: 3

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

C PROGRAM / C LANGUAGE
Make a C program array. 

Situation:
Conduct a survey for investigatory project to ask how satisfied the students are with the current state of our school. Use a rating system of 1 to 10. There are a lot of people who answered the survey and you could not accurately tally the number of people who answered 1, or 10, or any other number in between. 

C PROGRAM / C LANGUAGE
Make a C program array.
Situation:
Conduct a survey for investigatory project to ask how satisfied the students are with the current state of our
school. Use a rating system of 1 to 10. There are a lot of people who answered the survey and you could
not accurately tally the number of people who answered 1, or 10, or any other number in between.
INPUT
1. Value of n
Description
The size of an array
Constraints
The value is guaranteed to be greater than or equal to 1
Sample
5
2. The element of the array
Constraints
All of the elements are 2 1 and s 10
Sample
2
3
7
6.
3. Value of y
Description
The value of the element we are counting
Constraints
The value is 2 1 and s 10
Sample 2
EXPECTED OUTPUT A
EXPECTED OUTPUT A
Enter n: 5
Enter elements:
2
Enter n: 4
Enter elements:
3
2
7
9
8
9
Enter y: 9
FREQUENCY: 3
Enter y: 2
FREQUENCY: 2
Transcribed Image Text:C PROGRAM / C LANGUAGE Make a C program array. Situation: Conduct a survey for investigatory project to ask how satisfied the students are with the current state of our school. Use a rating system of 1 to 10. There are a lot of people who answered the survey and you could not accurately tally the number of people who answered 1, or 10, or any other number in between. INPUT 1. Value of n Description The size of an array Constraints The value is guaranteed to be greater than or equal to 1 Sample 5 2. The element of the array Constraints All of the elements are 2 1 and s 10 Sample 2 3 7 6. 3. Value of y Description The value of the element we are counting Constraints The value is 2 1 and s 10 Sample 2 EXPECTED OUTPUT A EXPECTED OUTPUT A Enter n: 5 Enter elements: 2 Enter n: 4 Enter elements: 3 2 7 9 8 9 Enter y: 9 FREQUENCY: 3 Enter y: 2 FREQUENCY: 2
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,