2 Hailstone Sequences [12 marks] A hailstone sequence is a sequence of integers found by applying the following rule: Hailstone Iteration: For an integer n in a hailstone sequence, the next item in the sequence is 3n + 1 if n is odd, or n / 2 if n is even. For example, the...
A spacecraft is in empty space. It carries on board a gyroscope with a moment of inertia of Ig = 19.5 kg m2 about the axis of the gyroscope. The moment of inertia of the spacecraft around the same axis is 5.00 105 kg m2. Neither the spacecraft nor the gyroscope is originally rotating. The...
how do I calculate yarn count?
A man age 55 is a member of his employer s occupational pension scheme. He has been a member of the scheme since he joined the employer at age 35, and he expects to retire at age 65. However, at any time before age 65 he could: (a) die; (b) leave the employer and hence have to leave the...
Write a Temperature class that represents temperatures in degrees in Celsius, Fahrenheit and Kelvin. Use a floating-point number for the temperature and a character (type char) for the scale: 'C' for Celsius, 'F' for Fahrenheit and 'K' for Kelvin. The class should...
*Project 4 - Due March 15. MadLibs continues to be a game that amuses small children. It works like this - * a paragraph or two is written with some key words missing. In their place is * an indication of the type of word (proper name, adjective, adverb, verb, etc.) * that should be...