Optional 1 Practice

If n = 11, appropriately initialize the value of 'sum' which represents the sum of the odds that are less than or equal to n.

"Apples cost 90 cents and bananas cost 95 cents.  If you buy one banana and one apple, you can pay 160 cents.  If you buy more than 6 pieces of fruit (in any combination of apples and bananas) each piece of fruit costs 60 cents.  If you buy more than 9 pieces of fruit (in any combination of apples and bananas), each piece of fruit costs 50 cents".


If you buy 4 apples and 5 bananas, how much would the total cost be in cents?  Appropriately initialize the value of 'cost' below.

Suppose you need to give 87 cents in change.  Initialize the values of 'quarters', 'dimes', 'nickels', and 'pennies' to represent how you would give this change using the most number of the largest coins first.

Suppose you have 110 inches.  Initialize the values of 'yards', 'feet', and 'inches'.

The radius of the inner circle is 7 inches and the radius of the outer circle is 10 inches. If we were to throw a dart randomly at the board (not aiming at a certain point), what is the probability the dart would land in the RED region and not the BLUE region? (We are assuming the dart will hit somewhere within the outer circle)


Appropriately initialize the value of 'prob' below.

Suppose you had 2 gallons of pure water and 5 gallons of salt water (that is 60% salt and 40% water).  If you combined these, what percentage of the mixture would be salt?

Appropriately initialize the value of 'percentSalt' below.  Value must be a number from 0 to 100 (as opposed to 0 to 1).

It is 3:40 pm.  What is the measure of the angle formed by the hour and minute hand (the smaller angle)?

Appropriately initialize the value of 'angle' below.