Question: Could I get this in Java, please? Section 2: 1. Enter the comment with the section title as described above. 2. The app from section

Could I get this in Java, please?

Could I get this in Java, please? Section 2: 1. Enter the

comment with the section title as described above. 2. The app from

Section 2: 1. Enter the comment with the section title as described above. 2. The app from section 1 needs a means to check to see how many of each model CarDealz already has on the lot so that the buyers do not create a glut of any one model. In this section, you will create a dictionary named inventoryCount that will use the car model as the key and the inventory quantity as the value. 3. Populate your dictionary with the following values: 4. Print to the console a blank line and the statement, "Section 2: Inventory Count." 5. Using the methods available in the dictionary class, display the current number of each model in the inventoryCount dictionary. Section 3: 1. Enter the comment with the section title as described above. 2. You are thinking of adding array lists for different work weeks to the CarDealz app because not all employees work the same days of the week. Create an arraylist called DaysofWeek and add all the days of the week to it. 3. Print to the console the statement, "Section 3: Days of the Week." 4. Using a loop, display the days from the arraylist. 5. Using a loop, display the days from the arraylist in reverse order. 6. Create a second arraylist called WorkDays and copy the DaysofWeek arraylist to it. 7. Delete "Saturday" and "Sunday" from the WorkDays arraylist. 8. Print the contents of WorkDays. Section 4: 1. Enter the comment with the section title as described above. 2. There is further discussion about features to be added to the CarDealz app at a later time. You think it is best that you get some practice with stacks and queues as you think you will likely need them. 3. Print to the console the statement, "Section 4: Stack." 4. Create a stack. 5. Using your stack, push the following values: 10,24,31,45,19,76 6. Using methods of the stack class, print a message telling how many items are on the stack. 7. Pop three items off of the stack and repeat your printed message telling how many items are in the stack. 8. Display the next item in the stack to be popped. Section 5: 1. Enter the comment with the section title as described above. 2. Print to the console the statement, "Section 5: Queue" 3. Create a queue. 4. Using your queue, enqueue the following values: 10,24,31,45,19,76 5. Using methods of the queue class, print a message telling how many items are on the queue. 6. Dequeue three items off of the queue and repeat your printed message telling how many items are in the queue. 7. Display the next item in the queue to be dequeued

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!