c assignment classes
Using the standard library, classes
Using the gladiator class from before, we are going to create two armies that will attack each other. This will be accomplished by using the <vector> library
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper NowWrite a program that performs the following:
- Create two vectors of Gladiators (see last section of Chapter 7), one for the Red team, and one for the Blue team
- Show the number of fighters alive on each team
- Present the user with the following menu
- Take Turn
- Randomly select between red team and blue team
- Use the first/next fighter on that team to attack a random enemy in the enemy team
- Any fighters that get get killed should be removed from the team (With a notification)!
- Describe what happened each attack, including which team the attacker is part of.
- Repeat this process until all fighters have had a chance to attack.
- Add Fighters
- Add one fighter to both teams
- It would be easier to give fighters a name randomly selected from a list (array) of potential names, than to ask the user for two names every time they want to add more fighters
- Show the stats of both fighters as/after they have been added
- Add one fighter to both teams
- Exit Program
- Take Turn
- Return to step 2
I will soon make a set of bug-free gladiator method definitions for you to use. We will be including it – and the class definition – as separate files in this project – we will go over how to compile it together in lab.
Menu input should accept either a single lowercase char or an integer, prompts should tell user what to enter.
Points:
1.5 – Documentation, readability, format
1.5 – Filename and Header
2 – Output testing
2 – Proper program flow (conditions, loops, functions, etc)
3 – Proper use of vectors
Header
//Author: (your name)
//CPSC 121 Lab 8
//<MM/DD/YY> (Current Date)
Note: the professor only wants one file for this lab’s submission
Needed Files Are Attached.
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code “Newclient” for a 15% Discount!
NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.
The post c assignment classes appeared first on Essay Writers.


