CMSC 160
Fall 2018
11/15/2018
Exam 2 Extra Credit
Due: Fri, Nov 30
5pm

Assignment:    (worth up to 8 points on Inclass Exam #2)

OVERALL INSTRUCTIONS:
  • For this assignment, this is to be individual work.     You are allowed to seek help from Prof Mac or from Cameron in the TuTh tutoring hours.   You may not speak with anyone else about the assignment.
  • You do NOT need to do all of the questions in order to get points.    

All of the filles for this exercise are in one directory.  Get it via the following command:
  • cp  -r  ~scottmce/160files/Exam2Extra   .   (note the period)
Before working on this, you will need to:
  • cd Exam2Extra
All of these will be handed in at once.
yellow bar separator

0)    StartAndEndSame

For this one, you will focus on the files:
  • StartEnd.cpp
  • StartEndTester.cpp
To compile:
  • compile StartEndTester.cpp

OVERALL TASK:
Complete the functions startAndEndSame   and    howmanyStartAndEndSame in the StartEnd.cpp file so that they work properly.

Details:
  • Edit the StartEnd.cpp file so that the functions are correct.
  • The StartEndTester.cpp file does not do very much testing.     Modify this file so that it does more extensive testing.
  • Add a detailed comment to the bottom of the StartEndTester.cpp file that describes the additional testing you did, and why you think this testing is sufficient to show your functions work.
yellow bar separator

1)  All Even

For this one, you will focus on the files:
  • AllEven.cpp
  • AllEvenTester.cpp
To compile:
  • compile AllEvenTester.cpp

OVERALL TASK:
The function allEven does not work properly.  Although it works for the given test cases, it does not work for all possible arguments in the list.   Your task is to correct the function so that it works for all valid lists.
 

Details:
  • Edit the AllEven.cpp file so that the function is correct.
  • The AllEvenTester.cpp file does not do very much testing.     Modify this file so that it does more extensive testing.
  • Add a detailed comment to the bottom of the AllEvenTester.cpp file that describes the additional testing you did, and why you think this testing is sufficient to show your function works.
yellow bar separator

2) Shortest Distance


For this one, you will focus on the files:
  • ShortestDistance.cpp
  • ShortestDistanceTester.cpp
To compile:
  • compile ShortestDistanceTester.cpp

OVERALL TASK:
Complete the shortestDistance function so that it works properly.

 
Details:
  • Edit the ShortestDistance.cpp file so that the function is correct.
  • The ShortestDistanceTester.cpp file does not do very much testing.     Modify this file so that it does more extensive testing.
  • Add a detailed comment to the bottom of the ShortestDistanceTester.cpp file that describes the additional testing you did, and why you think this testing is sufficient to show your function works.
yellow bar separator

3) BeginWithVowel


For this one, you will focus on the files:
  • BeginWithVowel.cpp
  • BeginWithVowelTester.cpp
To compile:
  • compile BeginWithVowelTester.cpp

OVERALL TASK:
Complete the functions beginWithVowel   and    howmanyBeginWithVowel  in the BeginWithVowel.cpp file so that they work properly.

Details:
  • Edit the BeginWithVowel.cpp file so that the functions are correct.
  • The BeginWithVowelTesterr.cpp file does not do very much testing.     Modify this file so that it does more extensive testing.
  • Add a detailed comment to the bottom of the BeginWithVowelTester.cpp file that describes the additional testing you did, and why you think this testing is sufficient to show your functions work.

yellow bar separator

4) Higher


For this one, you will focus on the files:
  • Higher.cpp
  • HigherTester.cpp
To compile:
  • compile HigherTester.cpp

OVERALL TASK:
Complete the higher function so that it works properly.

Details:
  • Edit the Higher.cpp file so that the function is correct.
  • The HigherTester.cpp file does not do any testing.     Modify this file so that it does some testing.  (You are welcome to look at other tester files for some guidance.)
  • Add a detailed comment to the bottom of the HigherTester.cpp file that describes the additional testing you did, and why you think this testing is sufficient to show your function works.

 

Handin

handin cmsc160   labexam2extra   *