Hello greenfoot master, i am also struggling with the same project.
We have to preform this ;
1. Buy a ticket (one person)
1.Allow the phone to accept a code that the driver types in.
2.IF the ticket is a single, deduct 3 credits from the balance
3. If the tickets is a return, deduct 5 credits from the balance
4.IF there are not enough credits on the phone, allow the student to 'top-up'
5. Generate a ticket for the journey on the screen
please help..
Dylan
You have to create a mobile app, that can be used to represent a bus ticket through the bus driver writing a code into the phone that can top up the balance and take away credits to pay for tickets.
Can anyone fix this code so it shows the button 'PAY FOR TICKET'
Ticket t = new Ticket();
addObject(t,150,250);
GreenfootImage textImage1 = new GreenfootImage("PAY FOR TICKET HERE",25, Color.BLACK, Color.WHITE);
Hey Guys
My name is xxPythonslayeRxx
I have been coding for many year as you can see in my profile picture.
Could you come up with more code that you have tried?
Many Thanks
xxPyhthonslayeRxx
"Im here to help"
Dear xxPyhthonslayeRxx,
I been baking long time as you see in pic.
I would like for you to message selfie of you coding.
of course in private message
Many thanks,
TheBakerBastard
I don't feel that is necessary but I can help you with code. So far for this app I have created a pop up that ask the river for code and stores it in a file if you would like that.
"Im here to help"