Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

s Declare a constant integer named MAX SCORE and assign it the value 100 is stor

ID: 3872336 • Letter: S

Question

s Declare a constant integer named MAX SCORE and assign it the value 100 is stored in "result"? result " 4 + 7 % 2. what value 1o Wirite the line of code that ends an int type function (Hint: Last line of the int nt type function (Hint: Last line of the int main0). 11. Wite the basic structure/template of the main function (excluding lib 12. What file must be included to handle all console input and output? 13. Name 5 data types and state what type of data they contain. 14. What are 2 common programming errors? 15. What is the difference between a constant variable and a regular variable?

Explanation / Answer

8)final int MAX_SCORE=100;

9)result =4+7%2= 4+1=5

10)return (integer_value) eg return 0 (in int main())

11)

12)#include<iostream.h>

13) char - conatains a character

string - contains alphanumeric character

int -conatains an integer

double -conatains decimal number

boolean-conatins true or false

14)a) when you dont follow the grammer or format of a kanguage syntax error is generated

. b) when you dont use the language to produce desired result then sematic error is said to be occured

c) typo's -spelling mistakes

15) a constant variable cannot be changed while a regular varaible could be changed