Question: language: java d. Consider the classes below: i. Create a Military Base with 5 guns, 5 tanks and 10 soldiers. ii. Calculate the total cost
d. Consider the classes below: i. Create a Military Base with 5 guns, 5 tanks and 10 soldiers. ii. Calculate the total cost required for setting up this military base. (Include one month salary for soldiers) MilitrayBase Data: Private Soldiers; Private Gun 08 Private Tank [t: Methods: Argument Constructor Weapon Data: Private double cost; Methods: Argument Constructor Display Person Data: Private String name; Private int age: Methods: Argument Constructor Display Gun Data: Private String type Private int nofBulls Methods: Argument Constructor Display Tank Data: Private String type Private String sun Type Methods: Argument Constructor Display Soldier Data: Private String rank private double Salary Methods: Argument Constructor Display Actie
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
