1 / 10

GSP 125 education changes / sellfy.com

https://sellfy.com/p/Ulc6/<br><br>Question 1. 1. In addition to grouping functions together, a class also groups (Points : 3)<br>libraries.<br>math operations.<br>print statements.<br>variables.<br><br>Question 2. 2. Hiding data in a class is also called (Points : 3)<br>encapsulation.<br>accessibility inversion.<br>confusion culling.<br>redirection.<br>

Download Presentation

GSP 125 education changes / sellfy.com

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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// <insert your name here// read main.cpp, and follow the instructions at the bottom of main.cpp#define NOMINMAX // prevent Windows API from conflicting with "min" and "max"#include <stdio.h // C-style output. printf(char*,...), putchar(int)#include <windows.h // SetConsoleCursorPosition(HANDLE,COORD)#include <conio.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// <insert your name here// read main.cpp, and follow the instructions at the bottom of main.cpp#include <iostreamusing namespace std;int main(){intnumberOfElements = 0;float * elements = NULL;float userInput;booladdingNumbersToTheList;

  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 '<' 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 (Ctrl+H) each instance of "float" with "TYPE", and// "Vector2" with "Vec2".

  10. GSP 125 Experience Tradition/sellfy.com

More Related