Questions
Describe the results you would get back if you performed a Chip-Seq experiment for an E....

Describe the results you would get back if you performed a Chip-Seq experiment for an E. coli strain containing plasmid RK2, to investigate where DnaA-ATP binding occurs throughout the genome. Will you find sequences from multiple regions of the genome?

In: Biology

In a two-slit interference experiment, with a light source of unknown wavelength, the following data are...

In a two-slit interference experiment, with a light source of unknown wavelength, the following data are measured:

slit separation, d = 0.22 mm,

distance of slits from the screen, L = 2.39 m, (large enough that the small-angle approximation applies),

separation between the m =

In: Physics

A yellow compound is placed on a column and the column is eluted with hexanes. After...

A yellow compound is placed on a column and the column is eluted with hexanes. After a large volume of solvent has been collected but the yellow band is still at the top of the column. What should be done to recover the yellow compound? How could this experiment have been done better?

In: Chemistry

Hi I am confused a little about equations for constructive and destructive interference and also about...

Hi I am confused a little about equations for constructive and destructive interference and also about the difference in equations for diffraction and interference and also what equations we use for young's single slit experiment and double slit experiment.Can you please explain the difference??

In: Physics

Solve It Using MATLAB. Perform the experiment by changing the sampling frequency of the DAC block,...

Solve It Using MATLAB.
Perform the experiment by changing the sampling frequency of the DAC block, Keep the parameters of sine wave block constant (set samples per period = 96 and sample period = 96/1000) and observe that increasing the sampling frequency is improving the waveform structure.

In: Computer Science

Please read the business statement below and draw ER, NER. Business Statement: The project is about...

Please read the business statement below and draw ER, NER.

Business Statement:
The project is about developing an auction Web site. The details are as follows:

BA is an online auction Web site. People can buy and sell items in this Web site. Buyers are people who like to buy items, and sellers are people who like to sell items.

  • Each seller can sell items.

  • Each item has a bidding start time, an end time, and an owner. Sellers are owners of

    their item. The start time and end time include the date as well.

  • Each seller has a first name, last name, contact information, and credit card information. They also have a user name and a password.

  • Contact information consists of an address, an email, and a telephone.

  • An address consists of a street number and name, city, state, and zip code.

  • Credit card information consists of owner name, card number, and expiration date.

  • Each item has a name, condition, an initial price, a description, quantity, one or more pictures, and an owner.

  • The condition could be New, Refurbished, or Explained. If the condition of an item is set to Explained, the seller should explain about the item condition in the item description.

  • Each buyer has a first name and last name, contact information, and credit card information. They also have a user name and a password.

  • When buyers’ login to Web site, they can go to the list of all available items and then go to the item detail page. Buyers can also search for an item. The application will search through item names for the search phrase.

  • Buyers can bid on items. Once a bid is made, buyers are accountable for their bid. In other words, buyers cannot simply remove their bid. If they change their mind, all they can do is to update their bid with the price of zero. Of course, they can do that before the auction expires.

  • After an auction expires, the buyer with the highest bid is the winner.

In: Computer Science

uppose you have a pre-existing class Dieter that models a person trying to monitor diet and...

uppose you have a pre-existing class Dieter that models a person trying to monitor diet and weight to improve his/her Body Mass Index (BMI) rating. The class has the following data and behavior:

Field/Constructor/Method

Description

private String name

the dieter's full name, such as "John Smith"

private int height

the dieter's height, in inches

private int weight

the dieter's weight, in pounds

public Dieter(String name, int h, int w)

makes a dieter with given name, height, weight

public String getName()

returns the dieter's name

public int getHeight()

returns the dieter's height

public int getWeight()

returns the dieter's weight

public double getBMI()

computes the dieter's Body Mass Index (BMI), which is (weight / height2) · 703

public void gain(int pounds)

called when the dieter gains weight

public void lose(int pounds)

called when the dieter loses weight

Make Dieter objects comparable to each other using the Comparable interface.

You are just writing a compreTo method for the class and not any other method.

Write the compareTo method for the class Dieter using the following criteria.

  • Dieters are primarily compared by their BMI ratings;
  • a dieter with a lower BMI is "less than" one with a higher BMI.
  • If two dieters have the same BMI, the tie is broken by height; the shorter person is considered to be "less than" the taller one.
  • If two dieters have the same BMI and height, the tie is broken by name. The dieter whose name comes first in alphabetical order is considered "less than" the one whose name comes later in ABC order.
  • If the two dieters have the same BMI, height, and name, they are considered to be "equal." Your method should not modify any dieter's state. You may assume the parameter passed is not null  

In: Computer Science

This exercise requires designing a program which solves the problem described in the problem statement below....

This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments in your pseudo-code and Java program as necessary.

Your solution must include these components:

  1. UML Class diagram
  2. Flowchart
  3. Pseudo-code
  4. Program Coded
  5. Program Output

Problem Statement

Design a class named Pet, which should have the following fields:

  • name: The name field holds the name of a pet.

  • type: The type field hold the type of animal that a pet is (for example, “dog”, “cat”, “bird”)

  • age: The age field holds the pet’s age.

The Pet class should also have the following methods:

  • setName: the setName method stores a value in the name field.

  • setType: the setType method stores a value in the type field

  • setAge: the setAge method stores a value in the age field.

  • getName: the getName method returns the value of the name field.

  • getType: The getType method returns the value of the type field.

  • getAge: the getAge method returns the value of the age field.

Once you have designed the class, design a program that creates an object of the class and prompts the user to enter the name, type, and age of his or her pet. This data should be stored in the object. Use the object’s accessor methods to retrieve the pet’s name, type, and age and display this data on the screen.

Expected Output

Your results should be similar to the following:

Please enter the name of your pet: Maestro

Please enter the type of your pet: dog

Please enter the age of your pet: 8


The name of your pet is Maestro.

Maestro is a dog.

Maestro is 8 years old.

Submission

Submit your assignment as a Microsoft Word document (.docx) with all components in the one document. Once submitted, the answer will be revealed.

Grading

This practice problem is NOT graded. However, you must complete the practice problem and survey before your graded programming assignment problem will be revealed.

In: Computer Science

Run the program and enter domain names to validate. Note that even valid input is flagged...

  1. Run the program and enter domain names to validate. Note that even valid input is flagged as invalid.
  2. Change the program to validate a domain name. A valid domain name for this program has a second-level domain followed by a core gTLD. Run the program again.

    import java.util.Scanner;

    public class CoreGtldValidation {   
    public static void main (String [ ] args) {
    Scanner scnr = new Scanner(System.in);
    String coreGtld1;
    String coreGtld2;
    String coreGtld3;
    String coreGtld4;
    String inputName;
    String searchName;
    String theTld;
    boolean isCoreGtld;
    // FIXME: Add variable periodCounter to count periods in a domain name
    int periodPosition; // Position of the period in the domain name
    int i;

    coreGtld1 = ".com";
    coreGtld2 = ".net";
    coreGtld3 = ".org";
    coreGtld4 = ".info";
    theTld = "";
    isCoreGtld = false;
    periodPosition = 0;

    System.out.println("\nEnter the next domain name (<Enter> to exit): ");
    inputName = scnr.nextLine();

    while (inputName.length() > 0) {
    searchName = inputName.toLowerCase();
    isCoreGtld = false;

    // FIXME: Write a for loop using variable i to store in periodCounter
    // the number of periods in searchName. Store the position of the
    // period in periodPosition. If searchName has exactly one period
    // and searchName's first character is not a period, determine
    // whether searchName has a valid core gTLD by extracting the
    // domain name into variable coreGtld and comparing the name with
    // valid core gTLDs.

    // Extract the top-level domain name starting at the period's position.
    // Ex: If searchName = "example.com", the next statement extracts ".com"
    theTld = searchName.substring(periodPosition);

    if (theTld.equals(coreGtld1)) {
    isCoreGtld = true;
    }
    else if (theTld.equals(coreGtld2)) {
    isCoreGtld = true;
    }
    else if (theTld.equals(coreGtld3)) {
    isCoreGtld = true;
    }
    else if (theTld.equals(coreGtld4)) {
    isCoreGtld = true;
    }
    else {
    isCoreGtld = false;
    }

    System.out.print("\"" + inputName + "\" ");
    if (isCoreGtld) {
    System.out.println(" is a second-level domain followed by a core gTLD of \"" +
    theTld + "\"");
    }
    else {
    System.out.println("is not a second-level domain followed by a core gTLD.");
    }

    System.out.println("\nEnter the next domain name (or <Enter> to exit): ");
    inputName = scnr.nextLine();
    }
    }
    }

In: Computer Science

/* Problem 1 * Write and run a java program that prints out two things you...

/*      Problem 1
*       Write and run a java program that prints out two things you have learned
*   so far in this class, and three things you hope to learn, all in different lines. 
*/

You could write any two basic  things in Java.
/*      Problem 2
*       The formula for finding the area of a triangle is 1/2 (Base * height). 
*       The formula for finding the perimeter of a rectangle is 2(length * width). 
*   Write a program that prompts the user to enter the base and height of a triangle. 
*       The program then calculates the area of the triangle.
*       The program also prompts the user to enter the length and width of a rectangle.
*   The program then calculates the perimeter of the rectangle. 
*       Your code must print out: the base of the triangle, the width of the triangle, the area
*       of the triangle, the length of the rectangle, the width of the rectangle, and the area of the rectangle.
*       (5 Points.)
*/

/*      Problem 3
*       Write and run a java program that prompts you to enter your year of birth. 
*       The program then returns your age by subtracting your year of birth from the
*   current year. The program must print: You are x years old, where x is your 
*       age. You must import the scanner class (5 Points.)

/*      Problem 4
*       Write a java program that asks the user to enter her\his first name,
*       middle initial, last name, class name, letter grade, and GPA.
*       The program then prints out the above items as follows.
*       Line 1: Your name is first name, middle initial, last name.
*       Line 2: You are enrolled in class name
*       Line 3: You scored letter grade ... in class name
*       Line 4: Your GPA in class name is GPA

*       Hint: To read characters from the scanner, you should use this syntax:
*       String firstName = input.nextLine();

*       Note that you will use both String and double variable types.

* Note that we use Notepad ++ in our class for java and we also use cmd

In: Computer Science