You are on page 1of 5

Adamson University

College of Engineering
Computer Engineering Department

Computer Fundamentals and Programming

Experiment No.2
2D Graphics

Score

Exceeds Meets Needs


CRITERIA Unsatisfactory
Expectations Expectations Improvement
Completeness
20 15 10 5
Accuracy of
20 15 10 5
Results
Observation /
20 15 10 5
Conclusion
Spelling and
20 15 10 5
Grammar
Presentation and
20 15 10 5
Format

Submitted by
Matias,Andrei, B.
10:30 / Tues / CL5

Submitted to
Engr. Kaerius S. Mendoza
Professor

Date Performed
March 19, 2019

Date Submitted
March 19, 2019
Experiment No. 2
2D Graphics

I. OBJECTIVES
The objectives of this experiment, using the C++ software, are for the students:
1. To demonstrate how to display 2D graphics.
2. To demonstrate the use of the functions cprintf, gotoxy, delay, textcolor, and
textbackground.
3. To understand and apply the purposes of stdio.h and dos.h in a program.

II. PROCEDURES:

1. Encode the C++ programs below.


2. Compile and run the program by pressing Ctrl + F9.
3. Capture the output of the program by using snipping / print screen tool and
paste them on the table provided.
4. Discuss the output of the program.
5. Upload your work in E-Learning, filename: LASTNAME.DOC.
6. Hard copy of the laboratory report will be submitted next meeting.

COMPUTER FUNDAMENTALS AND PROGRAMMING | COMPUTER ENGINEERING


2
DEPARTMENT
COMPUTER FUNDAMENTALS AND PROGRAMMING | COMPUTER ENGINEERING
3
DEPARTMENT
III. ANALYSIS OF RESULTS

Direction: Paste the output screenshot for each program in the table below. Give
your analysis/discussion for each output.

PROGRAM OUTPUT ANALYSIS / DISCUSSION

1.

In this output, it shows that we can


input colors and also delay in display
in any moment we want.

COMPUTER FUNDAMENTALS AND PROGRAMMING | COMPUTER ENGINEERING


4
DEPARTMENT
2.
It shows that we can create like a GIF
animation in a simple program with
different inputs when we put “clrscr”
in it.

3.

We can manipulate the color and the


spacing of the characters in order to
create new ones.

V. OBSERVATION

I observe that we can create any outputs we want as long as we know the right codes
that we can program like in 2D graphics.

VI. CONCLUSION

I therefore conclude that by using the functions cprintf, gotoxy, delay, textcolor, and
textbackground. We can create a 2d graphic we want by manipulating it accordingly on
what we want

COMPUTER FUNDAMENTALS AND PROGRAMMING | COMPUTER ENGINEERING


5
DEPARTMENT

You might also like