Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Where appropriate, objects should be copied on insertion. [4 marks] (ii) Describe a sequence of events that would allow external modification of an object stored

Where appropriate, objects should be copied on insertion. [4 marks] (ii) Describe a sequence of events that would allow external modification of an object stored within an IntListArray, despite correct copying on insertion. How could this be addressed in IntListArray? [3 marks] (iii) By adding protected void add(Object o) {mArray.add(o);} to the ConstrainedArray class, the mArray field can be made private. Show how this would affect your IntListArray class and discuss the advantages of the change from protected to private. [5 marks] 1. This project requires the use of MS Access and Excel. If you are using a Mac or Apple computer, Microsoft does NOT have a version of Access for the Apple platform. There are 2 workarounds for students who are in this situation.a. You can come to campus and complete the assignment using campus labs. b. You can contact UNO Campus Computing and check out a UNO laptop for use in completing this assignment. If you would like to check out a computer, please contact the instructor as soon as possible, so that a checkout computer can be arranged. 2. There are 5 files on Canvas related to this assignment. The first is a MS Word document (these instructions). Two other files are data files that you will need to download as part of this assignment, an Excel file and a text file. Finally, there are 2 instruction files; one for Tables and the E-R diagram, and the other for Queries. The Excel spreadsheet is named Access Data.xls, and contains 2 sheets that provide Product and Customer data. The text file is named sales.txt, and obviously contains sales data. Do NOT open these files from inside Canvas, because that may cause problems later.a. Download and save (Save As Option) the Excel file to your computer. b. Download the text file to your computer by right-clicking on the file icon, and then choosing Save As as a means to save the file locally. 3. Make a Blank Database. Note: If possible, you need to use MS Office 365 or MS Access version 2016. Access 2013 or earlier versions might also work, but if you use earlier versions I may have to convert to Office 365, which could cause problems with your data structures (Tables and Queries). The labs on campus are loaded with Office 365.a. The solutions in parts (a) and (b) both involve a get() method returning an Object reference. (i) Explain why this is bad practice. [1 mark] (ii) Propose an alternative solution for a constrained array of Integer or LinkedList objects (only) that addresses this issue. [5 marks] 4 CST.2016.1.5 4 Object-Oriented Programming (a) Using example Java code, distinguish between overloading, overriding and shadowing when applied to Java methods. (e) Give a brief and rudimentary clarification of the standards of how the language coming about because of part (b) may be utilized to a sentence structure analyser taking a token stream as information (by means of calls to work lex()) and giving as result an theoretical language structure tree relating to part (d). (f ) Summarize any issues connected with left-or right-cooperative administrators in the two methods (in executing the parser and in developing the apparatus) you illustrated to some degree (e).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials Of Business Research Methods

Authors: Joe F. Hair, Michael Page, Niek Brunsveld

4th Edition

0367196182, 978-0367196189

More Books

Students also viewed these Programming questions

Question

Am I surfing to avoid feelings of loneliness, stress, or a nger?

Answered: 1 week ago

Question

Evaluate the integral, if it exists. Jo y(y + 1) dy

Answered: 1 week ago