Current Projects

MCX2 home

Answers to hand outs
Collections:
1. C     2. E     3. D     4. A     5. D     6. B     7. A     8. B     9. B    10. C
11. E   12. D   13. E   14. B   15. A   16. A   17. C   18. E   19. A   20. C

Stacks & Queues:
1. B    2. C    3. A    4. D    5. E    6. C    7. E    8. D    9. A   10. D
11.  B   12. C   13. A.   14. B   15. C   16. C   17. B   18. C

MBCS:
1. E     2. B    3. C    4. E    5. A    6. B    7. C    8. C    9. C    10. A
11. D   12. D   13. A   14. D   15. D   16. B   17. B   18. C   19. D.   20. A
21.   22.  D   23. B   24. B   25. D   26. A   27. C   28. A   29. E   30. C   31. A   32. E

Marine Biology Case Study links
1. BlueJ's MBCS page
2. College Board site's MBCS page  (Register first at AP Central registration)
3. MBCS AB Quick Reference
4. MBCS implementations, interfaces, and utilities (comments have been removed)

1. Setting up the Marine Biology case study:
    a. Click on JavaMBS.zip and save AP case study zip file to your BlueJ directory  (probably c:\BlueJ)
    b. Unzip in the BlueJ directory. This will create a subdirectory JavaMBS  (Full pathname c:\BlueJ\JavaMBS)
    c. Now go to the c:\BlueJ\JavaMBS directory (folder) and delete the Code directory (folder)
    d. Click on BlueJ_Code.zip, save to your BlueJ directory (probably c:\BlueJ), and unzip.
    e. Copy the resulting BlueJ_Code directory (folder) to your c:\BlueJ\JavaMBS directory (folder) 
    f.  The BlueJ Read-Me file
2. Running the Marine Biology case study:  
     1. Start up BlueJ, select the Project menu, and select Open Project
     2. Navigate to choose the c:\BlueJ\JavaMB\BlueJ_Code directory (which is a BlueJ package)
     3. Now select the Chaps1and2MBSGUI project and right-click on MBCSGUI icon
     4. If the Marine Biology Simulation window fails to appear, check the bottom of your screen for the
          Marine Biology Simulation
icon and click on it.
     5. From the Marine Biology Simulation window, select the File menu, and navigate to the
          BlueJ\JavaMBS\DataFiles directory (folder) and select manyFish.dat
     6. Now select Run and have a good laugh!
     7. For convenience, you may want to copy the DataFiles folder to your My Documents folder
         to facilitate the accessing of MBCS environment files each time you run the simulation.


All C++ project resource files are in jaye/Project:       
See item 6, commands you can add to your .bash_profile to facilitate the exchange
of files with your project teammates.

1. Emacs.txt (Helpful Emacs commands)
2. Compile.txt (Additional ways to control g++/gxx compile and link actions)
3. ANSIcodes.h (Cursor movement and clearing the screen on ANSI-compliant systems)
4. colors.h (Implementing screen colors on ANSI-compliant systems by Jiong)
5. Timer.hpp (Time functions by Gabe)
6. bash_profile (Commands you can add to your .bash_profile file)
    Consider adding these commands to facilitate interacting with your project teammates:
     a. umask 022  
         This grants your teammates read and execute privileges in your directory.
     b. alias cd4='cd /usr/local/classes/mcx2/jaye
         This enables you to switch to jaye directory by entering cd4
     c. alias cdSusan='cd /home/students/2002/USERNAME/APmarine2'
         If umask 022 is in Susan's .bash_profile, entering cdSusan switches a teammate
         to her APmarine2 subdirectory with read and execute privileges.
     d. alias cdBob='cd /home/students/2002/USERNAME/APmarine2'
     
   Makes Bob's APmarine2 subdirectory accessible in the manner cdSusan
        
does for her APmarine2 subdirectory.
  


MCX2 home