academic program class java 1

The AcademicProgram Class

The AcademicProgram class is what is called a super class.

  1. The attributes (use encapsulation)
    1. String name;
    2. int minimumNumberOfCredits;
    3. ArrayList<Course> requiredCourses;
  2. two constructors
    • one complete with all parameters, one for each attribute
    • one with no parameters
      • the default values should be
        • name – blank String (no spaces)
        • minimumNumberOfCredits – 0
        • requiredCourses – a new ArrayList<Course>
  3. a toString() method that will display information about the object
    • you can use the Netbeans automatic builder format
  4. The “get/set” methods
    • no special requirements.

The app Class

Create and display an AcademicProgram object with 3 courses (see below).

name: “Special Studies in Cyber Security”

minimumNumberOfCredits: 9

courses: 3 Course objects

  1. using the default/no parameter constructor
  2. using these values
    1. name – “Cyber”, “100”, “h”
    2. genEd – “IL” (the GenEd object returned with the find method in GenEdData)
    3. description – “Computer Systems Literacy”
    4. credits_min_per_course – 3
    5. credits_max_per_course – 9
    6. credits_maximum – 99
    7. preReq – use the default constructor for CourseName
    1. name – “CYBER”, “262”, “”
    2. genEd – “GS” (the GenEd object returned with the find method in GenEdData)
    3. description – “Cyber-Defense Studio”
    4. credits_min_per_course – 3
    5. credits_max_per_course – 9
    6. credits_maximum – 99
    7. preReq – “Cyber”, “100”, “”

Displaying

  • display the name and minimumNumberOfCredits
  • display each course in a single line
    • use the special string sequence “n” to add a new line to the display

Below a sample output (including part of the necessary code in app)

lab06_new_output.png

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational