// Based on the value being stored in the variable and the comments beside it,
// fill in the data type at the beginning of each line. Then compile and run
// program to make sure you selected the correct types.
//
// After you submit your answers, try changing the values stored in the
// variables. What can you learn about the different data types?
//
#include
#include
using namespace std;
enum colorCode {
Green = 1,
Yellow = 5,
Red = 10
} gradebookColor;
int main(int atgc, const char* arg[])
{
unsigned int gradebookColor = colorCode::Green;
float classAverage = 90.7f; //Decimal number
char letterScore = 'A'; //Single letter
int testScore = 95; //Whole number value
float classTestAverage = 88.4f; //Decimal number, notice the 'f' at the end
//Stores list of values
bool isStudentPassing = true; //Could be true or false
cout << "The
The class average is currently
<< classAverage
<< endl;
cout << "The
The class test average was
<< classTestAverage
<< endl;
cout << "Your
Your test score was
<< testScore
<< endl;
cout << "Your
Your current letter score is
<< letterScore
<< endl;
cout << "The
The color of your gradebook entry is
<< gradebookColor
<< endl;
cout << "Are
Are you passing?
<< boolalpha //This line allows the word 'true' or 'false' to be printed instead of '0' or '1'
<< isStudentPassing
<< endl;
return 0;
}