Thread: What is the psecudocode for this ?? and how do I approach this probem?? Plzz help me

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    7

    What is the psecudocode for this ?? and how do I approach this probem?? Plzz help me

    a. Implement an abstract class Machine with a run method.
    b. Then derive two concrete subclasses from Machine: WashingMachine, and Refrigerator.
    c. Finally implement a class House that consists of an array of pointers to 2 machines and
    astart_running method that starts running all machines of the house.
    d. Write a main program that creates a House and runs its both 2 different machines.
    Note: run method takes nothing, returns nothing, only prints which machine is running.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    You can approach this problem by remembering what your teacher told you and transfering this knowledge to the problem at hand.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    7
    I could'nt attend that class!! Can't u help me out??

  4. #4
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    thats tough luck mate - go beg your tutor for an extension, get the notes from fellow students - you know - talk to your peers - if you have no idea how to sketch an idea out in pseudocode then you must have missed all your other classes too?
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Probem with glut devpavk installing
    By jamort in forum Game Programming
    Replies: 2
    Last Post: 02-10-2010, 06:41 PM
  2. Window menu Probem
    By elwad in forum Windows Programming
    Replies: 5
    Last Post: 05-11-2009, 03:14 AM
  3. need help : Symbol probem in graphics
    By engwas in forum C++ Programming
    Replies: 20
    Last Post: 11-02-2008, 02:13 PM
  4. Multiple header files , cout undelcared probem
    By rainmanddw in forum C++ Programming
    Replies: 6
    Last Post: 11-22-2005, 10:15 PM
  5. my very cool new program has a mind boggling probem!!!
    By face_master in forum C++ Programming
    Replies: 11
    Last Post: 12-20-2001, 04:37 PM