Question

In: Computer Science

Under normal conditions, commercial aircraft generally rise at about 1,000 to 2,000 feet per minute (this...

Under normal conditions, commercial aircraft generally rise at about 1,000 to 2,000
feet per minute (this is called the rate of climb) after take-off, until they reach a
cruising altitude of 35,000 feet. Design the logic for a program that allows the user to
enter the rate of climb as input, and then for every minute after take-off until the
aircraft has reached cruising altitude, outputs the minute number, and the height of the
plane after that minute. After that the program must output the number of minutes that
have elapsed since take off, and the height at which the plane is cruising (this may not
be exactly 35,000 feet).

Solutions

Expert Solution

Apply following logic:

Ask the climb rate from user and store it in variable climb_rate
set variable as below
height=0
minute=0
Run a conditional Loop as below
while height < 35000:
height = height + climb_rate
minute = minute +1
print (minute, height)
end while
Print (minute and height) // this will print the required minute to climb 35000 feet.

Here is a short program in python.

# initialize variables
height = 0
minute = 0
climb_rate = int(input("enter rate of climb(in feet):"))
print("Minute Height\n")
while height < 35000:
height = height + climb_rate
minute = minute + 1
print("%d \t %d"%(minute, height))

print("Time needed to reach heght %d is %d minute"%(height,minute))

Also the image version and program outut is given




Related Solutions

The area of a square is increasing at a rate of 2 square feet per minute....
The area of a square is increasing at a rate of 2 square feet per minute. How fast is the perimeter changing in feet per minute when the area of the square is 64 square feet?
In a manufacturing process, the assembly line speed (feet per minute) was thought to affect the...
In a manufacturing process, the assembly line speed (feet per minute) was thought to affect the number of defective parts found during the inspection process. To test this theory, managers devised a situation in which the same batch of parts was inspected visually at a variety of line speeds. They collected the following data: Line Speed Number of Defective Parts Found 20 21 20 19 40 15 30 16 60 14 40 17 1) Use the data to develop an...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.60 units...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.60 units of material per pair of shoes. During July, Sole Purpose Shoe Company incurred actual direct materials costs of $61,321 for 6,890 units of direct materials in the production of 2,200 pairs of shoes. Complete the following table, showing the direct materials variance relationships for July for Sole Purpose Shoe Company. If required, round your answers to two decimal places. When entering variances, use a...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units of material per pair of shoes. During July, Sole Purpose Shoe Company incurred actual direct materials costs of $62,010 for 6,890 units of direct materials in the production of 2200 pairs of shoes. Complete the table below showing the direct materials variance relationships for July for Sole Purpose Shoe Company. If required, round your answers to two decimal places. When entering variances, use a...
Direct Materials Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take...
Direct Materials Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.60 units of material per pair of shoes. During July, Sole Purpose Shoe Company incurred actual direct materials costs of $63,101 for 7,090 units of direct materials in the production of 2,175 pairs of shoes. Complete the following table, showing the direct materials variance relationships for July for Sole Purpose Shoe Company. If required, round your answers to two decimal places. When entering variances,...
Direct Labor Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take...
Direct Labor Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units of material per pair of shoes. During July, Sole Purpose Shoe Company incurred actual direct materials costs of $60,632 for 6,890 units of direct materials in the production of 2,150 pairs of shoes. Complete the following table, showing the direct materials variance relationships for July for Sole Purpose Shoe Company. If required, round your answers to two decimal places. When entering variances,...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units of material per pair of shoes. During July, Sole Purpose Shoe Company incurred actual direct materials costs of $63,810 for 7,090 units of direct materials in the production of 2,175 pairs of shoes.Complete the following table, showing the direct labor variance relationships for August for Sole Purpose Shoe Company. If required, round your answers to two decimal places. When entering variances, use a negative...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units...
Under normal conditions, Sarah spends $8.40 per unit of materials, and it will take 3.6 units of material per pair of shoes. During July, Sole Purpose Shoe Company incurred actual direct materials costs of $63,810 for 7,090 units of direct materials in the production of 2,175 pairs of shoes. Complete the following table, showing the direct materials variance relationships for July for Sole Purpose Shoe Company. If required, round your answers to two decimal places. When entering variances, use a...
It is generally accepted that the mean heart rate (beats per minute; bpm) of an adult...
It is generally accepted that the mean heart rate (beats per minute; bpm) of an adult human is between 65 bpm and 75 bpm, with a single average value of 72 bpm. In this case study you will test the hypothesis that the average heart rate of adults is 72 bpm (μ = 72 bpm) for all adults and then separately by gender. The distribution of heart rates is approximately normal. 1.Complete the hypothesis test for all adults(Males and Females)...
Given that the typical belt conveyor speed can be up to 65 feet per minute and...
Given that the typical belt conveyor speed can be up to 65 feet per minute and the cost of this type of conveyor has been estimated to be $5000/m with a service life of 10 years (ignore the possible salvage at the end of the service life as it is considered to be compensated by the requirement of the demolition charge!) and the internal rate of return is 0.5% per month. The products which are going to be transferred will...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT