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 27 May 2017 My Price 9.00

Create a class namedBloodData

  • Question1*********
  • Create a class namedBloodDatathat includes fields that hold a blood type (the four blood types: O, A, B, and AB) and an RH factor (the factors are + or -). Create a default constructor that sets the fields to "O" and "+", and an overloaded constructor that requires values for both fields. Include get and set methods for each field. save the file asBloodData.java. Create an application namedTestBloodDatathat demonstrates each method works correctly. Save the application asTestBloodData.java.
  • Create a class named Patient that includes an ID number, age, andBloodData. Provide a default constructor that sets the ID number to 0, the age to 0, and theBloodDatato "O", and "+". Create an overloaded constructor that provides values for each field. Also provide get methods for each field. Save the file as Patient.java. Create an application that demonstrates that each methodsworks correctly , and save it asTestPatient.java.
  • Question2*********
  1. Create a class namedCirclewith fields namedradius,diameter, andarea. Include a constructor that sets the radius to 1 and calculates the other two values. Also include methods namedsetRadius()andgetRadius(). ThesetRadius()method not only sets the radius, it also calculates the other two values. (The diameter of a circle is twice the radius, and the area of a circle ispimultiplied by the square of the radius. Use theMathclassPIconstant for this calculation.) Save the class asCircle.java.
  2. Create a class namedTestCirclewhosemain()method declares severalCircleobjects. Using thesetRadius()method, assign oneCirclea small radius value, and assign another a larger radius value. Do not assign a value to the radius of the third circle; instead, retain the value assigned at construction. Display all the values for all theCircleobjects. Save the application asTestCircle.java.
  • Question3*********

Suppose you have created a class named Employee. Further suppose that you have an application that declares the following:

final Employee myEmployee = new Employee();

Can myEmployee’s fields be altered?

Answers

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

-----------

Attachments

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