SuperTutor

(15)

$15/per page/Negotiable

About SuperTutor

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

Expertise:
Accounting,Business & Finance See all
Accounting,Business & Finance,Economics,Engineering,HR Management,Math Hide all
Teaching Since: Apr 2017
Last Sign in: 327 Weeks Ago, 6 Days Ago
Questions Answered: 12843
Tutorials Posted: 12834

Education

  • MBA, Ph.D in Management
    Harvard university
    Feb-1997 - Aug-2003

Experience

  • Professor
    Strayer University
    Jan-2007 - Present

Category > Programming Posted 18 May 2017 My Price 9.00

explain why the code as show

I have attached the homework that I need help on.  Thanks in advance!!!

 

Homework 1InstructionsFor problems 1 through 4, explain why the code as shown is almost certainly not what theprogrammer intended, and how it should be fixed to work the way the programmer probably hadin mind.1. (10 pts) What is wrong with the following program and how should it be fixed?1  public class MyClassA {2    int v = 12;3 4    public MyClassA (int pV) {5      v = pV;6    } 7 8    public static void main (String args []) {9      MyClassA m = new MyClassA ();10   } // end main11 } // end class MyClassA2. (10 pts) What is wrong with the following program and how should it be fixed?1  public class MyClassB {2    int v = 12;3 4    public void MyClassB (int pV) {5      v = pV;6    } 7 8    public static void main (String args []) {9      MyClassB m = new MyClassB (23);10   } // end main11 } // end class MyClassB3. (10 pts) What is wrong with the following program and how should it be fixed?1   public class MyClassD {2     public static void main (String args []) {3       MyClassC m = new MyClassC (23);4     } // end main

Attachments:

Answers

(15)
Status NEW Posted 18 May 2017 01:05 AM My Price 9.00

-----------

Attachments

file 1495072560-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)