Question: Objectives 1. To learn how to design and implement functions for program development 2. To reinforce how to use pass by value and pass by

 Objectives 1. To learn how to design and implement functions for

program development 2. To reinforce how to use pass by value and

pass by reference variables 3. To learn how to use structures Introduction:

Who 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. Problem:

Objectives 1. To learn how to design and implement functions for program development 2. To reinforce how to use pass by value and pass by reference variables 3. To learn how to use structures Introduction: Who 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. Problem: Dragon Games (dragonredrover.c) Now that your dragon is fully trained, he or she can participate in the games at the yearly festivals! One popular game is similar to the human game of Red Rover. Dragons begin in two teams. Two dragons one from each team -will compete head to head. The losing dragon must join the winner's team. The game ends when an entire team is defeated. Since your dragon is the newest trained dragon, they must prove themselves by starting as a team of one. They will face off against a team of 5 other dragons. You will need to choose your opponents carefully to maximize your dragon's chances of winning the game! Before each match, present the user with the following menu: 1) View Home Team 2) View Away Team 3) Continue That way, you can view the stats of your dragons (the home team) and the stats of the "enemy" dragons (the away team). When you are ready to continue you can choose which dragons from each team that will compete. The matches should continue until one team contains all six dragons and the other team has zero dragons left to compete. To make the testing of the program easier, your program will read in all of the dragon data from an input file. The name of this file should be specified by the user. Objectives 1. To learn how to design and implement functions for program development 2. To reinforce how to use pass by value and pass by reference variables 3. To learn how to use structures Introduction: Who 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. Problem: Dragon Games (dragonredrover.c) Now that your dragon is fully trained, he or she can participate in the games at the yearly festivals! One popular game is similar to the human game of Red Rover. Dragons begin in two teams. Two dragons one from each team -will compete head to head. The losing dragon must join the winner's team. The game ends when an entire team is defeated. Since your dragon is the newest trained dragon, they must prove themselves by starting as a team of one. They will face off against a team of 5 other dragons. You will need to choose your opponents carefully to maximize your dragon's chances of winning the game! Before each match, present the user with the following menu: 1) View Home Team 2) View Away Team 3) Continue That way, you can view the stats of your dragons (the home team) and the stats of the "enemy" dragons (the away team). When you are ready to continue you can choose which dragons from each team that will compete. The matches should continue until one team contains all six dragons and the other team has zero dragons left to compete. To make the testing of the program easier, your program will read in all of the dragon data from an input file. The name of this file should be specified by the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!