Writing Computer Programs
ES 122-18 – Computer Programming
Learning Outcomes:
At the end of this module, the student must be able to:
• know the basic steps in programming;
• understand the syntax of the basic codes in C
• appreciate the importance of compilation and
debugging process in programming;
• write and run a C/ C++ program
Discussion
• Go to https://www.onlinegdb.com/
• This will serve as our online compiler
• First time users may Sign-up in order to compile and
organize your projects
Discussion
• Your username will prompt
once signed in
• Create New Project – allows
you to start a new program
• My Projects – where all your
saved projects are found
Discussion
Basic Command/ Icon Function
New File Creates a new program
File Upload Opens and existing file
Run Executes codes and displays output
Share Generates shareable link
Save Saves the program for future use
Beautify Re-arranges the layout of codes
Download Makes the code available in your selected device
Discussion
• Try to open Program # 1 using the link,
https://www.onlinegdb.com/edit/SJrLzEhLu
Discussion
• Run the program. Make sure that your program is
error-free
• Do not forget to set the Language to C
Discussion
• Result of Running Program # 1
Assessment
• Please download and perform the corresponding
activity, "Displaying Expressions"