Bmis 312 You Are to Create a Java Application That Keeps Track of School Courses

In: Computers and Technology

Submitted By unnekulsom
Words 607
Pages 3
SOLUTIONSLIBRARY.COM

http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/

BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES
________________________________________
Purpose
This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment.
Assignment
You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students.
Course Class Properties and Behaviors
Properties or attributes
Instructor (1) of type Instructor
Students (5–10) array of type Student
Number of students
Average grade //in points using a 0–100 scale
Highest grade //in points using a 0–100 scale
Lowest grade //in points using a 0–100 scale
Behaviors or methods
Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students
Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes
Getter methods for Average, Highest, and Lowest grade attributes
Overload the Object toString method to print out the following:
Instructor: Title Firstname Lastname
Student Roster: //for each student print out first and last name, student ID, and grade
Number of students: __
Average grade: __
Highest grade: __
Lowest grade: __
Person Class Properties and Behaviors
Properties or attributes
First name
Last name
Behaviors or methods
Constructors
Default no-argument constructor…...

Similar Documents

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 You Are to Create a Java Application That Keeps Track of School Courses

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/ BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString......

Words: 607 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 Writing a Class That Uses the If/Else Statement

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/ BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString......

Words: 607 - Pages: 3

Bmis 312 Writing a Class That Uses the If/Else Statement

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/ BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString......

Words: 607 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 4

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-assignment-4/ BMIS 312 ASSIGNMENT 4 ________________________________________ Question 1 and 2 Lab 7-1 – Use the supplied ClockTest.java and DateTwoTest.java test classes to test your Clock and DateTwo classes respectively. Lab 7-2 – Use the supplied MonthTest.java test class to test the Month class you create. Question 3 Create a class with a one-dimensional array of primitive types. In this practice, you create an array containing the number of days that an employee at the Duke’s choice company receives, based on the number of years that the employee has worked for Duke’s choice. Question 4 Creating and populating an ArrayList Create a new java main class called NamesListTest. Create and work with an ArrayList Create 2 classes, NamesList and NamesListTest Add a method to the NamesList class to populate the list and display its contents Add a method to manipulate the values in the list Question 5 Using Runtime Arguments – write a guessing game that accepts an argument and displays an associated message. Create a class that: Accepts a runtime argument, Generates a random number, Compares the random number to the argument value, and Outputs a message to the user telling him/her if they correctly guessed the computer-generated number. Question 6 Create a Java class called student with the following instance variables: private String studentName; private int [] grades; //an......

Words: 535 - Pages: 3

Bmis 312 Assignment 7

...SOLUTIONSLIBRARY.COM HTTP://SOLUTIONSLIBRARY.COM/INDEX.PHP/BMIS-312-ASSIGNMENT-7/ BMIS 312 ASSIGNMENT 7 ________________________________________ Assignment 7 Instructions Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running. Assignment 7-1 (20 pts.): Oracle eKit Practice 13-1: Using a Try/Catch Block to Handle an Exception In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you: Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method. Create a class that calls that parse() method. Write a try/catch block to catch the exception thrown by parse(). See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment. Assignment 7-2 (30 points): Enhance Assignment 6-3 with Exception Handling and Deploy In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month......

Words: 303 - Pages: 2

Bmis 312 You Are to Create a Java Application That Keeps Track of School Courses

...SOLUTIONSLIBRARY.COM http://solutionslibrary.com/index.php/bmis-312-you-are-to-create-a-java-application-that-keeps-track-of-school/ BMIS 312 YOU ARE TO CREATE A JAVA APPLICATION THAT KEEPS TRACK OF SCHOOL COURSES ________________________________________ Purpose This project is designed to exercise all the Java tools that you have learned about this term: classes/objects, variables, decision constructs, loops, arrays, encapsulation, overloading, inheritance, error handling, and application deployment. Assignment You are to create a Java application that keeps track of school courses. Your Course class is composed of Persons of 2 types: Instructors and Students. A Course can only have 1 Instructor but it can have 5–10 Students. Course Class Properties and Behaviors Properties or attributes Instructor (1) of type Instructor Students (5–10) array of type Student Number of students Average grade //in points using a 0–100 scale Highest grade //in points using a 0–100 scale Lowest grade //in points using a 0–100 scale Behaviors or methods Constructor that allows all the following attributes to be initiated when a Course object is instantiated: Instructor and Number of Students Setter and getter methods for Instructor, Students (name the setter method for Students addStudent(Student) which adds a student to the Students array), Number of Students attributes Getter methods for Average, Highest, and Lowest grade attributes Overload the Object toString......

Words: 607 - Pages: 3