Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The programming language is C. Please use comment headers to specify what each section of code does. Skeleton code: Output sample: Obiectives 1. To learn

The programming language is C. Please use comment headers to specify what each section of code does.
image text in transcribed
Skeleton code:
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Output sample:
image text in transcribed
image text in transcribed
image text in transcribed
Obiectives 1. To learn how to write functions given specifications 2. To learn how to the use pass by value and pass by reference variables 3. Review previous concepts like if-statements and loops. Movies about dragons and dragon training were very popular this summer. Your fiend 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 dragon-training simulator using your C programming skills. The basic idea behind the simulation is as follows: 1) You will simulate 10 days of dragon training 2) In the beginning the user gets a new dragon with some initial statistics for strength, intellect, and agility 3) At the beginning of each day the user receive a weather report. 4) Based on that, the user can determine which tasks their dragon should complete that day 5) Then, the day's activity is simulated After 10 days the simulation ends and the user is told whether or not they have completed training Training may be completed earlier than 10 days if the obstacle course is completed A skeleton of the solution for this assignment is posted on the webcourse. You must fill in the seven functions that are currently empty. After you write each function, you should test it before moving on. The main function should not be modified for the final submission (you may modify it during testing, as long as you return it to its initial form) Descriptions of each function are given in the skeleton along with the function Pre- and Post-conditions. The output samples at the end of this document show the wording you should use and how the program should run when completed. Points are allotted for following the precise wording shown Obiectives 1. To learn how to write functions given specifications 2. To learn how to the use pass by value and pass by reference variables 3. Review previous concepts like if-statements and loops. Movies about dragons and dragon training were very popular this summer. Your fiend 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 dragon-training simulator using your C programming skills. The basic idea behind the simulation is as follows: 1) You will simulate 10 days of dragon training 2) In the beginning the user gets a new dragon with some initial statistics for strength, intellect, and agility 3) At the beginning of each day the user receive a weather report. 4) Based on that, the user can determine which tasks their dragon should complete that day 5) Then, the day's activity is simulated After 10 days the simulation ends and the user is told whether or not they have completed training Training may be completed earlier than 10 days if the obstacle course is completed A skeleton of the solution for this assignment is posted on the webcourse. You must fill in the seven functions that are currently empty. After you write each function, you should test it before moving on. The main function should not be modified for the final submission (you may modify it during testing, as long as you return it to its initial form) Descriptions of each function are given in the skeleton along with the function Pre- and Post-conditions. The output samples at the end of this document show the wording you should use and how the program should run when completed. Points are allotted for following the precise wording shown

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_2

Step: 3

blur-text-image_3

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

What Is Job Analysis? P-697

Answered: 1 week ago