Question: XP Challenge No You're a dungeon master. Write a program to compute the XP awarded to players for monsters they've killed. Include this code exactly:
XP
Challenge
No
You're a dungeon master. Write a program to compute the XP awarded to players for monsters they've killed. Include this code exactly:
kaliscore computexp
vijayscore computexp
marybethscore computexp
The first param is the number of orcs killed. They're worth points each.
The second param is the number of goblins killed. They're worth points each.
The third param is the number of giant rats killed. They're worth points each.
If the number of goblins a player kills is at least two more than the number of orcs killed, add XP
Here's the output your program should produce.
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
