# Object Oriented Programming

• November 17th, 2012, 11:04 AM
calebite207
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.
• November 17th, 2012, 11:12 AM
curmudgeon
Re: Object Oriented Programming
• November 17th, 2012, 11:25 AM
calebite207
Re: Object Oriented Programming
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.
• November 17th, 2012, 11:27 AM
curmudgeon
Re: Object Oriented Programming
Quote:

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.