Question: Goal: Write a logical expression comparing two variables in c + + Assignment: In a strategy game, two kingdoms are at war. Each kingdom has
Goal: Write a logical expression comparing two variables in c
Assignment: In a strategy game, two kingdoms are at war. Each kingdom has its army with a certain number of soldiers. The strength of an army is represented by an integer variable. To initiate a peace negotiation, the number of soldiers in each army must be equal, signifying a balance of power. The number of soldiers in the first kingdom's army is stored in a variable kingdomOneArmy, and the second kingdom's army strength is in kingdomTwoArmy. Write an expression that evaluates to true if the strength of both armies is equal. This condition signifies a balance of power and triggers the start of peace negotiations between the two kingdoms.
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
