GSP 125 The Secret of Education/newtonhelp.com - PowerPoint PPT Presentation

About This Presentation
Title:

GSP 125 The Secret of Education/newtonhelp.com

Description:

For more course tutorials visit www.newtonhelp.com Question 1. 1. In addition to grouping functions together, a class also groups (Points : 3) libraries. math operations. print statements. variables. – PowerPoint PPT presentation

Number of Views:0
Slides: 11
Provided by: redflowers13

less

Transcript and Presenter's Notes

Title: GSP 125 The Secret of Education/newtonhelp.com


1
GSP 125 The Secret of Education/newtonhelp.Com
2
  • GSP 125 Final Exam Guide
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • Question 1. 1. In addition to grouping functions
    together, a class also groups (Points 3)
  • libraries.
  • math operations.
  • print statements.
  • variables.
  • Question 2. 2. Hiding data in a class is also
    called (Points 3)
  • encapsulation.
  • accessibility inversion.
  • confusion culling.
  • redirection.

3
  • GSP 125 Midterm Exam
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • 1. Accidentally inheriting from the same class
    twice causes terrible ambiguity, and is known as
    (Points 2)
  • inheritance overload.
  • the dreaded diamond of death.
  • Von Neumann bottleneck.
  • There is nothing wrong with inheriting the
    same class more than once.
  • Question 2. 2. Creating classes in separate .h
    and .cpp files is good because (Points 2)
  • moving code to separate files is good
    design (separation of concerns).
  • separating declaration from definition
    allows de-coupling of dependencies.
  • many smaller files are easier to maintain
    by teams of programmers.
  • All of the above

4
  • GSP 125 Week 1 iLab Simple game
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • GSP 125 GSP\125 GSP 125 Week 1 iLab
  • //
  • //
  • // INSTRUCTIONS
  • -----------Compile this code. You should see a
    happy-face character on a field of
  • periods. You can move the character with the 'w',
    'a', 's', and 'd' keys.
  • Read through this code! Try to understand it
    before starting the assignment.
  • Comment confusing lines with what you think code
    is doing, and experiment
  • with existing code to test your understanding.

5
  • GSP 125 Week 2 ILab Rectangles
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • / lab2 rectangles
  • // ltinsert your name heregt
  • // read main.cpp, and follow the instructions at
    the bottom of main.cpp
  • define NOMINMAX // prevent Windows API from
    conflicting with quotminquot and
    quotmaxquot
  • include ltstdio.hgt // C-style output.
    printf(char,...), putchar(int)
  • include ltwindows.hgt // SetConsoleCursorPosi
    tion(HANDLE,COORD)
  • include ltconio.hgt // _getch()

6
  • GSP 125 Week 3 iLab List of Numbers
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • GSP 125 GSP/125 GSP 125 Week 3 iLab
  • // lab3 listofnumbers
  • // ltinsert your name heregt
  • // read main.cpp, and follow the instructions at
    the bottom of main.cpp
  • include ltiostreamgt
  • using namespace std
  • int main()

7
  • GSP 125 Week 4 iLab Simple Game inheritance
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • GSP 125 GSP/125 GSP 125 Week 4 iLab
  • //
  • //
  • //
  • //
  • //
  • //
  • // INSTRUCTIONS
  • -----------Compile this code. You should see a
    rectangular play field of periods, with
  • 3 Entity objects visible on it. The happy-face
    Entity moves with the quotwasdquot
  • keys, and the club Entity moves with the
    quotijklquot keys. If the happy-face
  • reaches the diamond Entity, the player wins. If
    the happy-face reaches the

8
  • GSP 125 Week 5 iLab Shapes
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • GSP 125 GSP/125 GSP 125 Week 5 iLab
  • // INSTRUCTIONS
  • // ------------
  • // Compile this code. After pressing any key to
    clear the instructions, You
  • // should see three rectangles labeled '', 'b',
    and 'c'. You should also see
  • // two triangles, labeled 'd' and 'e'. Pressing
    'gt' and 'lt' will change which
  • // shape is labeled ''. Pressing 'w', 'a', 's',
    and 'd' will move the shape
  • // labeled ''. Pressing 'space' will randomize
    the selected shape.

9
  • GSP 125 Week 7 iLab GSP 124 Week 7 iLab win32game
  • For more course tutorials visit
  • www.newtonhelp.com
  •  
  •  
  •  
  • GSP 125 GSP/125 GSP 125 Week 7 iLab
  • Looking for help with C lab, please see
    attached zip, inside main.cpp are directions
  • // 1) Replace Vector2 and Coordinate
  • // a) Create a new Vec2 class as a replacement
    for both Vector2 and
  • // Coordinate. Vec2 must be a templated class, so
    that it stores and
  • // manipulates X and Y values of a templated
    type. It may be helpful to
  • // start with the Vector2 class, add "template"
    to the
  • // header, and replace (CtrlH) each instance of
    "float" with "TYPE", and
  • // "Vector2" with "Vec2".

10
GSP 125 The Secret of Education/newtonhelp.Com
Write a Comment
User Comments (0)
About PowerShow.com