MINDTAPV2.0 JAVA PROGRAMMING 2021, 1TERM
MINDTAPV2.0 JAVA PROGRAMMING 2021, 1TERM
9th Edition
ISBN: 9780357505526
Author: FARRELL
Publisher: CENGAGE L
bartleby

Videos

Question
Book Icon
Chapter 5, Problem 7PE
Program Plan Intro

Job application

Program plan:

  • In a file “JobApplicant.java”, create a class “JobApplicant”,
    • Declare the necessary variables.
    • Define the constructor,
      • Assign the initial values for the job applicant.
    • Define the method “get_Name()”,
      • Return the name.
    • Define the method “get_Phone()”,
      • Return the phone number.
    • Define the method “get_HasWordSkill()”,
      • Return the Boolean value.
    • Define the method “get_HasSpreadsheetSkill()”,
      • Return the Boolean value.
    • Define the method “get_HasDatabaseSkill()”,
      • Return the Boolean value.
    • Define the method “get_HasGraphicsSkill()”,
      • Return the Boolean value.
  • In a file “TestJobApplicants.java”, create a class “TestJobApplicants”,
    • Define the method “main ()”,
      • Call the constructor “JobApplicant()” that instantiates several job applicant objects.
      • Assign the text messages.
      • Execute for “true” statement for the first applicant.
        • Call the method “display1()” with qualified message.
          • Otherwise, call the method “display1()” with non-qualified message.
          • Execute for “true” statement for the second applicant.
            • Call the method “display1()” with qualified message.
          • Otherwise, call the method “display1()” with non-qualified message.
          • Execute for “true” statement for the third applicant.
            • Call the method “display1()” with qualified message.
          • Otherwise, call the method “display1()” with non-qualified message.
          • Execute for “true” statement for the fourth applicant.
            • Call the method “display1()” with qualified message.
          • Otherwise, call the method “display1()” with non-qualified message.
    • Define the method “is_Qualified()” that accepts each job applicant properties,
      • Set the count to “0”.
      • Declare Boolean variable.
      • Declare the final variable.
      • Execute for the Boolean value at “word”,
        • Increment the count by “1”.
          • Execute for the Boolean value at “sp”,
            • Increment the count by “1”.
          • Execute for the Boolean value at “db”,
            • Increment the count by “1”.
          • Execute for the Boolean value at “gr”,
            • Increment the count by “1”.
          • Check whether the count is greater than or equal to minimum number of skills,
            • If it is true, set the Boolean value to “true”.
          • Otherwise, set the Boolean value to “false”.
          • Return the Boolean value.
    • Define the method “display1()”,
      • Print the output.

Blurred answer
Students have asked these similar questions
Using oop in java Create a class for Subject containing the Name of the subject and score of the subject. There should be following methods: set: it will take two arguments name and score, and set the values of the attributes. If score is less than 0 or greater than 100.0 then a message should be displayed “Incorrect score” and score should be set to Zero. set: it will take one double value as argument and set the value of score only. If score is less than 0 or greater than 100.0 then a message should be displayed “Incorrect score” and score should be set to Zero. display: it will display the name and score of the subject. Like “Name : Math, Score: 99.9” getScore: it will return the value of score. greaterThan: it will take subject’s object as argument, compare the calling object’s score with argument object’s score and return true if the calling object has greater score.
Static & Not Final Field: Accessed by every object, Changing Non-Static & Final Field: Accessed by object itself, Non-Changing Static & Final: Accessed by every object, Non-Changing Non-Static & Not Final Field: Accessed by object itself, ChangingRead the following situation and decide how the variables should be defined. You have a class named HeartsPlayerA round of Hearts starts with every player having 13 cardsPlayers then choose 3 cards to “trade” with a player (1st you pass left, 2nd you pass right, 3rd you pass across, 4th you keep)Players then strategically play cards in order to have the lowest scoreAt the end of the round, points are cumulatively totaled for each player.If one player’s total is greater than 100, the game ends and the player with the lowest score wins. 1. How should the following data fields be defined (with respect to final and static)?(a) playerPosition (These have values of North, South, East, or West)(b) directionOfPassing(c) totalScore…
__eq__(self, other):  Method that returns True if self and other are considered the same Flight: if the origin and destination are the same for both Flights. Make sure that if “other” variable is not a Flight object, this means False should be returned.    getFlightNumber(self):  Getter that returns the Flight number   getStart(self): Getter that returns the Plane Start    getgoingTo(self):  Getter that returns the Plane destination    isDomesticFlight(self):  Method that returns True if the flight is domestic, EX within a country (the Start and goingTo are in the same country); returns False if the flight is international (the Start and goingTo are in different countries)    setStart(self, origin): Setter that sets (updates) the Plane Start    setgoingTo(self, destination): Setter that sets (updates) the Plane GoingTo
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Memory Management Tutorial in Java | Java Stack vs Heap | Java Training | Edureka; Author: edureka!;https://www.youtube.com/watch?v=fM8yj93X80s;License: Standard YouTube License, CC-BY