Models checkout lines at a supermarket

Assignment Help JAVA Programming
Reference no: EM13975542

Java programmingT1. Write a program that models checkout lines at a supermarket; you have to use one of the data structures being covered in the lectures and explain why your choice of the data structure is well justified. Several lines of customers should be displayed. You can add a new customer by pressing a key. You'll need to determine how the customer will decide which line to join. The checkers will take random amounts of time to process each customer (presumably depending on how many groceries the customer has.) Once checked out, the customer is removed from the line. For simplicity, you may simulate the passing of time by pressing a key. Perhaps every key-press indicates the passage of one minute. (Java may have more sophisticated ways to handle time.)

Submit the source code that you have created to complete the assignment, but not the existing library code (e.g., library code related to data structures and associated algorithms); specify the

origin of the library code you used (e.g., the textbook website) in the report The report should also contain the text that explains and discusses your work:

1. It should be easily comprehensible to anyone who has taken a module on Data Structures and Algorithms. 2. One of the main purposes is to convincingly demonstrate that you understand what you are presenting.

3. It should be self-contained as much as possible and, thus, should contain the key code fragments rather than merely referring to the submitted full source code.

4. Discuss any (potential) limitations or weakness of your work and how you would improve if you have more time. Discussing the weakness would not negatively count towards your

mark. It is a recommended practice

Reference no: EM13975542

Questions Cloud

Problem regarding the test the potential customer : Given the longevity of the vendor's bulbs and the test the potential customer will be carrying out, what is the prob- ability that the vendor will get the contract?
Relationship b/w the housing market and monetary policy : The topic is the Alan Greenspan's monetary policy regarding the housing market. I only want to focus on the relationship bwtween the housing market and monetary policy (or the Federal Funds rate). This is an opinion paper, and the audience should ..
Problem regarding the psychic phenomenon : Given the probability you've calculated, would you suggest that Donald drop his plan to list himself in the yellow pages as a psychic phenomenon?
Find the magnitude of the force on the bottom right wire : Find the direction of the force that on the bottom left wire due to the other two wires. Specify the angle from the +x-axis going counter-clockwise (see figure on right).Find the magnitude of the force on the bottom left wire due to the other two ..
Models checkout lines at a supermarket : Java programmingT1. Write a program that models checkout lines at a supermarket; you have to use one of the data structures being covered in the lectures and explain why your choice of the data structure is well justified. Several lines of customers ..
Determine the equivalent annual revenue : Determine the equivalent annual revenue in years 1 through 9 at an interest rate of 10% per year and what is the future worth of the savings and Is the cost of the solar project justified by the savings?
What is the impact on its finances : Determine if the company has introduced new products in existing markets or created new markets over time. What is the impact on its finances?
Consumer relations representative : The students are surprised when they weigh the contents of their four pack- ages and find the average weight to be only 11.5 ounces. When they write to the company, its consumer relations representative explains that "the contents of the ‘12- ounc..
Consumer relations representative : The students are surprised when they weigh the contents of their four pack- ages and find the average weight to be only 11.5 ounces. When they write to the company, its consumer relations representative explains that "the contents of the ‘12- ounc..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Displays the calendar for the current month

Prepare a program that displays the calendar for the current month. You will use the Prior and next buttons to show the calendar of the previous or next month.

  Write java program to store employee id number

Use employee data file called employees.txt should comprise at least 5 employee records. Each record stores employee ID number (six digits) last name, first name, middle inital,gender(m or f).

  An infix to postfix method for my java program.

an infixToPostFix method for my java program. The method must work with stacks and it should take a string as parameter. The method should be able to convert to postfix mathematic expressions such as: (12 + 4) - 23(9-6)/12. Treat the parenthesis as l..

  Implement a java program that generates the receipt

Create a Receipt class that could be used by an automobile parts store. Items to include as data members are receipt number date of purchase, customer number, customer name and address, customer phone number, item number, description, unit price, ..

  Write the code1 one argument used to justify the fact that

write the code1. one argument used to justify the fact that the stack data structure in the standard library does not

  Write a program deal that takes an integer and prints

Write a program Deal that takes an integer, save it in "kHands" from the keyboard and prints kHands poker hands (five cards each hand) from a shuffled deck, separated by blank lines Screenshot of the program and hands.

  Picky publishing house publishes stories

Picky Publishing House publishes stories in three categories and has strict require- ments for page counts in each category. Create an abstract class named Story that includes a story title, an author name, a number of pages, and a String message. In..

  Write the logical expression in postfix notation.

Given symbols p, q, r, and s for propositions. Draw the binary tree representation of the logical expression ((p || r) && ! p ) || s) && (q || r). Write the logical expression in postfix notation.

  Write a java application that reads a file containing text

Write a Java application that reads a file containing text. Your program should read each line and display it on the console screen preceded by line numbers.

  Programming exercises

Modify the rain program in Listing 10.7 so that it does the calculations using pointers instead of subscripts. (You still have to declare and initialize the array.)

  Qr codes are a popular way

QR codes are a popular way to encode data for easy reading by computerized cameras. True QR codes contain error correction, format specifiers, version information, and a size variable layout that makes them harder to decode and process

  Write a program that displays a frame window w pixels wide

Write a program that displays a frame window W pixels wide and H pixels high. Use the Scanner to enter the values for W and H. The title of the frame is also entered by the user.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd