Bmis 312 Assignment 4

In: Business and Management

Submitted By alexmicane4
Words 535
Pages 3
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 array of grades
Include setter and getter methods to set and get these 2 properties. The setter method for the grades instance array variable — setGrades() — should take a single argument which is an array of int with the grades already filled in. setGrades() should be used if statement(s) to make sure that each grade value in the array parameter is valid (between 0 and 100) — you will need to use…...

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 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 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

Soc 312 Week 4 Assignment

...This archive file comprises SOC 312 Week 4 Assignment Sociology - General Sociology Bronfenbrenner’s Ecological Model . Your text uses Bronfenbrenner's ecological model to explain how children's development is affected by different groups within their world. Using this theory, we can understand how children are socialized both intentionally and unintentionally. You must understand how this theory applies to your own upbringing as well as a young child's upbringing in order to truly comprehend the concept. After reading the text and the “Bronfenbrenner’s Ecological Systems Theory” article, use your understanding of this theory to respond to the questions below. Using Bronbenbrenner's ecological model, respond to the following questions: a. How did the microsystem that you grew up in differ from your parents’ or grandparents’ microsystems? Do you think this is a detrimental or an affirmative change to society as a whole? b. How do you think technology, specifically social media, influences a child's mesosystems? Agents of Socialization . Agents of socialization include parents, siblings, extended family, community, culture, economic environment, religion, child care, school, teachers, peers, formal organizations, sports, mass media, and technology. In an ideal world, these agents would complement one another in order to best influence a child's development. Choose three of the above agents and discuss how these agents can have both a positive and......

Words: 344 - Pages: 2

Soc 312 Week 4 Assignment Bullying Change

...SOC 312 Week 4 Assignment Bullying Change To Buy this Class Copy & paste below link in your Brower http://www.homeworkregency.com/downloads/soc-312-week-4-assignment-bullying-change/ Or Visit Our Website Visit : http://www.homeworkregency.com Email Us : homeworkregency@gmail.com SOC 312 Week 4 Assignment Bullying Change To Buy this Class Copy & paste below link in your Brower http://www.homeworkregency.com/downloads/soc-312-week-4-assignment-bullying-change/ Or Visit Our Website Visit : http://www.homeworkregency.com Email Us : homeworkregency@gmail.com SOC 312 Week 4 Assignment Bullying Change To Buy this Class Copy & paste below link in your Brower http://www.homeworkregency.com/downloads/soc-312-week-4-assignment-bullying-change/ Or Visit Our Website Visit : http://www.homeworkregency.com Email Us : homeworkregency@gmail.com SOC 312 Week 4 Assignment Bullying Change To Buy this Class Copy & paste below link in your Brower http://www.homeworkregency.com/downloads/soc-312-week-4-assignment-bullying-change/ Or Visit Our Website Visit : http://www.homeworkregency.com Email Us : homeworkregency@gmail.com SOC 312 Week 4 Assignment Bullying Change To Buy this Class Copy & paste below link in your Brower http://www.homeworkregency.com/downloads/soc-312-week-4-assignment-bullying-change/ Or Visit Our Website Visit : http://www.homeworkregency.com Email Us : homeworkregency@gmail.com SOC 312 Week 4 Assignment Bullying......

Words: 1452 - Pages: 6

Soc 312 Week 4 Assignment Bullying Change, Dqs, Journal and Quiz

...SOC 312 Week 4 Assignment Bullying Change,DQs,Journal and Quiz Purchase here http://chosecourses.com/soc-312-week-4-assignment-bullying-changedqsjournal-and-quiz Description SOC 312 (Child Family and Society) Week 4 Week 4 DQ 1 Cultural and Linguistic Differences Listen to the Cultural and Linguistic Differences podcast from The IRIS Center, or view the transcript. Consider what Donna Ford has to say about prejudice and stereotyping. Discuss how educators can positively influence a school-age child to not hold biases or prejudices against others. Give an example of how you can create a community of learners who support one another by fostering positive attitudes. Give an example of how you could teach your students the importance of acceptance. Your post must address the children in the concrete operational stage. Week 4 DQ 2 Bullying Bullying is a prevalent issue during middle childhood. Watch following video, The Power of One – School Video Sample. Choose one of the situations presented: Diego, Timmy, or Kendra. Briefly describe the situation. Offer suggestions that can be put into place by the teacher, school, and the parents (at least one for each). Use the following resources to support your response: Bullies: What is Bullying Stopbullying Week 4 Assignments: SOC 312 Week 4 Bullying…Change (700+ Words) SOC 312 Week 4 Journal Private or Public Bully SOC 312 Week 4......

Words: 1375 - Pages: 6

Soc 312 Week 4 Assignment Bullying Change

...SOC 312 Week 4 Assignment Bullying Change To Buy This material Click below link http://www.uoptutors.com/SOC-312-ASH-NEW/soc-312-week-4-assignment-bullying-change Read the following essay, written by Antonio, a fourth-grade student. The Bully in the Mirror Antonio, 4th Grade Mirror Mirror on the wall why must I be the Bully that has to fall. I beat on kids around the school The mirror told me it wasn’t cool. The mirror told me to change. My ways I have beat up kids all by days. I have no friends. It’s just not right. The mirror said cause you like to fight. I am a bully how could this be. The mirror is starting to Change me. Reflections are now flashing back to me. Someone plant the seed inside of me. Now the mirror has shown me poor. I’ll change my ways and start new days the bully is no more part of me. Any bully can change. Antonio obviously wants to make change.  As a fourth grader, it is almost impossible to do this alone.  Therefore, he has handed this writing piece to you, his teacher.  Understanding that this transformation involves far more than you and Antonio, you will devise a plan to help him change his history and be a good person. Devise a game plan for Antonio’s change: Share two lessons or activities that can be completed with the whole class.  The lessons should focus on the importance of awareness and bully prevention.  Describe the activities and how these lessons will benefit the class as a whole. List one idea showing how the class......

Words: 481 - Pages: 2

Soc 312 Week 4 Assignment Bullying Change

...SOC 312 Week 4 Assignment Bullying Change To Buy This material Click below link http://www.uoptutors.com/SOC-312-ASH-NEW/soc-312-week-4-assignment-bullying-change Read the following essay, written by Antonio, a fourth-grade student. The Bully in the Mirror Antonio, 4th Grade Mirror Mirror on the wall why must I be the Bully that has to fall. I beat on kids around the school The mirror told me it wasn’t cool. The mirror told me to change. My ways I have beat up kids all by days. I have no friends. It’s just not right. The mirror said cause you like to fight. I am a bully how could this be. The mirror is starting to Change me. Reflections are now flashing back to me. Someone plant the seed inside of me. Now the mirror has shown me poor. I’ll change my ways and start new days the bully is no more part of me. Any bully can change. Antonio obviously wants to make change.  As a fourth grader, it is almost impossible to do this alone.  Therefore, he has handed this writing piece to you, his teacher.  Understanding that this transformation involves far more than you and Antonio, you will devise a plan to help him change his history and be a good person. Devise a game plan for Antonio’s change: Share two lessons or activities that can be completed with the whole class.  The lessons should focus on the importance of awareness and bully prevention.  Describe the activities and how these lessons will benefit the class as a whole. List one idea showing how the class......

Words: 481 - Pages: 2