Diploma in Mechatronics Engineering: C Programming Experiment 2: Data Input and Output
Diploma in Mechatronics Engineering: C Programming Experiment 2: Data Input and Output
Diploma in Mechatronics Engineering: C Programming Experiment 2: Data Input and Output
C PROGRAMMING
EXPERIMENT 2: DATA INPUT AND OUTPUT
COURSE CODE : DJM20032
COURSE : C PROGRAMMING
NAME : REGISTRATION NO:
CLASS :
LECTURER :
(MAISARAWANI SPAHAT)
(KP DEM)
PLO 3 PLO 3
PRACTICAL TASK
CLO 2 REPORT CLO 2
(SIMULATION)
P3 P3
Results / 80 1 5 4 3 2 1
Discussion / 10 2 5 4 3 2 1
Conclusions /10 3 5 4 3 2 1
4 5 4 3 2 1
TOTAL MARKS TOTAL MARKS
/ 100 / 100
(100%) (100%)
PLO3: CRITICAL THINKING AND PROBLEM SOLVING
SKILLS/ASPECTS 5 4 3 2 1 Ma
Student Student
Student
knows and is knows and is
Student knows knows and is
able to able to
and able to able to identify
identify identify
identify necessary Student is not able
necessary necessary
A. Usage of Tools necessary tools for to both identify [
tools for tools for
tools to completion of and use tools
completion of completion of
complete the the task
the task with the task with
task without major
less some
prompting
assistance assistance
Program
Program is Program Program has
output is Part of the
correct in form, gives correct elements of
correct but specification
B. Program Correctness functioning and output in correct code but [
elements of has been
meets some but not does not
specification implemented.
specification. all cases. assemble/compile.
missing.
Program
Program Program
executes Program
executes with executes but Program does not
correctly and executes with
C. Display of Results a minimally not display the execute with [
display with no a multiple
expected required incorrect output.
syntax or errors.
errors. output.
runtime errors.
The code is
The code is readable only
The code is The code is poorly
exceptionally The code is by someone
readable only organized and
D. Readability well organized fairly easy to who knows [
to the very difficult to
and very easy read. what it is
programmer. read.
to follow. supposed to
be doing.
TOTAL [
1.0 INTODUCTION
Input means to provide the program with some data to be used in the program and Output means to
display data on screen or write the data to a printer or a file. C programming language provides many
built-in functions to read any given input and to display data on screen when there is a need to output
the result.
2.0 OBJECTIVES
3.0 APPRATUS
Dev-C++ software
4.0 PROCEDURES
TASK A
Co
Use printf() function to write a program that prints your institution, department, course study and your
academic supervisor.
SOURCE CODE
TASK B
Use puts () function to write a program that prints your institution, department, course study and your
academic supervisor.
SOURCE CODE
TASK C
Write a program that prompts the user to enter three numbers and then prints them vertically (each in
one line), first forward and then reversed (the last one first), as shown below.
TASK D