Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 599 Bytes

README.md

File metadata and controls

24 lines (12 loc) · 599 Bytes

Else if loop Challenge: Enemies Defeated

Calculate the total points the payer has obtained

Enemies are from 0-100

string playerName = "Gulram Stonebeard";

int defeatedEnemies = 1 (or whatever you change it to);

int points = 0;

int bonusPoints = 0;

int totalPoints = 0;

If player defeats 100 enemies, they will get the max amount of points, plus bonus points (20%) and the console must turn green to congratulate the player

75-99 defeated enemies outputs yellow, smaller bonus (5%)

50-74 defeated enemies outputs dark yellow, no bonus

Less than 50 enemies defeated, output red, you lose