ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 03 May 2017 My Price 9.00

Replace Vector2 and Coordinate

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 (Ctrl+H) each instance of "float" with "TYPE", and
// "Vector2" with "Vec2".
// b) Remember, a templated class must have all method definitions in the
// same file as the templated class declaration. Also remember that method
// definitions outside of a templated class' declaration need a 
// "template" header, and a "" appended to the class
// name with the scope resolution operator (e.g.: 
// "void Vec2::limitMagnitude(TYPE max) {/* method body */}").
// c) Replace the use of Vector2 with Vec2.
// d) Replace the use of Coordinate with Vec2.
// 2) More Game Goals
// a) Instead of having a single goal for the player, create at least 3
// randomly placed goals for the player. Use a "std::vector" 
// object (from the Standard Template Library) named "goals" to store the
// goals.
// c) Whenever the user clicks in the game window, the game should create
// another goal object for the player to get, and add it to the
// "std::vector goals" object.
// d) Each retrieved goal should be removed from the game after being
// retrieved by the player. A "You Win!" message should display when the
// player retrieves all goals.

Attachments:

Answers

(11)
Status NEW Posted 03 May 2017 03:05 AM My Price 9.00

-----------

Attachments

file 1493780654-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)