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:
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.
-
Condensed data from the income statement for Fleetwood Corporation follow: Instructions (a) Using vertical analysis, calculate the percentage of the base amount for each year. (b) Comment on three...
-
Consider the assignment problem having the following cost table. (a) Draw the network representation of this assignment problem. (b) Formulate this problem as a transportation problem by constructing...
-
What is the primary purpose of admission-seeking questions?
-
Customer profitability and ethics. Snark Corporation manufactures a product called the snark, which it sells to merchandising firms such as Snark Republic (SR), Snarks-R-Us (SRU), Neiman Snark-us...
-
6. What %A, %B, and %C are represented by the black dot in the drawing ==> ? (Figure out real number values using the lever rule and a ruler.) A C b a C B
-
On December 31, the trial balance indicates that the supplies account has a balance, prior to the adjusting entry, of $320. A physical count of the supplies inventory shows that $90 of supplies...
-
Cardinal Inc., which has a fiscal year end of December 31, granted 1,000 stock options to its CEO as a form of compensation on January 1, 20X1 (exercise price = $50). When the options were issued...
-
Interview a healthcare leader. Ask her what the leader of an organization can do to encourage learning and innovation. Find out how the organizations executives encourage strategic thinking...
-
The order of magnitude budget estimate you created during chartering is deemed by your sponsor to cost far more than your organization is willing to spend on your project. What are your options as a...
-
How should we tailor project work? a. to the organization only b. to both the organization and the project itself c. to the project only d. project work is prescribed and should not be tailored
-
What is the major difference between perfect competition and monopolistic competition?
-
Write a two-page paper describing the differences and interactions between strategic thinking and strategic management. Address why many leaders often fail to think strategically. Include experiences...
-
Price Corporation acquired 100 percent ownership of Saver Company on January 1, 20X8, for $109,600. At that date, the fair value of Saver's buildings and equipment was $15,000 more than the book...
-
For Problem estimate the change in y for the given change in x. y = f(x), f'(12) = 30, x increases from 12 to 12.2
-
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 = $;
-
Wagons and Wheels Ltd is a farm machinery dealership. In recent years, the company has experienced unsatisfactory profit results because of declining sales in the area. At the suggestion of the...
-
Quick Brekkie Ltd is evaluating three comparable investments. Summary data for the three investments, each of which would be paid for in current dollars, are listed below. Required Rank the three...
-
Phone Screens and Computer Screens are two divisions operated as investment centres of Siciliano Ltd. Management wants to know which of the two earned the highest return on investment for the year...
Study smarter with the SolutionInn App