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...
What should be the spring constant k of a spring designed to bring a 1500kg car to rest from a speed of 80 m/s so that the occupants undergo a maximum acceleration of 5.0g ?
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...
You want to rent an unfurnished one-bedroom apartment for next semester. You take a random sample of 10 apartments advertised in the local newspaper and record the rental rates. Assume the rental rates are normally distributed. Here are the rents (in dollars per month). 515, 650, 655, 565, 575,...
Consider transferring an enormous file of L bytes from Host A to Host B. Assume an MSS of 536 bytes. A. What is the maximum value of L such that TCP sequence numbers are not exhausted? Recall that the TCP sequence number field has 4 bytes. B. For the L you obtain in (a), find how long it...
A NC drill press is to perform a series of through-hole drilling operations on a 1.75 in thick aluminum plate that is a component in a heat exchanger. Each hole is 3/4 in diameter. There are 100 holes in all, arranged in a 10 by 10 matrix pattern, and the distance between adjacent hole centers...