Topic 1 - Variables and Data Types
Topic 2 - Conditionals and Strings
Topic 3 - Loops
Topic 4 - Arrays
Topic 5 - File Handling
Semester 1 Projects
Topic 6 - Classes/Objects and Methods
Topic 7 - ArrayLists
Semester Projects

Introduction

You should do this project if…

  • You are still getting comfortable with Java/programming.
  • You are interested in how Computer Science can be used to make decisions in Psychology-related fields.
  • You enjoy data processing.
  • You would like to major in a Psychology-related field in the future.

Starter Code Files

https://github.com/emlag/PersonalityTest

Introduction

The assignment involves processing data from a personality test. This personality test is a variation of the Myers-Briggs Type Indicator. The particular version we are using comes from a great book on the subject called Please Understand Me by David Keirsey.

You are going to write a program that processes an input file of data for a personality test known as the Keirsey Temperament Sorter.  The Keirsey personality test involves answering 70 questions each of which have two answers.  We will refer to them as the “A” answer and the “B” answer.  People taking the test are allowed to leave a question blank, in which case their answer will be recorded with a dash (“-”).

The input file will contain a series of line pairs, one per person.  The first line will have the person’s name (possibly including spaces) and the second line will have a series of 70 letters all in a row (all either “A”, “B” or “-”).  Your job is to compute the scores and overall result for each person and to report this information to an output file.

Personality Dimensions

The Keirsey test measures four independent dimensions of personality:

  • Extrovert versus Introvert (E vs I): what energizes you
  • Sensation versus iNtuition (S vs N): what you focus on
  • Thinking versus Feeling (T vs F): how you interpret what you focus on
  • Judging versus Perceiving (J vs P): how you approach life

Individuals are categorized as being on one side or the other of each of these dimensions.  The corresponding letters are put together to form a personality type.  For example, if you are an extravert, intuitive, thinking, perceiving person then you are referred to as an ENTP.  Usually, the letter used is the first letter of the corresponding word, but notice that because the letter “I” is used for “Introvert”, the letter “N” is used for “iNtuition.”

Project Setup