Answered step by step
Verified Expert Solution
Link Copied!

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 1 game let's set the SALARY to a named constant value =1000
Write a Java program that calculates whether you are a good Mercenary negotiator
[10 points] Submit your Java game ImperialBattleBots.java
pseudocode:
set value of BASE_SALARY to 1000
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 100% salary and 0% loot
Calculate mercenary pay if 0 salary and 100% loot
Calculate difference between mercenary pay and 100% salary
Calculate difference between mercenary pay and 100% loot
Output mercenary actual pay in Solidus, what it would have been if 100% salary, the difference
Output mercenary actual pay in Solidus, what it would have been if 100% loot, the difference
Player 1 can use this information to make future decisions
Program end.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

How does an organization know if it is pursuing optimal strategies?

Answered: 1 week ago