SHORTER PROBLEMS 12 points] Declare a struct type with name Employee, containing fields for the employee's first name, t
Posted: Sat May 14, 2022 6:40 pm
SHORTER PROBLEMS 12 points] Declare a struct type with name Employee, containing fields for the employee's first name, the last name, a 9-digit identification number, and the wage (dollars and cents). The wage is a floating point number ranging from $0.00 to $10,000,000.00
2 points] Declare an array of the above struct for 50 entries.
[2 points] Declare an enum type for some of the colors red, yellow, and blue.
[2 points) Declare a variable of the above enum type, a pointer to the enum type variable, and a reference to the enum type variable.
12 pointsDeclare but don't implement/define) a function named is Token that accepts a const reference to a string argument and returns a bool indicating if the argument is a token (e.g., by the definition of the flight plan language). Note: the actual requirement for a token is not relevant
[2 points) Provide code that declares a string with 5 characters, and displays the memory address of the last character on cout. The array elements do not need to be initialized
[2 points) What are two distinguishing features of an agile software development methodology?
[2 points each] Define the following in the context of this course: 1) class 2) member variable and member function
3) call by reference
12 points) Indicate the value written to cout for the following C++ code segments. 1) = int i{100}; int* ptri &i; i = i+20; cout << (*ptri); Output: 2) string s = "2514"; “ cout << s[1]; Output:
SHORTER PROBLEMS 12 points] Declare a struct type with name Employee, containing fields for the employee's first name, the last name, a 9-digit identification number, and the wage (dollars and cents). The wage is a floating point number ranging from $0.00 to $10,000,000.00
2 points] Declare an array of the above struct for 50 entries.
[2 points] Declare an enum type for some of the colors red, yellow, and blue.
[2 points) Declare a variable of the above enum type, a pointer to the enum type variable, and a reference to the enum type variable.
12 pointsDeclare but don't implement/define) a function named is Token that accepts a const reference to a string argument and returns a bool indicating if the argument is a token (e.g., by the definition of the flight plan language). Note: the actual requirement for a token is not relevant
[2 points) Provide code that declares a string with 5 characters, and displays the memory address of the last character on cout. The array elements do not need to be initialized
[2 points) What are two distinguishing features of an agile software development methodology?
[2 points each] Define the following in the context of this course: 1) class 2) member variable and member function
3) call by reference
12 points) Indicate the value written to cout for the following C++ code segments. 1) = int i{100}; int* ptri &i; i = i+20; cout << (*ptri); Output: 2) string s = "2514"; “ cout << s[1]; Output:
SHORTER PROBLEMS 12 points] Declare a struct type with name Employee, containing fields for the employee's first name, the last name, a 9-digit identification number, and the wage (dollars and cents). The wage is a floating point number ranging from $0.00 to $10,000,000.00