Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

??.dll 47% 4:48 PM Program8 338736008 Assignment #8 Introduction to C Programming-COP 3223 To learn how to desigr and implement furictions for progran development 2.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

??.dll 47% 4:48 PM Program8 338736008 Assignment #8 Introduction to C Programming-COP 3223 To learn how to desigr and implement furictions for progran development 2. To reinforce how to use pass by val and pass by referece variabks 3 To larn how to use strurtures Movies about dragons and dragon training were very popular this summer. Your friend has not stopped talking about how awesome draons are and how cool it would be to train them. To amuse your friend, ynu have decided to creatra sers af pragramis about dragons Now that your dragon is fully trained, he or she can participate in the games at the yearly festivals! One popuar gaiilar to th human game of Red Ravr. Dragons begi in twa tearns. Two dragos one from each team-will compete head to head. The losing dragon must join the winner's team. The game ends whee an entire tearn isdefeatrd Since your dragon is the newest trained dragnri, they st prove thenselvs ty starting as a tean af one. They will face off against a team of 5 ?ther dragons. You will need t choose Your apponents carefully to naximize your dragnrn's charices of winring thr gamel Before each match, present the user with the following menu: Virw Home Team 2View Away Tearn Coritinur 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 oe tean ctains all sx dragos and the other tean has zern dragons Irft ta conpete. Ta make the testig of the program easier, your program will read i al of the dragon data from an input file. The name of this file should be specified by the user The input file will contain six ins of data. The first En of the file will contain the single dragon that begins on the home team. The other five lines of data contain the five dragons that begin on the away tearri 1 of 9

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

More Books

Students also viewed these Databases questions