Assignment 4 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 4-1 (10 pts.) – Lab Practice 7
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.
Assignment 4-2 (15 pts.) – Lab Practice 8
Lab 8-1 – Create a class with a one-dimensional array of primitive types.
Lab 8-2 – 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
Lab 8-3 – 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.
Assignment 4-3 (25 pts.)
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 a loop in conjunction with the if-statement(s) to do this efficiently. If a grade is out of bounds, setGrades() should set that grade value to 0. The array that you pass to setGrades() must hold between 3 and 5 grades.
Include a method called outputGrade() that averages
Related Documents: Assignment 4 Instructions 1 Essay examples
your current class modality. Academic Resources • Course Software Instructions • Check the Course Software link to see if this course requires additional software. We do not recommend trial software versions because they expire. SupportingMaterial • Course Software • Virtual Organizations Instructions • Access The Virtual Organizations link. SupportingMaterial • Virtual Organizations • The College of IS&T Website Instructions • Access the College of IS&T Website link. SupportingMaterial • The…
This file of POS 420 Week 5 Summary contains: Describe a topic from the lecture, readings or other assignments about which you have gained an improved or corrected understanding from that which you had prior to starting this course. Pick a topic that you are still struggling to grasp and share what you find difficult about that topic. Computer Science - General Computer Science POS 420 Week 1 UNIX® and Linux® Comparison Matrix Resources: University of Phoenix Material: UNIX® and Linux®…
Assignment Brief Module Title: Research Project Module Code: FB607 Assignment No/Title: Coursework 1 – Research Proposal Assessment Weighting: 5% Submission Date: Friday 11th October 2013 Feedback Target Date: Friday 1st November Module Co-ordinator/ Tutor: Catherine Elliott Degree/ Foundation Please specify Degree Submission Instructions: 1. Complete an Assignment Submission Form ensuring that you enter your correct ID number. 2. You are required to submit a hard copy…
SOC 300 Week 9 Assignment 2 Lending Institutions, Health Care, and Human Capital https://homeworklance.com/downloads/soc-300-week-9-assignment-2-lending-institutions-health-care-and-human-capital/ To Get this Tutorial Copy & Paste above URL Into Your Browser Hit Us Email for Any Inquiry at: Lancehomework@gmail.com Visit our Site for More Tutorials: ( http://homeworklance.com/ ) SOC 300 Week 9 Assignment 2 Lending Institutions, Health Care, and Human Capital Assignment 2: Lending Institutions…
Strategic Management Accounting Trimester 1, 2013 Assessment: Value of assessment: Due date: Word/Time limit Written Assignment 25% of final grade Monday 6th May 2013 at 12:00 noon 2,000 words Presentation 15% of final grade In-class presentation Week 8 - Week 12 15 minutes Choose an Australia company and undertake a strategic analysis of that company based on theoretical concepts, analysis tools and techniques covered in Topic 1 – Topic 5. Refer to Written Assignment and Presentation below for more information…
Instructions – Individual BPR Assignment High-Level Requirements: 1. This is an individual assignment, due as shown on the syllabus. After completing the assignment you are to submit the results in Moodle. 2. The assignment contains two parts: The first are the instructions (this document labeled Assignment 3 Instructions). The second is the answer template you are required to use and is labeled Assignment 3 Answer Template. The answer template contains both the problem statement and…
participation, research assignments, completion and final report. guest speakers, videos, etc. Thinking skills Group discussions, critical analyses, Homework assignments,…
ASSIGNMENT ONE MEDIA REPORT ANALYSIS (20%) Students are required to select one of media report from the three reports provided on Blackboard under the assessment folder. Students are required to identify and analyse the legal issues arising in their chosen report through answering a series of questions. Students need to apply a similar approach to that used in the Topic 1 case study, ‘The Coffee Shop’, to their chosen media report. Format of assignments Assignments cannot be handwritten…
1. Where can you locate the grading rubrics for all of your assignments? You can find the grading rubric for the assignment at the bottom of the page of the assignment itself. 2. What percent of your overall grade is the final project? Part 1 is for 18% and part 2 is only 2% for an overall of 20% 3. Where can you check to see if you have a Canvas email message from your instructor? By Clicking inbox in the top right corner of the page. 4. What is the highest grade that you can…
Assignment cover sheet Diploma courses Student Name Student ID Unit Name and Number 700002 Business Academic Skills Workshop Day and Time Workshop Tutor Title of Assignment Researching Section 1: Analyse the Question Length (Word Count) 50 Words Due Date In Week 4 Workshop Date Submitted Campus enrolment Declaration: (an examiner or lecturer/tutor has the right not to mark this assignment if the declaration below has not been made)…