You are on page 1of 6

COLEGIO DE DAGUPAN

FINAL EXAM
COMPUTER PROGRAMMING (SET A)

Name: _Jeric G. Manuel______________________________________ Rating: ____________________


Year and Block: _21-BSECE-01________________________________ Date: 01-21-20______________

I] Make a C++ program that will ask the user to input TWO numbers. The
program will then compute the sum, quotient, and difference of all numbers
between the two inputted numbers.

EX:

The user inputted 4 and 7.

The program will then compute the SUM of the number from 4 to 7 (4 + 5 + 6
+ 7). Then display the prompt message “The sum of all numbers from 4 to 7 is
equal to: “ 22.

Then display the prompt message “The quotient of all numbers from 4 to 7 is
equal to: “ 0.019047619047619.

Then display the prompt message “The difference of all numbers from 4 to 7 is
equal to: “ -14 .

1 | Page 1ST semester 2020


Prepared by: Mr. R. A. Bandong
COLEGIO DE DAGUPAN
FINAL EXAM
COMPUTER PROGRAMMING (SET A)

II] Make a C++ program that will display all ASCII characters from (1 to 255)
on the screen. The displaying sequence should be done horizontally. If the
entire horizontal row is already full then the displaying will resume on the next
succeeding rows.

Note:

- The colors should be “White on back”. White - foreground Black -


background.

- Use C++ Control structures and function.

- Use the test questionnaires as your answer sheet.

- To be submitted by the students:


- C++ source code
- Screen shot of the output
- SHORT Video of the C++ program as it function

2 | Page 1ST semester 2020


Prepared by: Mr. R. A. Bandong
COLEGIO DE DAGUPAN
FINAL EXAM
COMPUTER PROGRAMMING (SET A)

PASTE here the screen shot of your FINAL EXAM PERMIT, PN control number or
the screen shot of your remittance transaction for the payment of final exam.

PRESIDENTIAL SCHOLAR PO SIR.


TEST I.

INPUT

3 | Page 1ST semester 2020


Prepared by: Mr. R. A. Bandong
COLEGIO DE DAGUPAN
FINAL EXAM
COMPUTER PROGRAMMING (SET A)

OUTPUT

4 | Page 1ST semester 2020


Prepared by: Mr. R. A. Bandong
COLEGIO DE DAGUPAN
FINAL EXAM
COMPUTER PROGRAMMING (SET A)

TEST II.

INPUT

OUTPUT
(PS. MAY MGA HINDI PO LUMALABAS NA CHARACTERS SA AKIN SIR KAHIT NA MANO MANO PO YUNG PAGLALAGAY,
DI PA RIN PO NAGSHOSHOW.)

5 | Page 1ST semester 2020


Prepared by: Mr. R. A. Bandong
COLEGIO DE DAGUPAN
FINAL EXAM
COMPUTER PROGRAMMING (SET A)

6 | Page 1ST semester 2020


Prepared by: Mr. R. A. Bandong

You might also like