The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Object Oriented Programming

I have these problems to solve and they are over due! Hence, I sincerely need help to solve the problems; this will also serve as a learning opportunity for me.
The assignment is as follows:

1.Consider a walking robot that has two legs and two arms. The robot walks towards a screen that has three buttons (red, yellow, and green). On the path towards the screen, there is a chair that blocks the robot. The robot observes the chair and make a left turn of 80 degree, walk 20 cm and make right turn of 100 degree walk forward (to the screen). To reach the correct position, after 40 cm, additional adjustment of 100 degree to the right is needed. After 15 cm, robot makes left turn of 160 degree towards the screen and finally reaches it. The robot lifts left arm and uses color sensor to detect the color on the screen, put down the left arm and lift right arm to press button based on the detected color of the button. Prepare a state diagram of the above scenario using correct UML notations.

2. Consider a gas station.
a.List and define necessary states for the system.
b.Prepare a state diagram using correct UML notation.

Please kindly help time is not on my side for this assignment. I messed up in my trials.

Re: Object Oriented Programming

Hello Calebite and welcome to the forum. We'll be glad to help you out, but we of course won't do your assignment for you as that would be cheating. Please show us what you've done so far, show all errors that your code may be generating, and please ask any answerable questions, and again, we'll be more than glad to try to help you out.

Re: Object Oriented Programming

I have these problems to solve and they are over due! Hence, I sincerely need help to solve the problems; this will also serve as a learning opportunity for me.
The assignment is as follows:

1.Consider a walking robot that has two legs and two arms. The robot walks towards a screen that has three buttons (red, yellow, and green). On the path towards the screen, there is a chair that blocks the robot. The robot observes the chair and make a left turn of 80 degree, walk 20 cm and make right turn of 100 degree walk forward (to the screen). To reach the correct position, after 40 cm, additional adjustment of 100 degree to the right is needed. After 15 cm, robot makes left turn of 160 degree towards the screen and finally reaches it. The robot lifts left arm and uses color sensor to detect the color on the screen, put down the left arm and lift right arm to press button based on the detected color of the button. Prepare a state diagram of the above scenario using correct UML notations.

2. Consider a gas station.
a.List and define necessary states for the system.
b.Prepare a state diagram using correct UML notation.

Please kindly help time is not on my side for this assignment. I messed up in my trials.

--- Update ---

Thanks for your response. The instructor actually told us to seek or search Internet for solutions as this assignment is not the same as quiz or class test. My trials were manually submitted because of blackout which however was why she gave me to the end of the day to submit it.
Thanks.

Re: Object Oriented Programming

Originally Posted by calebite207

Thanks for your response. The instructor actually told us to seek or search Internet for solutions as this assignment is not the same as quiz or class test. My trials were manually submitted because of blackout which however was why she gave me to the end of the day to submit it.
Thanks.

Regardless, most here will gladly help once you show the fruits of your efforts. Again, please don't dump work here, homework or otherwise, lest you be placed on many folks' "do-not-help" list. Again, please show some effort, even a small amount.