// Game Stats // Demonstrates declaring and initializing variables #include using namespace std; int main() { // Establishing variables and values int score = 72; double distance = 1200.76; char playAgain = 'y'; bool shieldsUp = true; short lives = 3; short aliensKilled = 10; double engineTemp = 6572.89; int fuel; // Printing information to screen cout << "\nScore: " << score << endl; cout << "Distance: " << distance << endl; cout << "Play Again?: " << playAgain << endl; cout << "Shields Up?: " << shieldsUp << endl; cout << "Lives: " << lives << endl; cout << "Aliens Killed: "<< aliensKilled << endl; cout << "Engine Temp: " << engineTemp << endl; // Printing information and receiving information cout << "\nHow much fuel? "; cin >> fuel; cout << "Fuel: " << fuel << endl; // Defining different types into user type typedef unsigned short int ushort; ushort bonus = 10; cout << "\nBonus: " << bonus << endl; // Ending program return 0; }