Professional Documents
Culture Documents
Laboratory Activity 6
Laboratory Activity 6
Laboratory Activity 6
I. Objectives
a. To be able to know the use of structure data type in data processing.
b. To be able to know how structure data type are implemented in programming syntax.
c. To be able to use structure data type to simply handling of multiple data.
d. To be able to understand and apply structure data type in your programming code solutions.
e. To be able to arrange data types into a single structure as appropriate to simplify processing of data.
f. To be able to create an efficient programming code solution by using structure data type.
Example: “DELACRUZ_LabActivity_6_Problem1”
Note: The file extension depends on the programming language introduced in the course.
4. Solve the problems found in the Activity Sheet 6. For each problem corresponds to one program file.
5. Compile and Run your coded program every after writing your solution code for each problem to see
the output.
6. See sample input and output found in the Sample Input and Output found after each problem to
validate your solution.
7. Notify your instructor for checking your work when all problems are solved in this laboratory
activity.
8. Create a back-up copy of your program files. Note: You need to create back-up in case your program
files will be lost or corrupted.
9. Answer the follow-up questions in the Activity Sheet 6.
10. Submit your Activity Sheet 6 to your instructor.
Activity Sheet 6
USING STRUCTURE DATA TYPE TO SIMPLYING DATA PROCESSING
PROGRAMMING EXERCISES
1. Using structure create a program that will ask the user’s name and input their grades
for 10 students and displays it after.
2. Using array structure create a program that will compute an employee’s salary.
SAMPLE: