Question: get input for base salary variableget input for mercenary nameSelect if mercenary name = Kalinga ( can used name constant or literal constant, comment in

get input for base salary variableget input for mercenary nameSelect if mercenary name = Kalinga (can used name constant or literal constant, comment in your code which constant type you are using) then shackle and imprison, game over else continue gameSelect the max loot % based on salary 0-500 max_percent =20501-1000 max_percent =251001-2000 max_percent =502001-3000 max_percent =75 over 3000 max_percent =100Set actual percentage variable - from range between 0- max_percent, using randomize to simulate mercenary negotiationcalculate negotiated salary = salary -%output your mercenary name and your contract values salary, negotiated salary and % loot.input number of months in battleinput Solidus loot valueinput side a value of triangulated territory border to conquerinput side b value of triangulated territory border to conquerinput side c value of triangulated territory border to conquerCalculate mercenary pay = negotiated salary x number of months + loot x percentageCalculate mercenary pay if was 100% salary and 0% lootCalculate mercenary pay if 0 salary and 100% lootCalculate difference between mercenary pay and 100% salaryCalculate difference between mercenary pay and 100% lootCalculate angle A of territory borderCalculate angle B of territory borderCalculate angle C of territory borderOutput formatted to 3 decimal places mercenary actual pay in Solidus, what it would have been if 100% salary, and the differenceOutput formatted to 3 decimal places mercenary actual pay in Solidus, what it would have been if 100% loot, and the differenceOutput formatted to 2 decimal places side a, side b, side c, and angle A, angle B, Angle COutput "UUKHAI! Commence battle at designated territory borders, where our loot awaits and our enemies shall be sticken"

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 Programming Questions!