Question: Create the following program in C. Suppose there are two types of professional wrestlers: Babyfaces(good guys) and Heels (bad guys). Between any pair of professional

 Create the following program in C. Suppose there are two types

Create the following program in C. Suppose there are two types of professional wrestlers: "Babyfaces(good guys") and "Heels" (bad guys"). Between any pair of professional wrestlers, there may or may not be a rivalry. Suppose we have n wrestlers and we have a list of r pairs of rivalries. (c) Implement: Babyfaces vs Heels In C language. Name your program wrestler. Input: Input is read in from a file specified in the command line at run time. The file contains the number of wrestlers, n, followed by their names, the number of rivalries r and rivalries listed in pairs. Note: The file only contains one list of rivalries Output: Results are outputted to the terminal. Yes, if possible followed by a list of the Babyface wrestlers and a list of the Heels No, if impossible Sample Input file: Ace Duke Jax Biggs Stone Ace Duke Ace Biggs Jax Duke Stone Biggs Stone Duke Biggs Jax Sample Output: Yes Babyfaces: Ace Jax Stone Heels: Biggs Duke Note: There can be alternative solutions. For consistency assign the first wrestler in the list to be a Babyface. Create the following program in C. Suppose there are two types of professional wrestlers: "Babyfaces(good guys") and "Heels" (bad guys"). Between any pair of professional wrestlers, there may or may not be a rivalry. Suppose we have n wrestlers and we have a list of r pairs of rivalries. (c) Implement: Babyfaces vs Heels In C language. Name your program wrestler. Input: Input is read in from a file specified in the command line at run time. The file contains the number of wrestlers, n, followed by their names, the number of rivalries r and rivalries listed in pairs. Note: The file only contains one list of rivalries Output: Results are outputted to the terminal. Yes, if possible followed by a list of the Babyface wrestlers and a list of the Heels No, if impossible Sample Input file: Ace Duke Jax Biggs Stone Ace Duke Ace Biggs Jax Duke Stone Biggs Stone Duke Biggs Jax Sample Output: Yes Babyfaces: Ace Jax Stone Heels: Biggs Duke Note: There can be alternative solutions. For consistency assign the first wrestler in the list to be a Babyface

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!