This site requires JavaScript, please enable it in your browser!
Greenfoot back
divinity
divinity wrote ...

2017/1/10

why calculator is not working

1
2
divinity divinity

2017/1/10

#
hi danpost First to begin, let me wish you happy new year and secondly let me tell that you I pass the first and second assignment that you guys have help me with. I got tow A's but an overall i got a D which was quite disappointed though but I pass the course so now I am going on to object 2 programming. and with that i have started practicing building some program. three of them, one is the simulation of the operation of a pizza restaurant, another banking system and a calculator. I have reach as far a building the gui panel for each of them but it is just the coding to get it to work but right now I am more concentrating on the calculator. the calculator is a thre tabs meaning it is a standard, scientific and binary I have code the standard and the scientific par tof the calculator but the binary part(at least not as yet) but somehow is is not working . can u tell me what is work but how do i upload it foor you to see
danpost danpost

2017/1/10

#
First open a new Greenfoot scenario project, call it 'Calculator help'. Create a subclass of World so greenfoot is happy that you have a World subclass. You could copy the following code into that class (replacing everything that is already there):
import greenfoot.*;

public class MyWorld extends World
{
    public MyWorld()
    {
        super(600, 400, 1);
        GreenfootImage text = new GreenfootImage("Calculator\n\nHelp", 80, null, null);
        getBackground().drawImage(text, 300-text.getWidth()/2, 100);
    }
}
Now, for each and every class in your calculator project create a new class and copy/paste their codes (use the menubar and select 'Edit>New Class...' to create a new class). Now, select the body of the class(es) (all but the MyWorld class) and comment the code out so any errors are eliminated. Then click the Compile button at the lower right of the greenfoot frame. If you followed my instructions okay so far, it should compile. Finally, click the 'Share...' button at the top right of the greenfoot frame and select the 'Publish' tab along the top. Check the 'Publish source code' checkbox, enter your greenfoot username and password along the bottom and click the 'Share' button. It will upload to this site where it will be accessible to myself and others.
divinity divinity

2017/1/12

#
hi danpos how do you open up a new scenarios project
danpost danpost

2017/1/12

#
divinity wrote...
how do you open up a new scenarios project
Start the greenfoot application and select 'Scenario>New...' from the menubar.
divinity divinity

2017/1/12

#
hi danpost unless my computer saying something different, i am not anything that say scenario new from the menubar.
divinity divinity

2017/1/12

#
Newest Just Updated Most Plays (this week) Most Votes (this week) Most Popular this is all am seeing on the menu bar,
Super_Hippo Super_Hippo

2017/1/12

#
In Greenfoot, not here on the website.
danpost danpost

2017/1/12

#
Super_Hippo wrote...
In Greenfoot, not here on the website.
Maybe you never downloaded the greenfoot application to your system (see 'Download' link near top of page).
divinity divinity

2017/1/12

#
this is the screenshot of the gui calculator. it is three tabs, one is a standard, one is a scientific and the last is a binary
danpost danpost

2017/1/12

#
You tabs have nothing to do with the errors you are getting. You need to show your ATM class code. You are getting 'cannot find symbol -- variable client' compile errors in that class.
divinity divinity

2017/1/13

#
HI Dan post This is not the atm program, this is the calculator that am currently working on actually
danpost danpost

2017/1/13

#
divinity wrote...
this is the screenshot of the gui calculator. it is three tabs, one is a standard, one is a scientific and the last is a binary
These images are not going to help much by themselves. Will need to see codes. Post them here if you have to (at least the pertinent classes).
divinity divinity

2017/1/16

#
hi danpost I have download the greenfoot application and your direction kinda difficult to follow since the edit new scenario is graded out. how do i get it to work
divinity divinity

2017/1/16

#
it working now
divinity divinity

2017/1/16

#
hi danpost i m trying to follow your direction on the greenfoot thing and it is giving me an error access denied.
There are more replies on the next page.
1
2