Docsity

C++ Programming Lab Report: Even/Odd Number Checking, Lab Reports of Compiler Construction

Partial preview of the text

Download C++ Programming Lab Report: Even/Odd Number Checking and more Lab Reports Compiler Construction in PDF only on Docsity!

International University

School of Computer Science and Engineering

C/C++ Programming

IT116IU

Lab Title

Submitted by

[Your name and Your ID number here]

[Your name and Your ID number here]

Date Performed: [insert date]

Date Submitted: [insert date]

Lab Section: Lab 1

Course Instructor: M. Eng Nguyen Minh Thien

International University 1 IT116IU

GRADING CHECKLIST

Date:

Signature

International University 2 IT116IU

Discussion of Fundamentals

In this section, describe the fundamental knowledge of the topic in this lab section. For example:

If Selection Statement Experimental Procedure

Describe your problems here. Then, you should use flow chart or pseudo code to show your

solution.

Experimental Results

In this section, you will paste your codes and the results here. The code section should be clean,

easy to read, font type Consolas, size 10. For example:

Problem 1:

#include <stdio.h> int main(void) { //Variables decleration int num1, rem1; //Input processing printf("Input an integer : "); scanf("%d", &num1); //Processing rem1 = num1 % 2; International University 4 IT116IU

//Output Processing if (rem1 == 0) printf("%d is an even integer\n", num1); else printf("%d is an odd integer\n", num1); }

Result

Figure 1. Result of the program in Problem 1 – Even/odd number checking. Conclusion

In the discussion, you should summary your work in this lab.

Discuss the difficulties you have coped with and how you overcome them.

Emphasize and discuss the points that you consider to be important in this lab.

THE END

International University 5 IT116IU