Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Part A)

Question: Make a Student inheritance hierarchy. This must comprise the given requirements:

i) Make the Student class. Student can be the super class and an abstract class. At least one method on Student will be abstract.

ii) Student class holds the attributes first name, last name, student ID, GPA, status and mentor. All the attributes will be inherited by subclasses.

iii) Prepare suitable overloaded constructors for the super class, Student.

iv) Student has an abstract method, calculateTuition(), that can be implemented in the subclasses Undergraduate, Graduate and Part-time, making use of the polymorphism principle.

v) Prepare the subclasses Undergraduate, Graduate, and Part-time, that inherits from the Student class. Every subclass will encapsulate the specialization of Student.

vi) Prepare an abstract method, update(). Whenever this method is called, the database entry for the student is updated.

vii) Prepare an abstract method, add() method. Whenever this method is called, the database entry for the student is made.

viii) Prepare an abstract method, delete(). Whenever this method is called, the database entry for the student is deleted.

ix) Prepare an abstract method, query(). Whenever this method is called, a query is made to the database to retrieve the information and is then printed to the screen.

Question: Create subclasses. This must comprise the given requirements:

i) Prepare the subclass Undergraduate that inherits from Student. Undergraduate has the additional attribute, "level" (freshman, sophomore, junior, senior).

ii) Prepare the subclass Graduate, which inherits from Student. Graduate has additional attributes, "thesisTitle", and "thesisAdvisor".

iii) Prepare the subclass Part-time that inherits from Student. Part-time students are working adults. Part-time students have an attribute, "company" that is the name of their sponsoring employer.

iv) Incorporate the method of information hiding by making suitable attributes private and creating getters and setters to access and modify each and every private attribute.

v) Prepare overloaded constructors for each Student type. The super class constructor must be used by each and every subclass's constructors to set such attributes found in the super class. Prepare adequate constructors for each class to initialize the instance variables (attributes) of an object, either by initial values passed into the constructor or default values employed if none is passed in. All values passed in must be verified for validity.

Question: Implement the given methods using polymorphism. This must comprise the given requirements:

i) Implement calcuateTuition() method as shown:

• Status of resident: undergraduate tuition = number of credit hours 200
• Status of nonresident: undergraduate tuition = number of credit hours 400
• Status of resident: undergraduate part time = number of credit hours 250
• Status of nonresident: undergraduate part time = number of credit hours 450
• Status of resident: graduate = number of credit hours 300
• Status of nonresident: graduate = number of credit hours 350

ii) Student objects must know how to show the information. Override the toString() method on each subclass. Use inheritance to display attributes given by super class by calling super.toString() method.

Question: Override the given methods. This must include the given requirements:

i) For each subclass, implement method query(). Whenever this method is called, a query is made to the database to retrieve the information and then the information is printed to the screen. If proper, use toString() within the print() method.
ii) For each subclass, implement method update(). Whenever this method is called, the database entry for the student is updated.
iii) For each subclass, implement method add() method. Whenever this method is called, the database entry for the student is made.
iv) For each subclass, implement method delete(). Whenever this method is called, the database entry for the student is deleted.

Question: Make an application that tests the given requirements:

i) Application has to allow the user to add, update, delete, and query any student type.

Note: The application may have a graphical user interface (GUI) or can be run from the command prompt. It have to be clear how to use the application. Prompts must be clearly worded and mechanics of the prompt or receive input should work well. If essential, give a short user manual that explains how to use the application.

Part B: Prepare UML Use Case Diagrams which could be inserted into a Software Requirement Specification (SRS) document which captures all functional needs for this application. Use the task description in part A to elicit the needs. You will only be needed to document the functional needs and provide Use Case diagrams. You don't have to complete a complete SRS document.

Question: Document the functional requirements with UML use case diagrams for each requirement.

For each functional requirement give the following:

• Requirement number and title.
• Description of the functionality.
• Input.
• Results of processing or output.
• Error handling or recovering requirements outlined.
• UML use case diagrams (It is very important that your UML use case diagrams are complete and proper UML 2.0 Modeling notation is used).

Part C: Make UML Class and Sequence Diagrams which could be inserted into a Software Design Specification (SDS) document. (It is very significant that your UML diagrams are complete and proper UML 2.0 Modeling notation is used. Your design should be an object-oriented design.) You will only be needed to submit the class and sequence diagrams and not have to complete a SDS document.
Question: Your UML Diagrams must comprise the following:
a) Comprehensive Class Diagrams: Show all classes and all relationships among all classes. These must comprise the following:

• Relationships: Your object oriented design will require you to diagram all class relationships using correct UML 2.0 Modeling notation that minimally comprises:
- Inheritance
- Association Relationships
• Multiplicity: Note any multiplicity in the relationships (example: 1-1, 1-many, and so on) using correct UML 2.0 Modeling notation.
• Attributes: For each and every class, all attributes with types (example: int, double and so on) and access control (example: private, public, protected) need to be noted using proper UML 2.0 Modeling notation.
• Methods: Methods with signatures and access control must be given. All methods have to be indicated, comprising all constructors, setters and getters.
• Abstract Classes and Interfaces: Any abstract classes and interfaces employed in your design should be properly indicated by using UML 2.0 Modeling notation.
b) Sequence Diagrams: Model the object interactions needed for each functional scenario. For each Use Case provided in the functional requirements section, at least one sequence diagram must be given to model the interaction between the objects within the application.

Part D: Develop a test plan which includes test cases which test all functional requirements of the system.

Note: The test plan is on the whole approach to how the application will be tested. The test cases are the steps a tester will take to test a single behavior. Pass/Fail criteria need to be given for each test case; all test cases must have been run, and the Pass/Fail section must be completed. For each functional requirement, one or more test cases must be provided.
Note: All compiler and runtime errors should be corrected before you submit. Your application must correctly satisfy all requirements. Your application must have passed all test cases before being submitted for evaluation.

1) The test plan must comprise at least the following sections:
• Title Page.
• Introduction: Brief description (suggested length of 1-2 paragraphs) of the application under test.
• Overview of Testing Strategy: See part D1a.
• Resource Requirements: Discuss hardware and software required to complete the test plan.
• List of Features to Test: A simple table is sufficient. If features are numbered, the feature number can be used in your test cases.
• Acceptance Criteria: Identify the standards that must be met when considering if the application is ready for release. In your case, this means that the application should be ready to be submitted for grading.
• Test Cases: Should be submitted as an appendix to the test plan
a) In the "Overview of Testing Strategy" section, compare white box testing, black box testing, unit testing, and integration testing and how they can be used to verify your application.
• Identify which testing strategy you will use.

2) Execute the test plan, comprising running all test cases.
a) Discuss the results of each test case in the "Test Cases" section. (A Pass/Fail value should be indicated as a result for each test case.)

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M9132376
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in Programming Language

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

  • 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