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

1. Run the following program. what is the output? 1.5 pts) int mainlvoid) float

ID: 3670618 • Letter: 1

Question

1. Run the following program. what is the output? 1.5 pts) int mainlvoid) float f1 100001, 2-1 000001, f3. 2. What is the output of the folowing programs if the user enters 36.7 for both: Kupts Ainclude cstdio h> int mainlvoid) intil, 12; printf Enter an int and a floatAnh; Program 8 include ostdio.h> int mainlvoid) float fl f2: printf Enter an int and a floatAn'h; Rewrite the following program using macro definitions for the constant and a new type definition Money to represent money amounts pts) aindude cstdio.h> float usd Amount, cadAmount. printf( Enter the USD amount cad Amount a usdAmount 1.38; printf The amount in CAD cadAmount: return 0; 4. What are the values ofx1,x2 and 3 (15 pts)

Explanation / Answer

1) 1.0000100136,1.0000009537,1.0000001192

2)

A) Enter an int and a float
12 4.5
12 4 0.000000 -0.751929

B) Enter an int and a float
23 4.5
0 1077346304 4.500000 23.000000

3)

#include<stdio.h>

int main(void){
   float usdAmount, cadAmount;
   printf("Enter the USD amount ");
   scanf("%f",&usdAmount);
   cadAmount = usdAmount*CONVERT;
   printf("The amount in CAD is %f ",cadAmount);
   return 0;
}

4) 4,4,20