CSC8016: Advanced Programming Coursework, NU, Malaysia We want to implement a virtual shopping system, whether the threads are either clients using the web app
| University | Newcastle University (NU) |
| Subject | CSC8016 : Advanced Programming |
We want to implement a virtual shopping system, whether the threads are either clients using the web app or clients buying products on the physical shop using the mobile app. The lifecycle of any client interaction is summarised by ClientLifecycle: Each client interacts with the shop through
the RainforestShop via the login method, through which each client can add items to its basket and perform re-shelving operations.
Each client can get a list of available items at the time of the query, basket a given product by name, (re)shelf the product (thus removing it from the basket), checkout, and proceed with the payment (thus either buying all the items on the basket or none of those entirely), and logging out of the system while losing the information of all the items being previously put in the basket from the real/virtual shelf.
Each time an allowed user logs in, a non-empty transaction will be created with a unique transaction ID. The unavailability of the product shall be confirmed not while basketing the items, rather than after purchasing those. At this stage, the shop supplier might be notified that some products are missing and refurbish the show with a non-zero amount of products of the same type. For simplicity’s sake, the refurbishWithItems method will be in charge of creating the number of desired products and placing them on the shelf.
As in any industrial setting where teams split up the duties, you are assigned an API that you need to implement. This will then require finalizing the implementation of RainforestShop and the integration of concurrency
mechanisms in ProductMonitor; the Transaction class shall not be changed! The Testing solves a twofold task: showing how Clients, Suppliers, and the Shop system are communicating, as well as providing some preliminary guidelines on how the coursework is going to be assessed.
The student is free to choose whichever is the best way to pass the tests (not fully disclosed to the students) in the Testing class. E.g., the RainforestShop could be either modeled as a finer-grained monitor, but inside this monitor at least one thread per logged user should be running; also, such a Rainforest Shop could be also implemented as consumer threads handling all of the client’s messages.
Get Help By Expert
Are you finding it difficult to tackle the requirements of your Advanced Programming Coursework? Fear not, Assignment Helper MY is here to assist you. Our dedicated team of writers understands the intricacies of programming and can provide you with the necessary guidance and support to excel in your coursework. So, without any hesitation get Programming Assignment Help at a low price.
Recent Solved Questions
- Teacher Trainees Thesis, UON, Malaysia Teaching English as A Second Language provides trainee teachers with various language theories
- PHYSIOTHERAPY Assignment, MU, Malaysia Mrs. Spoon is a 48-year-old woman who works part-time as a kindergarten assistant come to physiotherapy clinic with the history of Pain
- BMBR5103: Business Research Methods Assignment, OUM, Malaysia Leadership styles and performance of academic staff in the education industry in Malaysia
- CT127-3-2-PFDA Retail Data Analytics Assignment: Customer Ratings Case Study for R-Based Insight Generation
- Medical Surgical Nursing Assignment, IMUM, Malaysia Explain the pathophysiological basis of altered functions of the renal, integumentary, immune, eastro-intestmal
- SBFS1103: Thinking Skills and Problem Solving Report, OUM, Malaysia You are required to write a report about your own personal problem and propose a solution to the problem
- BBUN2103: BUSINESS LAW Assignment, OUM, Malaysia Evaluate the circumstances that occur prior to the formation of a contract that may impair the validity of the contract.
- Biostatics Assignment, SU, Malaysia A company claims that its new manufacturing process results in a mean weight of 60 grams for a certain product
- GT20903 Financial Markets and Institutions BNM May 2023 Rate Hike and Stock Returns
- Telecommunications Research Paper, APU, Malaysia Based on an article from Outlook India dated August 2022, experts believe that 5G technology is the perfect technology