2023 The code performs one overall task compute the mean of all scores in the class and set the color | Assignment Collections
Computer Science 2023 code
2023 The code performs one overall task compute the mean of all scores in the class and set the color | Assignment Collections
The code performs one overall task: compute the mean of all scores in the class, and set the color each seat according to its value.
The operation is broken down into these steps:
Examine each text box in the classroom, and:
collect its current value
convert the value to an integer
assign the value to the corresponding element in the 2-D ‘scores’ array
add the value to a ‘total ‘score variable
Divide the ‘total’ of the scores by the number of seats to obtain the mean
Display mean score value on the screen in output text box
Visit each text box in the classroom, and
Determine the proper color for the seat based on its value and calculated mean:
If less than mean, color is red
If between mean and 90%, color is yellow
If greater than 90%, color is green
Set background color of seat textbox to the proper color
Note: The ‘Tag’ property of each seat’s textbox was set to string “Seat<r><c>” at design time (manually), to reflect the row/column position of the seat. This allows us to tell seats apart and relate them to row/column positions in the 2-D scores array. The FindBox() method implements this functionality.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.