Do In C Program I work as a teacher in one of the more technologically advanced schools in the country. So we usually store our information in a server for easy access. However, after inputting the scores of my students in the server, there was an error that combined all of the student’s scores into one large number! I need to know how many got a certain score y based on the large number n by tomorrow or else I’ll lose my job! Help! Input 1. The large number Constraints The value is within the range: 0 <= n <= 2,147,483,647 2. The value of y Constraints The value is within the range: 0 <= y <= 9 Output The first line will contain a message prompt to input the large number. The second line will contain a message prompt to input the value of y. The last line contains the number of occurrences of y in the digits of the large number. Enter the large number: 45215214 Enter y: 4 Occurrences of y = 2
Do In C
I work as a teacher in one of the more technologically advanced schools in the country. So we usually store our information in a server for easy access. However, after inputting the scores of my students in the server, there was an error that combined all of the student’s scores into one large number! I need to know how many got a certain score y based on the large number n by tomorrow or else I’ll lose my job! Help!
Input
1. The large number
Constraints
The value is within the range: 0 <= n <= 2,147,483,647
2. The value of y
Constraints
The value is within the range: 0 <= y <= 9
Output
The first line will contain a message prompt to input the large number. The second line will contain a message prompt to input the value of y. The last line contains the number of occurrences of y in the digits of the large number.
![○ Test Case 1
Your Output
No Output
Expected Output
Enter the large number: 45215214
Enter y: 4
Occurrences of y = 2
○ Test Case 2
Your Output
No Output
Expected Output
Enter the large number: 21341
Enter y: 2
Occurrences of y = 1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F47d062c1-c957-4532-a26c-3b51af227978%2F87307340-a148-4ac7-80be-f4d15aa09120%2F2nc6rw_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)