Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The programming language is C. 1. To reinforce the use of If-Else statements 2. To learn how to use while loops ntroduction: Who doesn't love

The programming language is C.
image text in transcribed
image text in transcribed
1. To reinforce the use of If-Else statements 2. To learn how to use while loops ntroduction: Who doesn't love dragons? Movies about dragons and dragon training were very popular this summer. Your friend has not stopped talking about how awesome dragons are and how cool it would be to train them. To amuse your friend, you have decided to create a series of programs about dragons. dr Dragons, like most birds, learn to fly from a combination of instinct and practice. If a bird falls out of a nest, instinct allows them to spread their wings and glide to the ground. Eventually, following becomes more controlled and trips back to the nest become actual flights. However, dragons have the advantage of intelligence on their side. They can determine how many seconds they have to open their wings for gliding instead of crashing. In this program, the user will enter an altitude for the dragon nest. Use the following formula to determine how many feet the dragon will fall per second. Then, print out the elevation of the dragon for each second it is in the air. The last line of output should be the first second that the dragon is back on the ground. Assume earth's gravity is 32 ft/sec. Input Specification 1. The only integer entered (the height of the dragon's nest) will be positive. Create a chart with the first line as follows: Time Altitude Each following line will have two pieces of information, separated by tabs: the number of seconds after the dragon has left the nest, and the altitude of the dragon at that time. Both values should be printed out as integers. Note: The dragon can't have a negative height. Once it lands on the ground, it stays there, at height 0. Output Samples Below are some sample outputs of running the program. Note that these samples are NOT a comprehensive on the specifications given above. In the sample run below, for clarity and ease of reading, the user input is glven in italics while the program output is in bold. (Note: When you actually run test. You should test your program with different data than is shown here based

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago