Explain encapsulation of data and methods

Assignment Help Programming Languages
Reference no: EM13302941

1) Explain the following three key concepts of object-oriented technology. Illustrate each one using examples.

a) Encapsulation of data and methods
b) Support for polymorphism
c) Inheritance within class hierarchies.

2) Explain the main practices in the following agile development methods:

a) Scrum
b) Extreme Programming (XP)
c) Crystal Clear

3) Write a use case for each of the following:

a) A borrower renews a book from an online library.
b) A buyer bids for an item on Ebay.
c) A seller wants to auction an item on Ebay.

4) This case study is based on The Pet Connection website at https://www.thepetconnection.com/index.htm. It will be used to discuss the questions related to the Inception Phase in the Unified Process (UP).

The Pet Connection was formed under a very simple premise: "To assist pet breeders and pet buyers in the process of finding the perfect pet." (https://www.thepetconnection.com/breeder/breeder_home.htm.)

The Pet Breeder service is designed to:
• Enable buyers to learn about specific breeds via our online pet knowledge base.
• Enable buyers to learn more about specific pet breeders.
• Allow buyers to obtain complete information about additional services provided by breeders.
• Allow buyers to view pet pictures along with other pertinent data on available pets.
• Determine pet availability on a local, regional and national basis.
• Provide a "pet search matching" service for pet buyers.

a) List down the initial use cases for the Pet Breeder service, and give a brief description for each use case identified.

b) The following list contains the artifacts the UP specifies for the inception phase:

Vision and business case
Use case model
Supplementary specification
Glossary
Risk list and risk management plan
Prototypes and proof-of-concepts
Iteration plan
Phase plan and software development plan
Development case

Based on the Pet Breeder case study, briefly describes the contents of each artifact with some examples. You may include diagrams in your discussion.

5) The questions below are based on the following scenario:

We wish to build a university module registration system. We want students to be able to browse and select among the entire undergraduate module offered in a semester. A student's selections are entered into his or her permanent record (transcript); each module is updated with an outcome at the close of the semester.

In registering for modules, each student fills out a schedule, with minimum and maximum number of modules determined by student category (e.g., part-time, honours, ordinary). Students considering a module can browse information about its teacher and a module abstract, as well as determine what prerequisites it has, when it meets and how many credits it is worth. A module selection is accepted if its prerequisites have been met, if it does not exceed the total allowed hours, and if its meeting time does not conflict with other modules on the student's schedule.

Tutors can use the system to monitor the registration process for the modules they have been assigned, to see how many students are currently registered for a module and who they are.

a) Draw a System Sequence Diagram for the Register Module use case.
b) Identify the conceptual classes.
c) Using the appropriate UML notation, draw the complete domain model showing the associations and attributes.

Reference no: EM13302941

Questions Cloud

What is the maximum mass for a climber : climbers attempting to cross a stream place a 345 kg log against a vertical frictionless ice on the opposite side the log log is inclined at 27 degree, what is the maximum mass for a climber and pack to cross without the log slipping
Determine the compositions and quantities of gas and liquid : Determine the compositions and quantities of gas and liquid when 1 lb mole of a mixture of 30 mole percent methane and 70 mole percent ethanol is brought to equilibrium at 0 F and 500 psia.
Strategy for a hot-and-spicy flavored chewing gum : You can choose only one distribution strategy for a hot-and-spicy flavored chewing gum.
Determine which method of extraction should be used : Ocean water contains 0.9 ounce of gold per ton. Method A costs $220 per ton of water processed and will recover 85% of the metal. Method B costs $160 per ton of water processed and will recover e of the metal.
Explain encapsulation of data and methods : Explain the following three key concepts of object-oriented technology. Illustrate each one using examples. a) Encapsulation of data and methods b) Support for polymorphism c) Inheritance within class hierarchies.
What is the new market value of the company : Again, Inc. is proposing a rights offering. Presently, there are 450,000 shares outstanding at $90 each. There will be 80,000 new shares offered at $84 each.
What is the angle for the third-order maximum : The first-order principal maximum produced by a grating is located at an angle of ? = 15.0 degrees. What is the angle for the third-order maximum
Estimate critical pressure of mixture of methane nd n-hexane : Estimate the critical pressure of a mixture of methane and n-hexane if the critical temperature of the mixture is known to be 200 F. Compare your answer with the critical pressures of pure methane and pure n-hexane.
Find the ratio of the filament areas of the bulbs : Light bulb 1 operates with a filament temperature of 2400 K, whereas light bulb 2 has a filament temperature of 1600 K. Find the ratio A1/A2 of the filament areas of the bulbs

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program using array to show fifo queue

Write program using any language which uses the array to demonstrate simple FIFO queue with 10 job entering the queue and 5 jobs removed from the queue by the server.

  Program to find sum-difference of two complex numbers

Program should ask user to enter two complex numbers and it automatically finds it sum, difference, coefficient, product conjugate.

  Program ask user to enter starting amount in savings account

There is a Savings and a Checking account. Your program should begin by asking the user to enter the starting amount in the checking and savings accounts.

  Sketch state diagram for machine using sw

Sketch the State Diagram for machine using any SW (i.e. MS Visio).: Print out your VHDL Code and Simulation waveforms for you design 3 Points: Print out your VHDL Code for your self-checking Test Bench

  Develop logic for program to read customer records

Develop the logic for a program that reads in 100 customer records and stores the first and last name and total purchases in three parallel arrays.

  Write program to read the size of side of square

Write a program that reads in the size of the side of a square and then prints a hollow square of that size out of asterisks (i.e., *) and blanks.

  Identify all the pure-strategy nash equilibria of game

Identify all of the pure-strategy Nash Equilibria of this game. Identify at least one mixed-strategy Nash Equilibrium, and show that it is a Nash Equilibrium.

  Creating class savingsaccount using static variable

Create class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders.

  Program with two functions to solve voting problem

Program with at least two functions to solve following problem. Members of board of small university are considering voting for pay increase for their 10 faculty members.

  Program to prompt teacher to input assignment number

The program must prompt teacher to input the assignment number. Score for student for that assignment will be displayed.

  Program to calculate area of two-dimensional shape

Implement the Shape hierarchy shown in following figure. Each TwoDimensionalShape should contain method getArea to calculate the area of the two-dimensional shape.

  Write iterative program which finds largest number

Write the iterative program which finds largest number of McNuggets which cannot be bought in exact quantity. Your program must print the answer in the following format.

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