Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The task is to create game on Greenfoot using sustainable development goal Affordable and Clean Energy as the theme. This is the work accomplished so


The task is to create game on Greenfoot using sustainable development goal Affordable and Clean Energy as the theme.

This is the work accomplished so far

Game where character does different actions related to clean energy (level 1: character shuts off the lights when leaving the room, level 2: picks an energy efficient car between a normal car and energy efficient car (the chosen car moves), level 3: character chooses to install solar panel on the roof )


Pseudocode for homepage:

Please fill this







Refinement 1:

Player enters name

Level 1 appears

Level 2 appears

Level 3 appears

Game over


Refinement 2:

Output "player's name"

Output "welcome" + the name







Pseudocode for level 1:

Please fill this



Pseudocode for level 2:

Please fill this



Pseudocode for level 3:

Please fill this



Pseudocode for player object:

Please fill this



Requirements

  • What will be the codes for above 3 level pseudocode, player object pseudocode and homepage pseudocode
  • The game is relevant to the sustainable development goal.
  • Step-wise refinement is used to write pseudocode for more complex features.
  • A feature of the game requires information to be saved to and retrieved from a text file.
  • The debugger is used to correct errors when appropriate.
  • Classes and individual methods are attributed to one member or the other-but not both-using the @author javadoc tag. Decide who contributed the most time and knowledge for each class or method.
  • Game should be non-violent.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Pseudocode for homepage Output Welcome to the Affordable and Clean Energy Game Output Please enter y... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Marketing And Export Management

Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr

8th Edition

1292016922, 978-1292016924

More Books

Students also viewed these Programming questions

Question

Who is present when I give in to my bad habit?

Answered: 1 week ago