Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Keth Iralex Cabalda BES 043

COC-FA-BSCE2-04 Module #5

Mixed Type

Activity 1: What I Know Chart

1. In C++, are fractions written horizontally?


- Yes in C++ fractions is written as “/’

2. Can a C++ data integer and double be mixed?


- Yes

3. In a computer program, how to get the remainder in a division calculation?


- Quotient = Dividend / Divisor;
Remainder = dividend % Divisor;

Activity 3: Skill-building Activities

1. Given the following declarations:


int i1 = 2, i2 = 5, i3 = -3;
double d1 = 2.0, d2 = 5.0, d3 = -0.5;

a. 7
b. 0
c. 2
d. -6
e. 7
f. 0.4
g. 2.5
h. -1
i. 7
j. 1
k. 2.5
l. 2
m. 0.5
n. 2
o. 0.4
p. 0.8
q. 1
r. 2
s. 1.25
t. 2.5

2. Given the following declarations:


int i1 = 2, i2 = 5, i3 = -3;
double d1 = 2.0, d2 = 5.0, d3 = -0.5;

a. -4
b. -2
c. 0.6
d. -2.6
e. 8.6
f. 4.3
g. -0.5
h. -3.5
i. 0.9
j. 0.3
k. 6.8
l. 2.1
m. 6.9
n. 52.5

Activity 5: Check for Understanding

1. (2*x/a*b) + a/b
2. 2*x(a-2*b)/a*b
3. (a-2*b)(4*x)/2*a*x
4. a*b(a/x – 3*b)/2*a+x

Activity 6: Thinking about Learning

1. How was the module able to help you learn?


- It guides me the basis of what to do in order to evaluate the C++ expressions
2. What did you realize about the topic?
- The signs in C++ is very important.

You might also like