You will get email Reply within few hours

Tuesday, 28 May 2013

Angrybird


Suppose you are a game developer and you need to create a class called Angrybird that has public floats to hold the total score and the level the gamer is on. The class should have a constructor with default values and a method called Hitscore that adds a score between 0 and 1000 inputted by the user to the total score and increases level by one and print the score to the screen and which level they last completed after each entry . Have the user continue inputting scores to the program until the gamer has finished all 10 levels. After 10 levels, use a method you create called PassScore to have the program compare the score to avgscore (5000). If the score is less than avgscore, have the code respond "You are not angry at all. " if it is above avgscore, then have it respond "You seem quite angry, calm down. " and if it is exactly 5000, have it respond "Average, just average. ". Turn in copies of all three files needed to compile your program: main.cpp, Angrybird.cpp, and Angrybird.h
I Already have the Angrybird.h done i dont know if it will help

#ifndef ANGRYBIRD_H
#define ANGRYBIRD_H
using namespace std;

class Angrybird
{
public:

float newscore;
float level;

friend istream& operator>>( istream&, Angrybird& d);

void Hitscore (float newscore);
void PassScore();

float nextlevel;


};


#endif //ANGRYBIRD_H


Need Solution email me:

topsolutions8@gmail.com