GSP 125 education changes / sellfy.com - PowerPoint PPT Presentation

About This Presentation
Title:

GSP 125 education changes / sellfy.com

Description:

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. – PowerPoint PPT presentation

Number of Views:8
Slides: 11
Provided by: ragavanshuyan
Tags: gsp

less

Transcript and Presenter's Notes

Title: GSP 125 education changes / sellfy.com


1
GSP 125 Experience Tradition/sellfy.com
2
GSP 125 Experience Tradition/sellfy.com
  • GSP 125 Final Exam Guide
  • https//sellfy.com/p/Ulc6/
  •  
  • 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 Experience Tradition/sellfy.com
  • GSP 125 Midterm Exam
  • https//sellfy.com/p/kIl3/
  •  
  • 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 Experience Tradition/sellfy.com
  • GSP 125 Week 1 iLab Simple game
  • https//sellfy.com/p/2Naw/
  •  
  • GSP 125 GSP\125 GSP 125 Week 1 iLab//////
    INSTRUCTIONS-----------Compile this code. You
    should see a happy-face character on a field
    ofperiods. 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 experimentwith existing
    code to test your understanding.Once you feel
    comfortable with this code, accomplish each of
    the following,and make sure your code compiles
    and runs after each step is completed.1) Object
    Oriented Refactoringa) Write a class called
    Entity to store two public integers named x and
    y,and a char named icon (the player data).

5
GSP 125 Experience Tradition/sellfy.com
  • GSP 125 Week 2 ILab Rectangles
  • https//sellfy.com/p/FanB/
  •  
  • / lab2 rectangles// ltinsert your name here//
    read main.cpp, and follow the instructions at the
    bottom of main.cppdefine NOMINMAX // prevent
    Windows API from conflicting with "min" and
    "max"include ltstdio.h // C-style output.
    printf(char,...), putchar(int)include
    ltwindows.h // SetConsoleCursorPosition(HANDLE,COOR
    D)include ltconio.h // _getch()/ moves the
    console cursor to the given x/y coordinate

6
GSP 125 Experience Tradition/sellfy.com
  • GSP 125 Week 3 iLab List of Numbers
  • https//sellfy.com/p/W1qS/
  •  
  • GSP 125 GSP/125 GSP 125 Week 3 iLab// lab3
    listofnumbers// ltinsert your name here// read
    main.cpp, and follow the instructions at the
    bottom of main.cppinclude ltiostreamusing
    namespace stdint main()int numberOfElements
    0float elements NULLfloat
    userInputbool addingNumbersToTheList

7
GSP 125 Experience Tradition/sellfy.com
  • GSP 125 Week 4 iLab Simple Game inheritance
  • https//sellfy.com/p/rwqX/
  •  
  • GSP 125 GSP/125 GSP 125 Week 4 iLab/////////
    ///// INSTRUCTIONS-----------Compile this
    code. You should see a rectangular play field of
    periods, with3 Entity objects visible on it. The
    happy-face Entity moves with the "wasd"keys, and
    the club Entity moves with the "ijkl" keys. If
    the happy-facereaches the diamond Entity, the
    player wins. If the happy-face reaches theclub,
    the player loses.

8
GSP 125 Experience Tradition/sellfy.com
  • GSP 125 Week 5 iLab Shapes
  • https//sellfy.com/p/AhUR/
  •  
  • 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 ''
    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 Experience Tradition/sellfy.com
  • GSP 125 Week 7 iLab GSP 124 Week 7 iLab win32game
  • https//sellfy.com/p/wH7P/
  •  
  • GSP 125 GSP/125 GSP 125 Week 7 iLabLooking 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 Experience Tradition/sellfy.com
Write a Comment
User Comments (0)
About PowerShow.com