DART23 1125. MakeUpperCase Write a function which converts the input string to uppercase. Solution: String makeUpperCase(String str) => str.toUpperCase(); 2022. 11. 25. 1124. Beginner Series #2 Clock Clock shows h hours, m minutes and s seconds after midnight. Your task is to write a function which returns the time since midnight in milliseconds. Example: h = 0 m = 1 s = 1 result = 61000 Input constraints: 0 2022. 11. 24. 1123. L1: Set Alarm Write a function named setAlarm which receives two parameters. The first parameter, employed, is true whenever you are employed and the second parameter, vacation is true whenever you are on vacation. The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise. Examples: setAl.. 2022. 11. 24. 1122. Grasshopper - Messi goals function Messi goals function Messi is a soccer player with goals in three leagues: LaLiga Copa del Rey Champions Complete the function to return his total number of goals in all three leagues. Note: the input will always be valid. For example: 5, 10, 2 --> 17 Solution: int goals(int laLigaGoals, int copaDelReyGoals, int championsLeagueGoals) { return add_nums([laLigaGoals, copaDelReyGoals, championsLeag.. 2022. 11. 22. 1121. Grasshopper - Grade book Grade book Complete the function so that it finds the average of the three scores passed to it and returns the letter value associated with that grade. Numerical Score Letter Grade 90 2022. 11. 22. 1120. Determine offspring sex based on genes XX and XY chromosomes The male gametes or sperm cells in humans and other mammals are heterogametic and contain one of two types of sex chromosomes. They are either X or Y. The female gametes or eggs however, contain only the X sex chromosome and are homogametic. The sperm cell determines the sex of an individual in this case. If a sperm cell containing an X chromosome fertilizes an egg, the resulting zygote will be .. 2022. 11. 20. 이전 1 2 3 4 다음