Skip likes to use clichés. If Skip plans on living 60 years (ignore leap years) how many clichés does he need to have in order not to use the same three on any day of those 60 years?
Number of sets of cliches needed = Number of days in 60 years
= 60x365
= 21900
Let the number of cliches needed to make 21900 sets of cliches be n
Number of ways to make a set of r items from a set of n items, nCr = n!/(r! x (n-r)!)
Here. number of items in the set, r = 3
We know that the number of sets = 21900
So, nC3 = 21900
n!/(3! x (n-3)!) = 21900
n x (n - 1) x (n - 2) / 3! = 21900
n x (n-1) x (n - 2) = 131400
n (n2 - 3n + 2) = 131400
n3 - 3n2 + 2n - 131400 = 0
n = 51.85
So, number of cliches required = 52
Skip likes to use clichés. If Skip plans on living 60 years (ignore leap years) how...
FINDING THE LEAP YEARS (14 points) From Wikipedia, "A leap year (also known as an intercalary year or bissextile year) is a calendar year containing one additional day (or, in the case of lunisolar calendars, a month) added to keep the calendar year synchronized with the astronomical or seasonal year." In the Gregorian calendar, which is in use today, to determine leap year: A year is a leap year if it is divisible by 400 Or it is divisible by...
PLEASE WRITE CODE FOR C++ ! Time Validation, Leap Year and Money Growth PartA: Validate Day and Time Write a program that reads a values for hour and minute from the input test file timeData.txt . The data read for valid hour and valid minute entries. Assume you are working with a 24 hour time format. Your program should use functions called validateHour and validateMinutes. Below is a sample of the format to use for your output file timeValidation.txt : ...
Jason is 11 years old and has type one diabetes. He was diagnosed with diabetes when he was five years old. He's comfortable taking his blood sugar pretty during the day. He likes to participate in sport and is one of the soccer team, which practice three times a week after school. His mother always packs his lunch for school so he does not have to worry about eating the food in the cafeteria. Plan a day's meal for Jason...
Skip Stephens recently graduated from college with a degree I business administration. While attending college, Skip built up a large amount of debt, which currently includes student loans, outstanding credit card balances, bank loans, and so forth. Now that he has a good-paying job, Skip wants to clean up his debt position to improve his credit reputation so that he can qualify for a mortgage when he is ready to purchase a house in a few years. As a result...
C programming question...
Description Johnny is a three years old kids. He likes to eat sugar. Oneday, he sneak into the kitchen in order to grab some sugar to eat. Unfortunately, his papa catch him. His papa call him:" Johnny, Johnny! Johnny reply: "Yes, papa." papa then ask: " Eating sugar?" Johnny lied: " No, papa." At that moment, Johnny begain to think that what's defintion of string equivalent? In this three years old kids' recognition, string a and string...
Clinical Case: Jason is 11 years old and has Type 1 Diabetes. He was diagnosed with Diabetes when he was 5 years old. He is comfortable taking his "blood sugar" readings during the day. He likes to participate in sports and is on the soccer team, which practices three times a week after school. His mother always packs his lunch for school so he does not have to worry about eating the food in the cafeteria. For this written assignment...
Read the following Clinical Case: Jason is 11 years old and has Type 1 Diabetes. He was diagnosed with Diabetes when he was 5 years old. He is comfortable taking his "blood sugar" readings during the day. He likes to participate in sports and is on the soccer team, which practices three times a week after school. His mother always packs his lunch for school so he does not have to worry about eating the food in the cafeteria. For...
4. Tania is a fashion designer her late 30s that plans to retire within 20 years. She enjoys a very "in" lifestyle and likes to hang out with the "in-crowd" in the "in" nightspots whenever she has time off her busy schedule. Her tastes are very contemporary and she always likes to live in the most popular neighborhood in her city, KL.. In the last four years, she has moved five times. In her personal and professional life, Ally is...
20. Assume that your father is now so years old, that he plans to retire in 10 years, and that he expects to live for 25 years after he retires (that is, until he is 85). If he retired today, he could live comfortably on $50,000 per year. However, because of inflation, his target retirement income must increase by 5% per year until his retirement date (.e. inflation is 5% annually). In other words, he must receive more than $50,000...
Derek decides that he needs $111,203.00 per year in retirement to cover his living expenses. Therefore, he wants to withdraw $111203.0 on each birthday from his 66th to his 85.00th. How much will he need in his retirement account on his 65th birthday? Assume a interest rate of 10.00%. Derek plans to retire on his 65th birthday. However, he plans to work part-time until he turns 73.00. During these years of part-time work, he will neither make deposits to nor...