Answered step by step
Verified Expert Solution
Question
1 Approved Answer
its c language To check if COVID Social Distancing is applied or not in a classroom, a 2-D array of characters can be used to
its c language
To check if COVID Social Distancing is applied or not in a classroom, a 2-D array of characters can be used to represent seating in a classroom as in the following example table. The value_X in an element of the classroom array means that the seat is not occupied and any other value in an array element means that the seat is occupied. *For example consider the following seating table A X H X n X X q I X e K b x X J X E in the above table the element that violate the social distancing rule are H.n.q, I, e, K, E O Write a C function named covid sd that checks if COVID Social Distancing is applied or not in a classroom. Your function must accept exactly three parameters named: classroom, num rows, and Ist. The classroom parameter is a 2-D array of characters with 6 columns. This array represents the classroom seating. num rows is the number of rows in the 2D array, Ist is a 1-D array of characters. The size of Ist_is 6* num rows. store the values of each seat that violates the COVID Social Distancing rule in the Ist array return 0 if any seat violates the COVID Social Distancing rule and 1 otherwise o O
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