Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
In your code,
n
is always0
since you have modifed it. You should store a temporary variable forn
beforehand.I assume it means that somewhere in your code you divide by a variable that has 0 as value.
This comment is hidden because it contains spoiler information about the solution
How did you get the numbers 6.0 and 30.0 ?
@Coopsec - consider: volume of sphere (dough blob) == volume of cylinder (pizza of different thicknesses)
Thank you for trying to help!
I just still don't get what kind of formula I am supposed to use....
I'd start with reading the description :)
Am I missing something? How am I supposed to calculate the radius when I have no idea what numeric value is assigned to "crispy" or "thick"? I know that diameter / 2 = radius. But it wouldn't be a kyu 7 exercise, if I had to merely return diameter / 2 ...
This comment is hidden because it contains spoiler information about the solution
https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html
(A little late, I know...)
In case someone wonders how to fix the problem: Just add a class with any custom name.
public class Switch{
public static String switcheroo(String x){
return "code";
}
}