Laboratory Activities Structures
Laboratory Activities Structures
Laboratory Activities Structures
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.
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.
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
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
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.