0
Code coach
Please can someone explain the code coach to me for example "candies
4 Respostas
+ 2
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"?
+ 1
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
+ 1
Israel Afolabi to solve Candles, write a program that takes an integer input of the number of friends who want to order candles. Their orders are to be added to your order, so calculate total number of orders as 1 (yours) plus n (theirs). Then calculate how many candles that would be. Since each order is 9 candles, you would multiply the total orders by 9. Print out the number of candles that result.
If your program still does not pass after some debugging efforts, then copy the code into your Code Bits and post a link to it here so we can help further.
0
Yeah I mean candles