본문 바로가기

Get10

0112. Tip Calculator Complete the function, which calculates how much you need to tip based on the total amount of the bill and the service. You need to consider the following ratings: Terrible: tip 0% Poor: tip 5% Good: tip 10% Great: tip 15% Excellent: tip 20% The rating is case insensitive (so "great" = "GREAT"). If an unrecognised rating is received, then you need to return: "Rating not recognised" in Javascript.. 2023. 1. 13.
1230. The Wide-Mouthed frog! The wide-mouth frog is particularly interested in the eating habits of other creatures. He just can't stop asking the creatures he encounters what they like to eat. But, then he meets the alligator who just LOVES to eat wide-mouthed frogs! When he meets the alligator, it then makes a tiny mouth. Your goal in this kata is to create complete the mouth_size method this method takes one argument ani.. 2022. 12. 30.
1226. Alphabet war Introduction There is a war and nobody knows - the alphabet war! There are two groups of hostile letters. The tension between left side letters and right side letters was too high and the war began. Task Write a function that accepts fight string consists of only small letters and return who wins the fight. When the left side wins return Left side wins!, when the right side wins return Right sid.. 2022. 12. 27.
1103. Welcome! Your start-up's BA has told marketing that your website has a large audience in Scandinavia and surrounding countries. Marketing thinks it would be great to welcome visitors to the site in their own language. Luckily you already use an API that detects the user's location, so this is an easy win. The Task Think of a way to store the languages as a database (eg an object). The languages are liste.. 2022. 11. 4.
1023. No Loops 2 - You only need one No Loops Allowed You will be given an array a and a value x. All you need to do is check whether the provided array contains the value, without using a loop. Array can contain numbers or strings. x can be either. Return true if the array contains the value, false if not. With strings you will need to account for case. Looking for more, loop-restrained fun? Check out the other kata in the series:.. 2022. 10. 23.
Give me a Diamond Jamie is a programmer, and James' girlfriend. She likes diamonds, and wants a diamond string from James. Since James doesn't know how to make this happen, he needs your help. Task You need to return a string that looks like a diamond shape when printed on the screen, using asterisk (*) characters. Trailing spaces should be removed, and every line must be terminated with a newline character (\n)... 2022. 8. 14.