Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A lazy museum keeper actually counts the visitors in the first two days of the month in his notebook, where he keeps the number of
A lazy museum keeper actually counts the visitors in the first two days of the month in his notebook, where he keeps the number of visitors per day. In the remaining days, it gives the number of visitors per day, without counting the visitors. While making up the numbers, the values are randomly made according to the values of the previous 2 days in order to be realistic and not to attract attention. When making up numbers, he sometimes adds a number between 1-8 to the smaller one, and sometimes subtracts 1-8 from the larger one. Write the function named fill, which fills the number of visitors in a month according to the number matching algorithm of the watchman, according to the first two days, which will facilitate the work of the watchman, in accordance with the following main function and the sample output. (In the function, a pointer must meet the array and a global variable should not be used. Access to array elements should be done according to the offset notation.) With C programming and be quick please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started