import java.util.Scanner;
public class PlanetHero {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
System.out.println("Welcome to Planet Hero!");
String choice;
int points = 0;
//Code the below statements inside a do-while loop:
System.out.println("Choose a category to make an impact:");
System.out.println("1. Big Impact Actions");
System.out.println("2. Medium Impact Actions");
System.out.println("3. Small Impact Actions");
System.out.println("Q. Quit and Get Total Points");
System.out.print("Enter your choice");
//Note that no use of switch/ array/ for is allowed. (if -else statements instead)
//Specifications
//1.Write a program,using four (4do-while loops,that offers a menu of options to the user.
//oOne outer loop and three inner loops-i.e.you will use nested loops
//2. The first menu will prompt the user to select Big,Medium or Small impact actions
//3. Depending on their choice,they will be presented with a sub menu of different actions that can be taken,along with the point value of each action
//4.For Big Impact Actions:
//1.Pledge to stop flying100 pts
//2. Join a climate action group100 pts
//3. Adopt a 100% plant-based diet100 pts
//4. Replace your furnace with a heat pump(80 pts
//5.For Medium Impact Actions:
//1.Attend a climate rally35pts
//2. Replace your lawn with a pollinator garden40 pts)
//3. Check if your bank invests in dirty energy companies (40 pts)
//4. Buy only used clothes 50 pts
//6.For Small Impact Actions:
//1. Wash your clothes on the cold cycle and air dry them 30 pts
//2. Bring a reusable mug to the coffee shop10 pts
//3. Compost your food waste 20 pts
//4. Turn off the shower when soaping up 5 pts
//7. The program should add up the point total for all actions taken
//8. Any action that is a repeat of the prior action should not be included in the point total
//9. Instead, the user should receive the below error message:
//You already made that pledge! Please select a new option or return to the main menu.
//At the end of the program,print the point total and one of the following summaries of the user's impact
//1.For point totals greater than or equal to 150,print
//**You're a planetary superstar!***
//2. For point totals greater than or equal to 100.print:
//***You're a planetary hero!***
//3.For point totals greater than or equal to 50 print
//*You're a planetary defender!***
//4. For point totals greater than 0,print:
//***You're a friend to the planet!***
//5. For 0 points,print:
//Thanks for considering planet.
}