Public class PlanetHero {
public static void main(String[] args) {
Specifications
1. Write a program, using four (4) do-while loops, that offers a menu of options to the user. o One 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 flying (100 pts) 2. Join a climate action group (100 pts) 3. Adopt a 100% plant-based diet (100 pts) 4. Replace your furnace with a heat pump (80 pts)
5. For Medium Impact Actions:
1. Attend a climate rally 35 pts 2. Replace your lawn with a pollinator garden (40 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 shop 10 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.