You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// It's based on this kata. It's suggested that you solve that kata first.
// Task
// When you look at movie ratings, you usually see it as decimal numbers representing average of all viewers' votes. While it is very informative, it's not very visually appealing. That's what stars, or in our case- moons, are created for.
// Your task is to transform decimal number rating, which is in range 0-10, into 5-moons scale. Your final rating should be rounded to "0.5". Input is always valid.
// Write function moonRating which returns valid rating represented as moons ('o','c','x') in single string. You are given the following values preloaded (remember, since I can't use unicode characters, moons in brackets are here just to improve your imagination):
// examples:
// More examples in test cases.
// Code Limit
// code.length < 65 characters.
// Advice: if your code length is much longer than the limit, giving up is also a good choice :D