Laboratory Activities Structures

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

AN OUTCOMES-BASED APPROACH ON Data structures and Algorithm

2 hours lecture & 3 hours laboratory


DATA STRUCTURES AND ALGORITHM Version1

Laboratory Activities Structures


Exercise 1:

Suppose that we want to store information about a student in a record. This will require
several fields. On the answer sheet, complete the following table with your ideas regarding
the types and names of fields that could be included in a student's record.

Field Field Data Type Field Name


a student's name

a student's tuition

a student's gpa

a student's major

Exercise 2:
On the answer sheet, show C++ statements to set up a new type called StudentRec to
store information about a student. This answer should relate to your answer to Exercise 1. Also,
show C++ to set up a variable called aStudent of type StudentRec.

Write your answer here:

Exercise 3:
On the answer sheet, show one C++ statement to perform each of the following for the
variable, aStudent, as described in Exercise 2.
1. Read in a student's name
2. Add $200.00 to the student's tuition.
3. If the student's major is "Computer Science", print out the student's name and his/her
gpa and if not print his/her tuition.
AN OUTCOMES-BASED APPROACH ON Data structures and Algorithm
2 hours lecture & 3 hours laboratory
DATA STRUCTURES AND ALGORITHM Version1

Screenshots of the C++ code and the Output.

------- Paste Here ------

Submission Guide
1. Make a copy of Laboratory Activities. url:
https://docs.google.com/document/d/12IwUxOu9oUDukiZ9PxU2HDdsDsI
Db8Mpi_5Dt7wr7ic/edit?usp=sharing
2.

3. Rename the document as “Midterm Lab Structures – Last Name” (ex. Midterm Lab Structures –
Fadrilan)
4. Answer the Exercises. Place your answer to the space provided.
5. Attach your screenshots at the last page of the checklist document
6. Create a shareable link of your accomplished cheklist
For PC/Laptop:
a. Click the Share Button
AN OUTCOMES-BASED APPROACH ON Data structures and Algorithm
2 hours lecture & 3 hours laboratory
DATA STRUCTURES AND ALGORITHM Version1

b. Click the “change to anyone with the link“


c. Click copy, and choose done

For Mobile (Android/IOS)


a. Find the file you want to share
b. On your Android device, open the app for Google Docs
c. Next to the file’s name, tap More (three dots).
d. Tap “Share & Export”
e. Tap “Link sharing” to enable sharable link.
f. Tap “Copy link”
AN OUTCOMES-BASED APPROACH ON Data structures and Algorithm
2 hours lecture & 3 hours laboratory
DATA STRUCTURES AND ALGORITHM Version1

7. Paste the link in the online text submission box and then submit. Ensure that your attachment is an
original copy of your work. Copying someone’s work or distributing your work is a violation of the
course policies and considered as cheating. Any violation shall be dealt accordingly.

You might also like