In: Biology
DNA sequence may be used to identify different species. Assuming that you can use PCR to generate products for sequencing, describe in detail an experiment that will allow you to determine which strain of Salmonella has caused the more recent outbreak.
In: Biology
In: Anatomy and Physiology
A titration experiment is done with 1.37E-2 M NaOH to determine the acid concentration in 0.631 L of an unknown acidic solution. It was found that to reach the equivalence point 12.3 mL of strong base was needed. What was the pH of the original acidic solution?
In: Chemistry
(a) Schematically explain how size of a rock sample affects the strength of the rock in a triaxial experiment. (4.0 mark) (b) Using a schematic graph explain how different loading rates affect the elastic properties and strength of the rock. (4.0 mark)
In: Civil Engineering
Describe the Stanford prison experiment. What are your thoughts on it? (100 words minimum)
Describe Milgram’s study on obedience. What are your thoughts on it? (100 words minimum)
Describe the bystander effect. What are your thoughts on it? (100 words minimum)
In: Psychology
1- Write a class called MedicalStaff that is a Person (the class that you wrote in last lab). A MedicalStaff has specialty (i.e. Orthopedic, cardiology, etc.).
2- Then write two classes:
Doctor class has office visit fee.
Nurse class has title (i.e. RN, NP, etc.)
Both classes inherit from MedicalStaff.
Be sure these are all complete classes, including toString method.
3- Write a tester to test these classes and
their methods, by creating an array or ArrayList of
Person and adding different kinds of objects
(MedicalStaff, Doctor, Nurse) to it.
Now that you know polymorphism, you don't need to create specific
references for each object.
4- Print the list of Person items by calling toString method in a for-each loop.
The Person class was,
public class Person { // Decalring super class//
private String name; // attributes
private int birthYear;
public Person(String n, int y) {
this.name = n;
this.birthYear = y;
}
public Person() {
name = "";
birthYear = 0;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getbirthYear() {
return birthYear;
}
public void setbirthYear(int birthYear) {
this.birthYear = birthYear;
}
public String toString() {
return "Person [name=" + name + ", birthYear=" + birthYear +
"]";
}
}
In: Computer Science
In: Computer Science
(Java Problem)
Create a Produce class that have an instance variable of type String for the
name, appropriate constructors, appropriate accessor and mutator methods,
and a public toString() method. Then create a Fruit and a Vegetable class
that are derived from Produce. These classes should have constructors that
take the name as a String, the price (this is the price per box) as a double,
the quantity as an integer, and invoke the appropriate constructor from the
base class to set the name. Also, they should override toString method to
display the name of the produce, the price, and its type. For instance, Mango
is a Fruit and Cauliflower is a Vegetable.
Finally, create a class called TruckOfProduce that will keep track of the boxes
of Vegetables and Fruits added in to the truck. This class should use an array
of Produce to store both vegetables and fruits. Also, it should have the
following:
Constructor
that accepts an integer
to initialize the array of Produce
addProduce
method that
adds either fruit or vegetable
to the array
search
method that accepts
a name string
, which can be either the
name of a fruit or vegetable, and returns true if the name exists.
Otherwise, it returns false.
remove
method that accepts
a produce object
and returns true if the
produce is found and removed successfully. Otherwise, it returns false.
computeTotal
method that will return the total cost of all the produce
in the truck.
toString
method that returns all the produce from in the truck.
In: Computer Science
Create a class that will store all the information needed for a song. Your class will store the following data:
The class will have the following methods:
Your program should have a main that creates three song objects, places them into a vector and uses a for loop to "play" each of the songs using your play method.
In: Computer Science