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

 language: java d. Consider the classes below: i. Create a Military
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 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

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!