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 maxpercent maxpercent maxpercent maxpercent over maxpercent Set actual percentage variable from range between maxpercent, 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 salary and lootCalculate mercenary pay if salary and lootCalculate difference between mercenary pay and salaryCalculate difference between mercenary pay and lootCalculate angle A of territory borderCalculate angle B of territory borderCalculate angle C of territory borderOutput formatted to decimal places mercenary actual pay in Solidus, what it would have been if salary, and the differenceOutput formatted to decimal places mercenary actual pay in Solidus, what it would have been if loot, and the differenceOutput formatted to 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
