❤️ SOLUTIONS ON DISCORD Join my Discord server - / discord
Hello everyone, unfortunately Pearson, the publisher, is making it difficult to post the programming challenges because they're calling it a copyright infringement to use their questions on video even though I'm 100% using my solutions. Because of this, I'll be helping you by providing you with the complete solutions (with extensive comments) of the programming challenges (Python, Java etc) for a fee. If you need help, message me on Discord for a breakdown of each of the chapter questions and their cost.
❤️ Need help with code? Join my Discord server - / discord
❤️ Other playlists
Programming challenges - Starting out with Python, • Programming challenges - Starting out...
Programming challenges - Starting out with Java, • Programming challenges - Starting out...
Learn Python, • Learn Python
Learn Java, • Learn Java
Learn PHP, • Learn PHP
Learn Unix, • Learn Unix
Learn Git, • Learn Git
Website of the Day, • Website of the Day
Tech how tos - • Tech How Tos
❤️ Need help with code? Join my Discord server (Paid programming challenges solutions, programming classes and more) / discord
-----------------------------------------------------------------------------------------------------
Starting out with Java: From control structures through objects
Chapter 6
Programming Challenges
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. Employee Class
Write a class named Employee that has the following fields:
• name. The name field references a String object that holds the employee’s name.
• idNumber. The idNumber is an int variable that holds the employee’s ID number.
• department. The department field references a String object that holds the name of the department where the employee works.
• position. The position field references a String object that holds the employee’s job title.
The class should have the following constructors:
• A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee’s name, employee’s ID number, department, and position.
• A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee’s name and ID number. The department and position fields should be assigned an empty string ("").
• A no-arg constructor that assigns empty strings ("") to the name, department, and position fields, and 0 to the idNumber field.
Write appropriate mutator methods that store values in these fields and accessor methods that return the values in these fields. Once you have written the class, write a separate program that creates three Employee objects to hold the following data:
Name ID Number Department Position
Susan Meyers 47899 Accounting Vice President
Mark Jones 39119 IT Programmer
Joy Rogers 81774 Manufacturing Engineer
The program should store this data in the three objects and then display the data for each employee on the screen.
Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 396). Pearson Education.
Kindle Edition.
Thanks 😊