Keirsey-Bates Temperment Scorer


The Keirsey-Bates Temperment Survey is a personality inventory instrument.  To get an idea of what it is like, you may want to complete the online Keirsey-Bates Temperament Scorer.  Plan to take about 20 minutes.  When you finish the survey, you will be shown a results page with an interpretation of your temperament.

OVERVIEW

You are to write a program that will assist in analyzing responses to the 70 question Keirsey-Bates Temperment Survey. It scores the responses and produces a personality "type" according to the scoring formula in the Keirsey-Bates textbook.


INPUT

  A 70 character string representing a response to each item in the survey instrument.  Each character is 'A' or 'B', a response to one of the survey questions. Note: it's assumed that the responses are in the same order as the 70 questions on the survey.


OUTPUT

  A 4 character string, containing one of the Keirsey-Bates types, or "ERR!" if there was invalid input.


FUNCTIONS

  Use the Keirsey-Bates scoring directions.


ERROR HANDLING

Return "ERR!" if the Responses input is not 'A' or 'B' or if there are not exactly 70 characters.


IMPLEMENTATION CONSTRAINTS

          Your Java class must be named KeirseyScorer.  The scoring function must be a static method with the following signature:
       public static String evaluateSurvey(String responses)

  

SUBMISSION
Submit your source code using the Web-CAT grader. On this first project the grader will not check for conformance to the class coding standard, nor will it run your own unit tests.
When Web-CAT assigns a 100% score to your work, you should finalize your Time Log and submit it to the instructor at the next class meeting.