CPSC 111 Sections 6 and 8
Lab 10 (Tuesday, October 31)
Objectives
* Cover structs, arrays, and enumerated types
* Test on November 9
1. Questions on test
* Go over worksheet
Above link will not work until later today.
2. Enumerated Types
3. Arrays
4. Structs
Homework:
Read in a person's last name and first name into a struct (Ask for the first name first).
The struct will hold the person's first name and last name.
Output the person's last name and first name backwards.
You may not include the string library for this assignment.
Assume that each name will not be over 25 characters.
Example input: John
Doe
Example output: nhoJ
eoD
* Below is the syntax for the LAB
For section 6:
sendlab.111.6 10 names.cpp
For section 8
sendlab.111.8 10 names.cpp
Programs not in the correct directory or named incorrectly will receive a grade of 0.
Back