Questions
1. Determine if the following describes a binomial experiment. If not, give a reason why not:...

1. Determine if the following describes a binomial experiment. If not, give a reason why not:

Five cards are randomly selected with replacement from a standard deck of playing cards, and the number of aces is recorded.

2. Determine if the following describes a binomial experiment. If not, give a reason why not:

Two cards are randomly selected without replacement from a standard deck of playing cards, and the number of kings (K) is recorded.

3. Determine if the following describes a binomial experiment. If not, give a reason why not:
Toss a 6-sided die until a "2" is observed.

4. Determine if a Poisson experiment is described, and select the best answer:

Suppose we knew that the average number of typos in our statistics text was 0.08 per page. The author knows that he is much more likely to make a typo on a page that has many mathematical symbols or formulas compared to pages that contain only plain text. He would like to know the probability that a randomly selected page that contains only text will contain no typos.

In: Statistics and Probability

Internet Programming Project #4:  XML, Schema and XSLT 1.   Write a complete XML file named textbooks.xml, in which...

Internet Programming

Project #4:  XML, Schema and XSLT

1.   Write a complete XML file named textbooks.xml, in which you describe at least a partial list of the textbooks you are using this semester. You should include at least two distinct textbooks. If you are using only one text this semester, expand your list to cover the current academic year.

Your description of each book must include the title, author(s), publisher, year of publication, and the ISBN. For each author, specify the first and last name as distinct values. Include both a name and website for the publisher. Optionally, try also to include any book-specific website (especially if it is distinct from the main publisher site, and if its URL is not ridiculously long). Finally, specify the edition and cover type (paperback or hardcover) of each book you are using. Make sure your final XML document is well-formed.

2.  Write an XML Schema that can be used to validate textbooks.xml and name it textbook.xsd . Finally, remember to modify your new XML document so that it references your schema.

3. Develop an XSL Stylesheet for easy viewing of your textbook list and name it textbook.xsl

In: Computer Science

( A cohort n = 23 ) of hemohilliacs is followed to elicit information of time...

( A cohort n = 23 ) of hemohilliacs is followed to elicit information of time to onset of AIDS following seroconversion ( referred to as latency time) The mean latency for this cohort is 5.0869 years- with the sample standard deviation = 2.5569?
assume normal distribution what is 95%CI for the mean

In: Statistics and Probability

Identify the degree and cardinalities of the relationship. - Draw the corresponding E-R diagram. Don’t forget the degree and cardinalities of each relationship.

For each of the following descriptions: - Identify the degree and cardinalities of the relationship. - Draw the corresponding E-R diagram. Don’t forget the degree and cardinalities of each relationship.

1 . A book is identified by its ISBN number, and it has a title, a price, and a date of publication. It is written by one or multiple authors. Each author is identified by an author number and has a name and date of birth. Each author has either one or multiple books. Occasionally, it is possible that prospective authors who have not yet published any books.

2. The book described above can be part of a set, which is also identified as a book and has its own ISBN number. One book can belong to several sets, and a set consists of at least one but potentially many books

3. A piano manufacturer wants to keep track of all the pianos it makes individually. Each piano has an identifying serial number and a manufacturing completion date. Each piano represents exactly one piano model, all of which have an identification number and a name. The manufacturer usually produces several pianos from a single model and each model is used to make at least one piano. A piano model is created by a single designer. It is important for the manufacturer to maintain information about the designer name and identifying them using an identification number. Note that while a designer can send multiple model to the manufacturer, some of the designers stored in the database have not sent any model yet.

In: Operations Management

Consider the following schema: Publisher (name, phone, city), PK: name. Book (ISBN, title, year, published_by, previous_edition,...

Consider the following schema:

Publisher (name, phone, city), PK: name.

Book (ISBN, title, year, published_by, previous_edition, price), PK: ISBN, FK: published_by refs Publisher, previous_edition refs Book.

Author (SSN, first_name, last_name, address, income), PK: SSN.

Write (aSSN, bISBN), PK: (aSSN, bISBN), FK: aSSN refs Author, bISBN refs Book.

Editor (SSN, first_name, last_name, address, salary, works_for, book_count), PK: SSN, FK: works_for refs Publisher.

Edit (eSSN, bISBN), PK: (eSSN, bISBN), FK: eSSN refs Editor, bISBN refs Book.

Author_Editor (aeSSN, hours), PK: aeSSN, FK: aeSSN refs Author, aeSSN refs Editor.

Give SQL statements for the following plain English language queries based on the above schema.

Hint: You may use views to hold intermediate results.

  1. Show the number of books published in 2008 versus the number of books published in 2009 for every publisher. The result should have the following four columns: publisher_name, book_count_08, book_count 09, percentage of increase from 2008 to 2009

2. Provide an SQL UPDATE statement that updates the book_count field of the Editor table by computing the number of books edited by each editor using nested queries. (10 pts)

3. For each publisher, find the title of the book that it publishes with the largest number of editors. The output should have two columns - one is the publisher’ name and the other is the title of the book found.

In: Computer Science

Liza dela Cruz is a plain housewife with maid. Her height is 5'4inches. Compute for her...

Liza dela Cruz is a plain housewife with maid. Her height is 5'4inches.

Compute for her

a. DBW

b. TER

c. FEL

d. Diet Planning

In: Nursing

Prove that (((p v ~q) ⊕ p) v ~p) ⊕ (p v ~q) ⊕ (p ⊕...

Prove that (((p v ~q) ⊕ p) v ~p) ⊕ (p v ~q) ⊕ (p ⊕ q) is equivalent to p ^ q. Please show your work and name all the logical equivalence laws for each step. ( v = or, ~ = not, ⊕ = XOR)

Thank you

In: Computer Science

How do I use the meta element to sepicify your name as the document author and...

How do I use the meta element to sepicify your name as the document author and as kansas and elections as key words for web search engines?

How do I create semantic link in the document head linking this document to the office of the kansas secretary of state at the following address: ( http://www.kssos.org/elections_statistics.html ) use the property attribute value of external for the link.

In: Computer Science

/* * Assignment: #3 * Topic: Identifying Triangles * Author: <YOUR NAME> */ package edu.depaul.triangle; import...

/* 
 * Assignment: #3
 * Topic: Identifying Triangles
 * Author: <YOUR NAME>
 */

package edu.depaul.triangle;

import static edu.depaul.triangle.TriangleType.EQUILATERAL;
import static edu.depaul.triangle.TriangleType.ISOSCELES;
import static edu.depaul.triangle.TriangleType.SCALENE;

import java.util.Scanner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * A class to classify a set of side lengths as one of the 3 types
 * of triangle: equilateral, isosceles, or scalene.
 *
 * You should not be able to create an invalid Triangle.  The
 * constructor throws an IllegalArgumentException if the input
 * cannot be interpreted as a triangle for any reason.
 */
public class Triangle {

  private static final Logger logger = LoggerFactory.getLogger(Triangle.class);
  private int[] sides = new int[3];
  
  /**
   * Define as private so that it is not a valid
   * choice.
   */
  private Triangle() {}
  
  public Triangle(String[] args) {
    validateArgs(args);

    parseArgs(args);

    validateLength();
  }

  public TriangleType classify() {
    TriangleType result;
    if ((sides[0] == sides[1]) && (sides[1] == sides[2])) {
      result = EQUILATERAL;
    } else if ((sides[0] == sides[1])
        || (sides[1] == sides[2])) {
      result = ISOSCELES;
    } else {
      result = SCALENE;
    }
    logger.debug("classified as: " + result);
    return result;
  }

  private void parseArgs(String[] args) {
    // throws IllegalArgumentException on a failed parse
    for (int i = 0; i < args.length; i++) {
      sides[i] = Integer.parseInt(args[i]);
    }
  }

  private void validateArgs(String[] args) {
    if ((args == null) || (args.length != 3)) {
      throw new IllegalArgumentException("Must have 3 elements");
    }
  }

  private void validateLength() {
    for (int i = 0; i < sides.length; i++) {
      if (sides[i] > 400) {
        throw new IllegalArgumentException("max size is 400");
      }
    }
  }
  
}
/*
 * Assignment: #3
 * Topic: Identifying Triangles
 * Author: <YOUR NAME>
 */
package edu.depaul.triangle;

import static org.junit.jupiter.api.Assertions.*;
import static edu.depaul.triangle.TriangleType.ISOSCELES;
import static edu.depaul.triangle.TriangleType.EQUILATERAL;
import static edu.depaul.triangle.TriangleType.SCALENE;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

public class TriangleTest {

  @Test
  @DisplayName("Remove me and add proper tests")
  void testPlaceHolder() {

  }
}

Need to write tests to see if the program works correctly. (using assert)

In: Computer Science

Book SerialNum : String - Name: String – Author : String PublishYear: int - Edition:int Status...

Book

SerialNum : String -

Name: String –

  • Author : String

PublishYear: int -

  • Edition:int
  • Status : boolean

+ Book()

Book(String, String, String, int , int)+

+ setName(String) : void

+ setSerialNum(String) : void

+ setAuthor(String) : void

+ setEdition(int) : void

+ setYear(int) : void

+ getName():String

+ getAuthor():String

+ getYear(): int

+ getSerialNum(): String

+ getEdition():int

+ setAvailable() : void

+ setUnavailable(): void

checkAvailability(): boolean

-----------------------------------------------------------------------------------

Library

Name : String

Address: String

Static NUMBEROFBOOKS: int

BooksAtLibrray : ArrayList

LibraryIssues: TreeMap

Library()

Library(String, String)

addBook(Book): void

removeBook(Book) : Boolean

searchBookByName(Book) : Boolean

searchBookBySerialNumber(Book) : Boolean

checkBookAvailablity(Book): Boolean

createLibraryIssue(LibrrayIssue):Boolean

addLibraryIssue(LibraryIssue)

removeLibrrayIssue(LibrrayIssue):Boolean

searchLibrrayIssueByStuent(Student): List

searchLibraryIssuebyID(String IssueID):LibrrayIssue

searchLibraryIssueByBook(Book): LibraryIssue

--------------------------------------------------------------------------------------------------------------

Student

id : String

Name: String

Age : int

Student()

Student(String, String, int)

setName (String):void

SetAge(int):void

setId(String):void

getID():String

getName():String

getAge():int

---------------------------------------------------------------------------------------------------

LibraryIsuue

IssueID : String

borrower : Student

borrowedBook : Book

LibraryIssue()

LibraryIssue(String, Student , Book)

setIssueId(String):void

setBorrower(Student):void

setBorrowedBook(Book):void

getIssueID():String

getBorrowed():Student

getBorrowedBook():Book

----------------------------------------------------------------------------------------------------------

Librray

Main()

-----------------------------------------------------------------------------------------------------------------------------------------

Use the attached UML diagrams to build up your project classes

Make sure to put view for your project by Entering true data

You will need to add 5 books and 5 students and at least 3 LibraryIssues

LibraryIssues keeps track of the borrowed book

The librray uses all classes as mentioned in the UML diagram

You will need to check if book is available before borrowing it.

searchLibrrayIssueByStuent(Student): List

This method returns all book if borrowed by single student, as a student could borrow more than one book

Static NUMBEROFBOOKS: int

Each time you add a book the static variable is increased  and Each time a book is removed so the static variable is decreased.

createLibraryIssue(LibraryIssue) : boolean

changed the Boolean variable status in book element to false and return false if book is not available

removeLibrrayIssue(LibraryIssue):Boolean

changed the Boolean variable status in book element to true and return false if book is available

Note

LibrrayIssue and Book in the class Library should be List or map

Do not use array as the size is not fixed

In: Computer Science