Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For level 1 game let's set the SALARY to a named constant value = 1 0 0 0 Write a Java program that calculates whether
For level game let's set the SALARY to a named constant value
Write a Java program that calculates whether you are a good Mercenary negotiator
points Submit your Java game ImperialBattleBots.java
pseudocode:
set value of BASESALARY to
set value of a percentage variable
output your mercenary name and your contract values base salary and loot.
input number of months in battle
input Solidus loot value
Calculate mercenary pay negotiated salary x number of months loot x percentage
Calculate mercenary pay if was salary and loot
Calculate mercenary pay if salary and loot
Calculate difference between mercenary pay and salary
Calculate difference between mercenary pay and loot
Output mercenary actual pay in Solidus, what it would have been if salary, the difference
Output mercenary actual pay in Solidus, what it would have been if loot, the difference
Player can use this information to make future decisions
Program end.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started