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

What is a compiler? What would be displayed by the following program? int main(v

ID: 3806313 • Letter: W

Question

What is a compiler? What would be displayed by the following program? int main(void) {double a, b; a = 37.56; b = 101.117; printf("Is it %.1f%.4f ", a, b); return (0); What data types would you use to represent the following items number of children at school a letter grade on an exam the average number of school days a child is absent each year Rewrite the following mathematical expressions using math library functions: b^2 - 4ac Squareroot (u - v) What is illegal about the following program fragment? #include ; #define PI 3.14159 int main(void) {double circum, r; scanf("%1f%1f", circum, r); PI = circum/(2 * r); ...} What is the value of z when w is 16.0? z = 5.7 + squareroot (w) - abs(-2);

Explanation / Answer

Question 1:

Answer:

A compiler convert the source code to executable program.

Question 2:

Answer: Is it 38101.1170

%.4 repersent 4 decimal places

Question 3:

Answer:

i) int it represent length.

ii) char : single leter is represented a char

iii) float or double : for average we calculate demical places so float and double is used

Question 4:

Answer:

i) pow(b,2) - 4 * a * c

ii) sqrt(u - v)

Question 5:

Answer:

PI is already define so it can't be reasigned

Question 6:

Answer:

if z is double or float = 7.700000

if z is integer = 7

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote