Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. 2. To reinforce basic programming constructs To learn how to use for loops Movies about dragons and dragoi training were very popular this summer.

image text in transcribed

image text in transcribed

1. 2. To reinforce basic programming constructs To learn how to use for loops Movies about dragons and dragoi training were very popular this summer. Your frienid 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 senies of programs about dragons em: Flight Training (dra in Our dragoris have stopped falling and can now make regular short flights. The only way to get better and streigthen their wings for longer flights is for the dragons to practice regularly. This program will track practice flights over a series of days and print out the average distance for each day. To begin this program, you should first ask the user how many days the dragon has been practicing. Then, for each day ask how many practice flights were completed. Following that, ask for the distarice for each practice flight. Calculate the average distance for each day and print it so the dragon can see if they are getting stronger 1. The number of days will be a positive integer 2. The number of flights will be a positive integer 3. The distance for each flight will be a positive real nurmber Output the average distance for each day to three decimal places Day #Y: The average distance is X.XX. Output Sample Below are some sample outputs of running the program. Note that these samples are NOT a comprehensive test. You should test your program with different data than is shown here based on the specifications given above. In the sample run below, for clarity and ease of reading, the user input is given in italics while the program output is in bold. Note: When you actually run your program no bold or italics should appear at all. These are simply used in this description for clarity's sake.) How many days has your dragon been practicing

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

How are integral emotions related to behavior?

Answered: 1 week ago

Question

3. Is it a topic that your audience will find worthwhile?

Answered: 1 week ago

Question

2. Does the topic meet the criteria specified in the assignment?

Answered: 1 week ago