Warning: Undefined variable $jcyhX in /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php on line 1

Warning: Undefined variable $ettTubkWQB in /home/supremepapers/public_html/qualityassignments.net/wp-includes/nav-menu.php on line 1

Warning: Undefined variable $UUWaafE in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php on line 1

Deprecated: Implicit conversion from float 1.7333333333333334 to int loses precision in /home/supremepapers/public_html/qualityassignments.net/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/css.php on line 52

Deprecated: Implicit conversion from float 1.7333333333333334 to int loses precision in /home/supremepapers/public_html/qualityassignments.net/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/css.php on line 52

Deprecated: Implicit conversion from float 2.5 to int loses precision in /home/supremepapers/public_html/qualityassignments.net/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/css.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/supremepapers/public_html/qualityassignments.net/wp-includes/block-template-utils.php:1) in /home/supremepapers/public_html/qualityassignments.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":151567,"date":"2022-03-24T04:28:24","date_gmt":"2022-03-24T04:28:24","guid":{"rendered":"https:\/\/qualityassignments.net\/?p=151567"},"modified":"2022-03-24T04:28:24","modified_gmt":"2022-03-24T04:28:24","slug":"c-assignment-only-main-function-is-left","status":"publish","type":"post","link":"https:\/\/qualityassignments.net\/2022\/03\/24\/c-assignment-only-main-function-is-left\/","title":{"rendered":"c assignment only main function is left"},"content":{"rendered":"<\/p>\n

cpp file and header file are already done(attached), the only thing left is what’s asked.<\/p>\n

<\/p>\n

Using the standard library, classes<\/p>\n

<\/p>\n

Using the gladiator class attached, we are going to create two armies that will attack each other. This will be accomplished by using the <vector> library<\/p>\n

Write a program that performs the following:<\/p>\n

    \n
  1. Create two vectors of Gladiators, one for the Red team, and one for the Blue team<\/li>\n
  2. Show the number of fighters alive on each team<\/li>\n
  3. Present the user with the following menu\n
      \n
    1. Take Turn\n
        \n
      1. Randomly select between red team and blue team<\/li>\n
      2. Use the first\/next fighter on that team to attack a random enemy in the enemy team\n
          \n
        1. Any fighters that get get killed should be removed from the team (With a notification)!<\/li>\n
        2. Describe what happened each attack, including which team the attacker is part of.<\/li>\n<\/ol>\n<\/li>\n
        3. Repeat this process until all fighters have had a chance to attack.<\/li>\n<\/ol>\n<\/li>\n
        4. Add Fighters\n
            \n
          1. Add one fighter to both teams\n
              \n
            1. 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<\/li>\n
            2. Show the stats of both fighters as\/after they have been added<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n
            3. Exit Program<\/li>\n<\/ol>\n<\/li>\n
            4. Return to step 2<\/li>\n<\/ol>\n

              attached is a set of bug-free gladiator method definitions for you to use.<\/p>\n

              We will be including it – and the class definition – as separate files in this project.<\/p>\n

              Menu input should accept either a single lowercase char or an integer, prompts should tell user what to enter.<\/p>\n

              <\/p>\n

              <\/p>\n

              Points:<\/p>\n

              1.5 – Documentation, readability, format<\/p>\n

              1.5 – Filename and Header<\/p>\n

              2 – Output testing<\/p>\n

              2 – Proper program flow (conditions, loops, functions, etc)<\/p>\n

              3 – Proper use of vectors<\/p>\n

              <\/p>\n

              Header<\/p>\n

              \/\/Author: (your name)<\/p>\n

              \/\/CPSC 121 Lab 8<\/p>\n

              \/\/<MM\/DD\/YY> (Current Date)<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"

              cpp file and header file are already done(attached), the only thing left is what’s asked. Using the standard library, classes Using the gladiator class attached, we are going to create two armies that will attack each other. This will be accomplished by using the <vector> library Write a program that performs the following: Create two […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_joinchat":[]},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/posts\/151567"}],"collection":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/comments?post=151567"}],"version-history":[{"count":0,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/posts\/151567\/revisions"}],"wp:attachment":[{"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/media?parent=151567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/categories?post=151567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qualityassignments.net\/wp-json\/wp\/v2\/tags?post=151567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}