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: 10 Weeks 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 09 May 2017 My Price 8.00

diagrams defined in the UML Standard

Hi! I really need help with the attached assignment.. Thanks in advance!!!!

 

1. (10 pts) What are the diagrams defined in the UML Standard.Give a one or two sentencedescription of each one.2. (10 pts) Given the following code, how should the toString methods in the classes H2ClassAand H2ClassB be written to give the indicated output and take advantage of the natural toStringmethod in H2ClassB?1  import java.util.ArrayList;2 3  public class H2ClassA {4    ArrayList <H2ClassB> list = new ArrayList <H2ClassB>();5 6    public static void main (String args []) {7      H2ClassA y = new H2ClassA ();8      int [] v = {4, 3, 7, 5, 99, 3};9      for (int m: v) 10       y.list.add (new H2ClassB (m));11     System.out.println (y);12   } // end main13 14 } // end class H2ClassA15 16 class H2ClassB {17   int x;18   H2ClassB (int a) { x = a;}19 } // end H2ClassBOUTPUT:4 3 7 5 99 33. (10 pts) How can the following code be corrected?Give at least two good answers.1 public class H2ClassC {2   H2ClassC (int a) {}3 } // end class H2ClassC4 5 class H2ClassD extends H2ClassC{6 } // end class H2ClassD

Attachments:

Answers

(11)
Status NEW Posted 09 May 2017 03:05 AM My Price 8.00

-----------

Attachments

file 1494301112-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)