Question: C++ ASSIGNMENT Hey experts, I need a C++ code for this assignment I already posted the army ranks so it helps you. Thank you! Soldiers
C++ ASSIGNMENT
Hey experts, I need a C++ code for this assignment
I already posted the army ranks so it helps you. Thank you!




Soldiers Operator Overloading This week you will develop a class for soldiers in the Army. The following webpage describes the military rank: https://www.federalpav.org/military/army/ranks 1. You will create a class Soldier that consists of the following: Name Rank Classification (Enlisted, Warrant, Officer) A parameterized constructor that receives the name and rank of a soldier. Throw an appropriate exception if an invalid rank is specified A pay) method that returns the soldier's monthly pay. Appropriate accessor methods for name and rank. A toString() method returning a string containing the soldier's name, classification, rank, and monthly pay a. b. c. d. e. f. g. 2. Create overloaded operators: a. bool operator that overloads theoperator to check if two soldiers are the same rank) bool operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
