Download these two [ bad.cpp ] [ p1.cpp ] skeleton files.
Program 1 -- Debug a bad function
Use the compiler to test "bad.cpp" --
then use your preferred editor to fix it.
There are several Common Errors in this function.
Program 2 -- Complete the given function
Here you develop a function that would be quite useful to CSUSB and
other organizations that give a standardized email to their people.
The program "p1.cpp" has a set of tests and a description of the function --
it combines the initial of the first name with the second name and truncates the
result to no more 8 characters. For example, my email is "rbotting".
Update the leading documentation to show your name.
Make the program compile and run to "Success" with out changing the main program in any way.
Hint -- see pages 63 to 66 in our text book to see what you can do with strings.
Show the lab teacher how far you have got with your two programs.
If you have time -- work on the next project