Ask Computer Engineering Expert

Submit your solution document in the form of a single MS Word file on or before the cut-off date shown above.

Important notes:

1. Please use the symbols, notations and naming conventions introduced in the course.

2. For questions in this TMA that require coding answers, marks are allocated for good programming practice such as:
- using indentation to reflect the structure of the code;
- using parentheses, where appropriate, to make code more readable;
- supplying appropriate method comments;
- using appropriate programming constructs to produce a neat and efficient solution;
- complying with the naming conventions introduced in the course;
- effective reuse of available methods.

Question 1

You should be able to answer this question once you have studied Unit 2 (The Object- Oriented Approach) and Unit 4 (Modularity) of the course notes. The objectives of this question are:
- to analyse a simple set of requirements for their classes and attributes;
- to explain the object-oriented approach in system analysis and design
o to explore the issue of "thing versus property";
o to describe the concepts behind modular software design;
o to recognize an inheritance hierarchy;
o to implement a generalization relationship.
- to construct basic class diagrams in system analysis.

Notebook Computer Servicing Pte Ltd owns four notebook servicing centers. A notebook serviced by a service center belongs either to an individual or a corporate body registered with the service center. Each service center employs several technicians to carry out the servicing.

Notebook Computer Servicing requires a system to support its administrative functions as follows:

- Given the location of a service center, the system will provide the name, contact number and qualifications of each technician currently employed by the service center.

- During peak seasons, the company employs part-time technicians to assist the full- time technicians and these part-time technicians are paid on an hourly rate and the system needs to keep track of the number of hour worked.

- In response to an enquiry on corporate customers, the system will, for each service center, provide a list containing the business name and email address of each company registered with that service center. For each such company, the system will list the brand, model and serial numbers of all notebooks serviced by the service center.

- Given the location of a service center, and the service number of a servicing that it had carried out, the system will provide the date of the servicing and the serial number of the notebook that was serviced. If the notebook is owned by an individual, the system will provide the name and phone number of that person; otherwise, it will provide the name of the company that owns the notebook. For a major servicing, the system will also provide details of the parts changed in the servicing, and the name of all technicians who participated in that servicing.

Analyze the above case description, and answer the following questions:

(a) Identify the classes, and their respective attributes, from the above description, using the tabular format in Table Q1(a) below:

Class

Attribute(s)

 

 

 

 

(b) Identify the class hierarchy or hierarchies among the classes, naming each class appropriately. Discuss why there should be such a hierarchy or hierarchies with reference to the case description.

(c) Explain whether there should be any abstract class(es) in the class hierarchies or hierarchies in (b) above.

(d) Draw a UML diagram(s) to depict the class hierarchy or hierarchies. Show the attributes (including their respective visibilities and data types) for each class. You need not include the methods.

(e) Write Java code to implement the Customer class. Include the instance variables, constructors (with necessary parameters), the setter and getter methods, and the toString() method.

(f) Notebook Computer Servicing Pte Ltd offers a discount of 10% and 20% to individual and corporate customers respectively.

(i) Explain how this could be provided in the system.
(ii) Write Java code in the classes concerned to implement this.

Question 2

You should be able to answer this question once you have completed Study Unit 3. The objective of this question is to understand the choice and characteristic of collection classes. For each of the following situations,
- write down the name of the collection class you think is most suitable model;
- give a brief justification for your choice;
- write Java code to create an instance of the collection class you have chosen, assign it to a suitably named variable, and add the example elements given in the description of the collection.

(a) A registrar needs to organize the attendees of a course in alphabetical order. As participants register for the course, they are placed automatically in ascending order of their names. Mary Jane, John Doe and Ali Ahmad are the first 3 participants to register for the course

(b) The patrons waiting at a very popular eatery are given a queue number upon arriving at the eatery when all the tables are occupied. The eatery may serve patrons in a sequence that does not follow the queue number due to special reasons (eg premium member, or different sized table available etc). The patrons are called by a number displayed at the waiting area. The first 3 families waiting for a seat are the Lees, the Wongs and the Tans.

(c) An online shopping site wants to keep track of its members and their delivery address. At any point in time, when the member makes payment, the system can automatically retrieve the delivery address. "Mary" (userID mary77) living at "67 Jalan Perminpin", "Jane" (userID prettyGal88) living at "64 Woodlands Drive" and "John" (userID johnXYZ) living at "8 Sims Drive" are three members of the online site.

Question 3

You should be able to answer this question after you have studied Study Unit 6 (User Interface Design Principles) and Unit 8 (User Interfaces Development). The objectives of this question are:

- to understand the use of scenarios;
- to apply the design principles for user interfaces.

A MediaCorp's online service, which you could visit at the following link: http://www.toggle.sg/en/.

Three widgets are circled and labelled A, B and C.

2075_Figure.jpg

The rights of toggle.sg is hereby acknowledged.

After exploring what each of these three widgets can do, describe and discuss:
- its visibility;
- its affordance;
- its feedback for the operations you carried out with it (note that feedback from activating the widget is different from any feedback provided by the resulting action);
- how each of the above aspects could be improved;
- the effect of prior similar experience of the user when interacting with the user interface.

Question 4

You should be able to answer this question after you have studied Study Unit 9 (Use Cases). The objectives of this question are:
- to analyze specified system requirements;
- to construct use case models in systems analysis.

Uni Institution is a new private institution that is involved in running full-time diploma courses, part-time diploma courses and short industrial courses.

Uni Institution intends to develop a system to track its activities (such as classes, class sessions etc), enrolments, revenues and expenses (such as lecturers' remunerations). Uni Institution directors are able to generate financial reports to view revenues and expenses of the institution.

The system allows lecturers to view all the available courses for the up-coming semester and subsequently if they feel that they can commit to the schedule of the course, indicate their availability. Once the course has been assigned to the lecturer, the lecturer is able to view and if they prefer, print the course student list.

The list of diploma courses and short courses are available to the general public for viewing. Students can register for courses with the institution or get the registrar to do so on their behalf. They will then have their particulars (name, contact information, health condition, injury history, etc.) recorded, and their names added to a mailing list. They are also asked to sign an undertaking to indemnify Uni Institution from injury liability.

Students can choose between 2 modes of payment. The payment modes are:
- One time deduction
- Giro deduction

For Giro deduction, the system needs to clear the payment with the bank system.

The system should help the registrar to develop the content for a course, schedule the course, and assign a lecturer to each course.

The registrar handles and records students enrolling with the institution, attending classes, and making payments. In addition, the registrar also maintains the lecturers and students information.

Construct a use case diagram for the application (notice that there is a generalization hierarchy among the actors).

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91972016

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As