Question: Programming using Selection StructureWe start to control ( with control structures ) the execution flow of our programs FROM Sequence - executing every statement one
Programming using Selection StructureWe start to control with control structures the execution flow of our programs FROM Sequence executing every statement one after the other TO making a decision and choosing or selecting a block of code to execute andor excluding blocks of code from executing.Let's update our Game from last week: EmperialBattleBots.java and create EmperialBattleBotsSelection.javaAs Empires around the globe have consolidated lands and loot through battles and conquests, subjugating principalities and livestock, expanding armories, and hording jewels and treasure, the number of mercenary employers Empires has decreased. The competition for mercenary enlistment has resulted in Imperial conventionalities such that loot offered to Mercenaries follows as such:Salaries upto loot optionSalaries upto loot optionSalaries upto loot option Salaries upto loot optionSalaries over upto loot optionupto means the max a mercenary can negotiate with the Empire they battle for.Level Game changes:Level game, base Salary is no longer a NAMED CONSTANT, so be sure it is no longer in ALL CAPSLevel game, loot percentage has been somewhat taken over by the Empires points Submit ImperialBattleBotsSelection.javaThis weeks Updates to our Game ProgramSalary is input variable value and no longer a constant valueDerive Loot percentage available to negotiate based on the initial Salary RangeInput loot in range of maxpercent
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
