Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started