ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 11 May 2017 My Price 9.00

CS141 programming II (java)Assignment 2Chapter 12

Q1: Briefly define the term Waterfall model? And list the phases of the development process in order they are done?  (5 points)

 

 

 

Q2: Fill in the table below by drawing the correct arrow that represent the relationship between classes? And Indicate Type of relationship: if it is an “IS-A”  or “HAS-A”, or “USES”  relationship  if applicable(5 points)

 

Relationship

Draw

Type of relationship

Inheritance

 

 

Interface Implementation

 

 

Aggregation

 

 

Dependency

 

 

 

 

 

 

 Q3: Given Question 5 from the previous Assignment1.   ( 10 points )

Draw the correct UML diagram to represent the relationships between all classes.

Add an Interface called Measurable and indicate in the diagram that the Employee class implements Measurable interface.

For each class in your diagram do the CRC card for each to indicate responsibilities and collaborators.

 

Measurable

 

 

             

 

 

 

 

Q4: Write and run the java program that computes the Factorial of a given number using a Recursive method.   ( 20 points )

 

Submit your program files as .java file that can be run. And submit in the document sample run for example given the value 4 the factorial is 24

 

 

Q5. What is the advantage and disadvantage of using recursion?  ( 5 points )

 

 

Q6. Briefly explain what is infinite recursion, and what causes it to happen? ( 5 points )

 

 

CS141 programming II (java)Assignment 2Chapter 12 – OODChapter 13 - RecursionAssignment 2worth 5 points, Due on 26/10/2016.Will deduct 1 point for each day late.Copying each other work will result in giving 0 to both.Q1: Briefy deFne the term Water±all model? And list the phases o± the development process in orderthey are done?(5 points)Q2: ²ill in the table below by drawing the correct arrow that represent the relaTonship betweenclasses? And Indicate ³ype o± relaTonship: i± it is an “IS-A”or “HAS-A”, or “USES”relaTonshipi±applicable(5 points)RelaTonshipDraw³ype oInheritanceInter±ace ImplementaTonAggregaTonDependencyQ3: Given QuesTon 5 ±rom the previous Assignment1.( 10 points )

Attachments:

Answers

(11)
Status NEW Posted 11 May 2017 06:05 AM My Price 9.00

-----------

Not Rated(0)