Question: Intro to C Programming Lab Zhantong Liang Fall 2017 3. Grade Zed is an employee of Always Cook Mushroom. His boss Kevin gives him a


Intro to C Programming Lab Zhantong Liang Fall 2017 3. Grade Zed is an employee of Always Cook Mushroom. His boss Kevin gives him a pack of mushrooms and asks him to grade each mushroom according to its weight. Suppose the weight of a mushroom is w, tben its grade s is: s = 10000-(100-w)2 What's more, Zed also has to report the mode of the grade of these mushrooms. The mode is the value that appears most often. Mode may not be unique. If there are different grades but all of them have the same frequency, there is no mode Input The first line of the input contains an integer T, denoting the number of test cases. Then T test cases follow The first line of each test cases contains one integers N (1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
