A student’s grade point average (GPA) is a numerical representation that typically includes a decimal to account for the precision of the average (e.g., 3.75). Therefore, it should be declared as a floating-point data type to accommodate the decimal part. Since a student’s GPA can change over time with the addition of new grades, it should be declared as a variable rather than a constant.
[References:, The concept of using floating-point variables for numerical data that includes decimals is a standard practice in programming. This is discussed in programming resources such as “Programming: Principles and Practice Using C++” by Bjarne Stroustrup, which explains data types and their uses. Additionally, the concept of variables and constants is covered in “The C Programming Language” by Brian W. Kernighan and Dennis M. Ritchie., , ]
Submit