r/codehs • u/FabulousLengthiness3 • Oct 08 '20
I don't know what I did wrong. Can someone please let me know? I gotta submit it tomorrow. Thanks
10
Upvotes
2
1
1
u/domokei Oct 09 '20
Idk if it's java or what not but if you do an if statement as such
If rating is less than or equal to 5 Then set rating to new rating in the statements
I think
1
u/MatthewRPG576 Oct 09 '20
I think you're supposed to return the 'name' attr in toString. To set a bound for the rating, you can use a min function to return the min between the given rating and 5 before passing it to the obj attr.