Styles Voice Part 1: 1. Create a Java project named Lab28A. 2. Create a secondary class...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Styles Voice Part 1: 1. Create a Java project named Lab28A. 2. Create a secondary class for something that you will instantiate objects from. We have made Employee, Student, Customer, Gadget, etc. objects in the past. Yours needs to be something new and different. It should have at least 3 instance variables to describe the object, with one of them being a key value like ID, name, or something similar. 3. As you did in Chapter 24 create a MyQueueNode class and MyQueue class to make a queue of objects from scratch (not using any premade Java data structures). 4. Create a text file with data for 10 objects of the class you created in step #2. 5. Read the data in and create an array of these objects to start with. (They should not be in a sorted order.) Print the array (with a label). 6. Write a function to sort this array and call it in the main class after you fill the array with the objects. Add comments to the function to state which type of sort you are using 7. After the array has been sorted, add the objects to your queue (using the enqueue method). 8. Print your queue. 9. Comment each section of your code, so that I can see where you are doing each of these steps. Note: You will need to submit the Lab28A input text file along with your code, so that I can test it. Part 2: 1. Create a Java project named Lab288. 2. Create a secondary class for something that you will instantiate objects from. It needs to be something new and different. (Also different from the one above.) It should have at least 3 instance variables to describe the object, with one of them being a key value like ID, name, or something similar. I 3. As you did in Chapter 24 create a MyStackNode class and MyStack class to make a stack of objects from scratch (not using any premade Java data structures). 4. Create a text file with data for 10 objects of the class you created in step #12. 5. Add the objects to your stack (using the push method). 6. Use the pop method to remove each object from the stack in the correct order and print them as you do. 7. Comment your code as you did above Note: You will need to submit the Lab28B input text file along with your code, so that I can test it. Styles Voice Part 1: 1. Create a Java project named Lab28A. 2. Create a secondary class for something that you will instantiate objects from. We have made Employee, Student, Customer, Gadget, etc. objects in the past. Yours needs to be something new and different. It should have at least 3 instance variables to describe the object, with one of them being a key value like ID, name, or something similar. 3. As you did in Chapter 24 create a MyQueueNode class and MyQueue class to make a queue of objects from scratch (not using any premade Java data structures). 4. Create a text file with data for 10 objects of the class you created in step #2. 5. Read the data in and create an array of these objects to start with. (They should not be in a sorted order.) Print the array (with a label). 6. Write a function to sort this array and call it in the main class after you fill the array with the objects. Add comments to the function to state which type of sort you are using 7. After the array has been sorted, add the objects to your queue (using the enqueue method). 8. Print your queue. 9. Comment each section of your code, so that I can see where you are doing each of these steps. Note: You will need to submit the Lab28A input text file along with your code, so that I can test it. Part 2: 1. Create a Java project named Lab288. 2. Create a secondary class for something that you will instantiate objects from. It needs to be something new and different. (Also different from the one above.) It should have at least 3 instance variables to describe the object, with one of them being a key value like ID, name, or something similar. I 3. As you did in Chapter 24 create a MyStackNode class and MyStack class to make a stack of objects from scratch (not using any premade Java data structures). 4. Create a text file with data for 10 objects of the class you created in step #12. 5. Add the objects to your stack (using the push method). 6. Use the pop method to remove each object from the stack in the correct order and print them as you do. 7. Comment your code as you did above Note: You will need to submit the Lab28B input text file along with your code, so that I can test it.
Expert Answer:
Answer rating: 100% (QA)
Heres the best way to solve it Expertverified Share Please find the java code implementation below Employeejava public class Employee implements Comparable Employee private String lastName private Str... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Give Jacobson et al.s definition of a component.
-
The following are events experienced by a company in the past fiscal year and some common ratios used to analyze company performance. Instructions For each independent event listed in column (1)...
-
Rilke Healthcare Co. has a target capital structure of $30 million debt, $15 million preferred stock, and $55 million common equity. The company's after-tax cost of debt is 7.0%. The cost of...
-
The flowrate per unit width in a wide channel is \(q=\) \(2.3 \mathrm{~m}^{2} / \mathrm{s}\). Is the flow subcritical or supercritical if the depth is (a) \(0.2 \mathrm{~m}\), (b) \(0.8...
-
The University of Chicago Press is wholly owned by the university. It performs the bulk of its work for other university departments, which pay as though the press were an outside business...
-
Steam is generated at a pressure of 8MPa and leaves the steam generator at 450C. After the expansion to 700 kPa, the steam undergoes reheat and expands again in a low-pressure turbine. the condenser...
-
Broncos Corp. manufactures wooden frames with the bronco medallion for framing the college degrees awarded by Western Michigan University. Each Bronco frame sells for $150 and requires: 5 linear...
-
A loose spiral spring carrying no current is hung from a ceiling. When a switch is thrown so that a current exists in the spring, how do the coils move? A) closer together B) farther apart C) not at...
-
If an organizations top management visits a firm in another industry to learn more about its excellent record in hiring and promoting visible minority and female candidates, this is an example of...
-
When a supervisor working alongside an employee corrects him or her when a mistake is made, this is an example of________ control. (a) feedforward (b) concurrent (c) internal (d) clan
-
Among the ways information technology is changing organizations today, ____________ is one of its most noteworthy characteristics. (a) eliminating need for top managers (b) reducing information...
-
What are the advantages of a limited partnership form of small business ownership?
-
The functional chimneys problem occurs when people in different functions ____________. (a) fail to communicate with one another (b) try to help each other work with customers (c) spend too much time...
-
From the following particulars, calculate the cost of running a taxi per kilometre: 1. Number of taxis 10 2. Cost of each taxi Rs 2,00,000 3. Salary of manager Rs 6,000 p.m. 4. Salary of accountant...
-
Evaluate the function at the given value(s) of the independent variable. Simplify the results. (x) = cos 2x (a) (0) (b) (- /4) (c) (/3) (d) ()
-
When you use recursion, you frequently ask a method to call itself repeatedly, _________________. a. Increasing the complexity of the problem with each call b. Using a simpler version of the problem...
-
In the method header public static boolean(int age), age is a(n) _____. a. Argument b. Parameter c. Return value d. Final value
-
Which assignment is correct in Java? a. Char aChar = 5.5; b. Char aChar = "W"; c. Char aChar = '*'; d. Char aChar = $;
-
Why is macroeconomic forecasting so difficult? Does this difficulty mean economics is a worthless field of study?
-
Which of the following statements are positive in nature and which are normative? a. A tax cut will raise interest rates. b. A reduction in the payroll tax would primarily benefit poor and...
-
a. Calculate the total percentage growth in average labor productivity in the U.S. economy for the 1950s, 1960s, 1970s, 1980s, 1990s, and 2000s. Define average labor productivity for any year as real...
Study smarter with the SolutionInn App