

- #Greenfoot examples how to#
- #Greenfoot examples install#
- #Greenfoot examples mod#
- #Greenfoot examples full#
- #Greenfoot examples series#
If a negative number is encountered mid-way, the program should terminate, and print the sum so far. The negative one is not to form part of the sum.
#Greenfoot examples series#
Input a series of positive (>=0) numbers, ended by a negative one.Print the total of the following numbers. (eg the input might be: 4 33 52 67 83 - where the count is 4) Input a count, which specifies how many numbers will follow it.Look at the pseudocode example for playing monopoly look also at the link for one person's move, now using these rules: Write pseudocode to calculate the average age of people in a class.
#Greenfoot examples mod#
8 MOD 5 = 3.(ie 8 divided by 5 has 3 'leftover'). Hint in computing, the MODULO function will return the remainder after dividing one number by another. Write pseudocode to determine if an integer (number) number is odd or even. Write pseudocode to take two integers from a user and display the sum and the product (ie the number are multiplied together) of the numbers.
#Greenfoot examples full#
The automatic barrier will prevent display appropriate full messages if the spaces are taken.

Input the length of the side of a square, and print its area.Input the dimensions of a rectangle and print area and perimeter.Input the dimensions of a rectangle and print its area.Your pseudocode needs to be able to calculate the final price that a customer will pay, including GST.

For example, the price of hard drives (excluing GST) is discounted as follows The car park has 110 places.Īn online computer parts retailer has a discount scheme if customers buy multiple items of a part in the same order. Write an algorithm that will display this message. We will not need to remember everything we learn at this point as we will be visiting these concepts several times.Įssential Questions Produce pseudocode to solve the following problems:Ī car park has an entry barrier and displays a “Car Park Full” message when all the spaces have been taken. We are going to look at this in a little more detail now. Most of us probably think we already know what computer programming is.
#Greenfoot examples install#
Greenfoot is freely available for you to download and install on your own computer. The Greenfoot website is a rich source of more information on all things Greenfoot! Greenfoot will allow you to learn simple Java in a way that will interest and motivate you. Java is a very common programming language that is used worldwide to make computer programs and also in internet-based technologies. It can be tricky, and you will have to concentrate and learn from your mistakes, but Greenfoot will help you understand the concepts of computer programming.

Greenfoot uses the Java programming language as a base to enable simple games to be created.Ĭomputer programming is often thought of as difficult to learn. In particular, Greenfoot has been specially designed for young programmers aged 13 years and up. Greenfoot is an environment for computer programming. * Understand why Greenfoot is great for beginning programmers Objectives * Understand what Greenfoot is
#Greenfoot examples how to#
