Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. Exercise 1:
  2. Structure Exercise:
  3. eg:
  4. Example 1:
  5. You are making an automatic shopping robot with 3 main classes:
  6. CPickup - picks up the item
  7. CMove - moves the robot around
  8. CCamera - tells what the item is
  9.  
  10. Task:
  11. Move around the shop and scan items
  12. Take inventory of how many there are of each item. The robot will be updating the warehouse module.
  13. Tell the robot to get items from a shoplist, this shopping list can contain an item more than once:
  14. eg: 1 carrot, 6 oranges, 3 apples etc
  15. If an item is missing, the robot will update the warehouse
  16. The robot can pick up to 2 items up at once
  17. The camera is very accurate and can tell what each item is in the store
  18. After finishing a list, the robot will go to the checkout area and then back to the charging station (that is also where it starts)
  19.  
  20.  
  21.  
  22. a: Describe how these classes work together
  23. b: How many instances of each class will there be? Where will the instances be found?
  24. c. Explain how threads could be implemented
  25. d: Make CRC Class Cards
  26. e. Make a UML Diagram
  27. f. Write up pseudo code
  28.  
  29.  
  30.  
  31. Exercise 2:
  32. Finish a Hierarchy:
  33. 3 Legged Humanoid
  34. 2 Wheeled Plane bot
  35. 2 Wheeled Humanoid
  36. 1 Wheeled Turtle bot
  37. 2 Legged Spider Bot
  38. 1 Legged Humanoid
  39. 3 Piston Drone
  40. 3 Wheeled Turtle bot
  41. 1 Legged Drone
  42. 2 Piston Humanoid
  43. 1 Piston Plane bot
  44.  
  45.  
  46. Exercise 3:
  47. Write a non bias c++ program to deal 5 cards to x amount (<4 players) of players.
  48. Standard decks consist of 52 cards.
  49. There must be a player and dealer class.
  50. It is expected that the player class can be made to allow multiple instances
  51. There are diamonds, hearts, spades and clubs (dont worry about 2,3,4,5,6.....).
  52.  
  53. (someone tests c++ ability, and polymorthism [early stuff] and vectors)
  54.  
  55.  
  56. Exercise 4:
  57. Write something which uses virtual and pointers
  58. These two are def in the exam.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement