0

Code coach

Please can someone explain the code coach to me for example "candies

20th Sep 2024, 9:21 PM
Israel Afolabi
Israel Afolabi - avatar
3 odpowiedzi
+ 1
Israel Afolabi the way Code Coach works is that you write your program to accept input from the console. It should do the processing, then print the result. Make sure that your output is exactly what the task requires - no more, no less - and with capitalization, spelling, etc. that matches what the task says. When you press RUN, Code Coach will run your program several times, providing different inputs each time as if a user were at the console typing it in. It will compare your program's outputs with its expected outputs and report the results to you. Which task are you pointing out? I didn't find a "candies" task. Do you mean "Candles" or "Halloween Candy"?
20th Sep 2024, 11:36 PM
Brian
Brian - avatar
0
It means you find the percentage of candies in the house visited. Using code, I will shift 100 to the left and normalize the number of houses - 1 ((100<<1)+houses-1)/houses
20th Sep 2024, 10:59 PM
Sharpneli
Sharpneli - avatar
0
Yeah I mean candles
21st Sep 2024, 9:28 AM
Israel Afolabi
Israel Afolabi - avatar