Ask HR Management Expert

1. Create a class named CollegeCourse that includes data fields that hold the department (for example, ENG), the course number (for example, 101), the credits (for example, 3), and the fee for the course (for example, $360). All of the fields are required as arguments to the constructor, except for the fee, which is calculated at $120 per credit hour. Include a display() method that displays the course data. Create a subclass named LabCourse that adds $50 to the course fee. Override the parent class display() method to indicate that the course is a lab course and to display all the data. Write an application named UseCourse that prompts the user for course information. If the user enters a class in any of the following departments, create a LabCourse: BIO, CHM, CIS, or PHY. If the user enters any other department, create a CollegeCourse that does not include the lab fee. Then display the course data. Save the files as CollegeCourse.java, LabCourse.java, and UseCourse.java.

2. Write an application named UseInsurance that uses an abstract Insurance class and Health and Life subclasses to display different types of insurance policies and the cost per month. The Insurance class contains a String representing the type of insurance and a double that holds the monthly price. The Insurance class constructor requires a String argument indicating the type of insurance, but the Life and Health class constructors require no arguments. The Insurance class contains a get method for each field; it also contains two abstract methods named setCost() and display(). The Life class setCost() method sets the monthly fee to $36, and the Health class sets the monthly fee to $196. Write an application named UseInsurance that prompts the user for the type of insurance to bedisplayed, and then create the appropriate object. Save the files as Life.java, Health.java, Insurance.java, and UseInsurance.java.

3. Create an abstract class called Student. The Student class includes a name and a Boolean value representing full-time status. Include an abstract method to determine the tuition, with full-time students paying a flat fee of $2,000 and part-time students paying $200 per credit hour. Create two subclasses called FullTime and PartTime. Create an application that demonstrates how to create objects of both subclasses. Save the files as Student.java, FullTime.java, PartTime.java, and UseStudent.java.

1. The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if a list contains 1, 4, 7, 8, and 10, then the mean is 6 and the median is 7. Write an application that allows you to enter five integers and displays the values, their mean, and their median. Save the file as MeanMedian.java.

2. Revise the MeanMedian class so that the user can enter any number of values up to 20. If the list has an even number of values, the median is the numeric average of the values in the two middle positions. Save the file as MeanMedian2.java.

3. You wrote a program named MeanMedian that allows a user to enter five integers and then displays the values, their mean, and their median. Now, modify the program to throw an exception if an entered value is not an integer. If an exception is thrown, display an appropriate message and allow the user to reenter the value. Save the file as MeanMedianHandleException.java.

4. Write an application that displays a series of at least five student ID numbers (that you have stored in an array) and asks the user to enter a numeric test score for the student. Create a ScoreException class, and throw a ScoreException for the class if the user does not enter a valid score (less than or equal to 100). Catch the ScoreException, and then display an appropriate message. In addition, store a 0 for the student's score. At the end of the application, display all the student IDs and scores. Save the files as ScoreException.java and TestScore.java.

5. Create a file that contains your favorite movie quote. Use a text editor such as Notepad, and save the file as quote.txt. Copy the file contents, and paste them into a word-processing program such as Word. Save the file as quote.docx. Write an application that displays the sizes of the two files as well as the ratio of their sizes to each other. Save the file as FileStatistics2.java.

1) Create a program that accepts a series of employee ID numbers, first names, and last names from the keyboard and saves the data to a file. Save the program as WriteEmployeeList.java. When you execute the program, be sure to enter multiple records that have the same first name because you will search for repeated first names in part d of this exercise.

2) Write an application that reads the file created by the WriteEmployeeList application and displays the records. Save the file as DisplaySavedEmployeeList.java.

3) Write an application that extends JFrame and that displays a phrase in every font size from 6 through 20. Save the file as JFontSizes.java.

4) Write an application that extends JFrame and that displays a phrase upside down when the user clicks a button. The phrase is displayed normally when the user clicks the button again. Save the application as JUpsideDown.java.

HR Management, Management Studies

  • Category:- HR Management
  • Reference No.:- M91754980
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in HR Management

Question 1select one diagnostic model ie 6-box 7s

Question: 1. Select one diagnostic model (i.e., 6-box, 7S, congruence, or one of the others) to apply to the chosen companies. Choose the model that you and your team feel best identifies and measures the relevant aspect ...

Question compose a three page paper not including the title

Question: Compose a three page paper (not including the title and reference pages). Your paper should be written in a scholarly third-person tone; it should be in APA format. Your essay should address the following: 1. E ...

Question discuss a specific time when you observed a

Question: Discuss a specific time when you observed a contradiction between: (a) the core values that your organization espouses and (b) the values reflected by the organization's policies or leaders' decisions or action ...

Question in reading chapter 3 we learned about multiple

Question: In reading Chapter 3, we learned about multiple theories including Equity Theory, Expectancy Theory, and Goal-Setting Theory. Of these three process motivation theories, select one and discuss and critique it. ...

Question part 1 think about how to build teams in terms of

Question: Part 1: Think about how to build teams in terms of designing the task, selecting the people, and then, managing their relationships. How would compose a team for completing a course/work project in terms of the ...

Question option 1 big data and swot analysisresearch a

Question: Option #1: Big Data and SWOT Analysis Research a minimum of four articles on big data, its usefulness in healthcare, and achieving the goal of improving patient outcomes. Do a SWOT (strengths, weaknesses, oppor ...

Question option 1 annotated bibliographycreate an annotated

Question: Option #1: Annotated Bibliography Create an annotated bibliography by evaluating three articles written in the last five years on patient safety and the quality of patient care. Provide a conclusion that demons ...

Question when considering the home care scenario in the

Question: When considering the Home Care scenario in the Allied Health Community, how would you identify the qualifying criteria to receive the potential $5 raise? What type of matrix would you build to apply raises? Wou ...

Question first part first review chapter 4 and consider the

Question: FIRST PART !!! First, review chapter 4 and consider the role of an HR professional as it pertains to recruitment. What are the most critical aspects that should be handled in order to ensure an effective recrui ...

Question need these two questions answeredusing your

Question: Need these two questions answered Using your knowledge of the stages of life and career development, explain how the career issues of a 27-year-old differ from those of a 45-year-old. What are the organizationa ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As