{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

It 210 check point 2 week 8 - Put Car in Drive Release...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Declare Car Door as Real Declare Car as Real Declare Brake Pedal as Real Declare Drive as Real Open Car Door Sit in Car Close CarDoor Press BrakePedal Start Car Put car in Drive Release BrakePedal Accelerate Car End Program The objects involved in this task include the person that is going to drive the car and the car it’s self. The properties of the car include a door with a handle that is composed of metal plastic and glass. The whole car is composed of four tires made of rubber and rims made of metal. The rest of the car is composed of rubber, plastic, glass and metal. The metal is made of many different types which may include aluminum, copper, and steel. Class Car Operation Declare Car as Real Declare Car Entry as Real Declare Car Driver as Real Subprogram Enter Car Set Enter Car = Open Car Door Get into Car Close Car Door End Subprogram Subprogram Drive Car Set Drive Car = Start Car
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Put Car in Drive Release Brake Pedal Accelerate Car End Subprogram Function Enter Car () as Real Set Enter Car = Car Entry End Function Function Drive Car () as Real Set Drive Car = Car Driver End Function End Class A programmer using the top-down, modular approach to program design begins by determining fundamental tasks. An object-oriented programmer, on the other hand, determines the fundamental objects associated with a problem. Structured designs make more sense to me because that’s what we have been working with during this entire class and have experience with it. However, I do see the major advantages of object-oriented programming. Over time with experience I am sure object oriented programming will make more since. I have gotten my feet wet with programming and have a lot to learn, but I am off to a good start....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern