title-img


Grading Students

HackerLand University has the following grading policy: 1. Every student receives a grade in the inclusive range from 1 to 100. 2. Any grade less than 30 is a failing grade. Sam is a professor at the university and likes to round each student's grade according to these rules: 1.If the difference between the grade and the next multiple of 5 is less than 3 , round up to the next multiple of 5. 2.If the value of grade is less than 38 , no rounding occurs as the resul

View Solution →

Apple and Orange

Sam's house has an apple tree and an orange tree that yield an abundance of fruit. Using the information given below, determine the number of apples and oranges that land on Sam's house. In the diagram below: The red region denotes the house, where s is the start point, and t is the endpoint. The apple tree is to the left of the house, and the orange tree is to its right. Assume the trees are located on a single point, where the apple tree is at point a , and the orange tree is a

View Solution →

Number Line Jumps

You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location x1 and moves at a rate of v1 meters per jump. The second kangaroo starts at location x2 and moves at a rate of v2 meters per jump. You have to figure out a way to get both kangaroos at the same location at the same time as part of the show. If it is possible, return

View Solution →

Between Two Sets

There will be two arrays of integers. Determine all integers that satisfy the following two conditions: The elements of the first array are all factors of the integer being considered The integer being considered is a factor of all elements of the second array These numbers are referred to as being between the two arrays. Determine how many such numbers exist. Example a=[2,4] b=[24,36] There are two numbers between the arrays: 6 and 12. 6%2=0, 6%6=0, 24%6=0 and 36%6=0 for the f

View Solution →

Breaking the Records

Maria plays college basketball and wants to go pro. Each season she maintains a record of her play. She tabulates the number of times she breaks her season record for most points and least points in a game. Points scored in the first game establish her record for the season, and she begins counting from there. For example, assume her scores for the season are represented in the array scores=[12, 24, 10, 24]. Scores are in the same order as the games played. She would tabulate her results as f

View Solution →