Professional Documents
Culture Documents
Comp Prog-Final - Exam
Comp Prog-Final - Exam
FINAL EXAM
COMPUTER PROGRAMMING (SET A)
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 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 .
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:
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.
INPUT
OUTPUT
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.)