public class PowerCalculator {
public static void main(String[] args) {
// Base power and level (you can change level or make it user input)
double basePower = 100;
int level = 10; // you can replace this with user input if desired
// Calculate final power using the formula: basePower * (1.2)^level
double finalPower = basePower * Math.pow(1.2, level);
// Print results
System.out.println("Level: " + level);
System.out.println("Base Power: " + basePower);
System.out.printf("Final Power: %.2f\n", finalPower);
}
}