Questions
QUESTION 1 ___________ is a way to pay for the raw infrastructure, which the cloud operator...

QUESTION 1

  1. ___________ is a way to pay for the raw infrastructure, which the cloud operator oversees on your behalf.

    IaaS

    PaaS

    SaaS

    FaaS

1 points   

QUESTION 2

  1. ____________ is a function within IT systems that bridges the gap between development and operations of systems.

    CI

    CD

    DevOps

    Agile

1 points   

QUESTION 3

  1. There are many different versions of cloud _________, and not all clouds are created equal.

    names

    idiosyncrasies

    locations

    architecture

1 points   

QUESTION 4

  1. Amazon’s serverless technology is called_________ ; Google and Microsoft call theirs Google Functions and Azure Functions, respectively.

    Lambda

    Delta

    Alpha

    Theta

1 points   

QUESTION 5

  1. ________ cloud is a reference to on-premises deployment models.

    public

    private

    local

    hybrid

In: Computer Science

Determine, for a given graph G =V,E and a positive integer m ≤ |V |, whether...

Determine, for a given graph G =V,E and a positive integer m ≤ |V |, whether G contains a clique of size m or more. (A clique of size k in a graph is its complete subgraph of k vertices.)

Determine, for a given graph G = V,E and a positive integer m ≤ |V |, whether there is a vertex cover of size m or less for G. (A vertex cover of size k for a graph G = V,E is a subset VV such that |V| = k and, for each edge (u, v) ∈ E, at least one of u and v belongs to V.)

a.)Describe the process of showing that a problem is NP complete

b.) given that the CLIQUE problem is NP complete. show that the VERTEX COVER problem is NP complete.

In: Computer Science

1. Let U = {r, s, t, u, v, w, x, y, z}, D = {s,...

1. Let U = {r, s, t, u, v, w, x, y, z}, D = {s, t, u, v, w}, E = {v, w, x}, and F = {t, u}. Use roster notation to list the elements of DE.

a.

{v, w}

b.

{r, s, t, u, v, w, x, y, z}

c.

{s, t, u}

d.

{s, t, u, v, w, x, y, z}

2. Let U = {r, s, t, u, v, w, x, y, z}, D = {s, t, u, v, w}, E = {v, w, x}, and F = {t, u}. Use roster notation to list the elements of DE.

a.

{v, w}

b.

{r, s, t, u, v, w, x, y, z}

c.

{s, t, u}

d.

{s, t, u, v, w, x}

3. Let U = {r, s, t, u, v, w, x, y, z}, D = {s, t, u, v, w}, E = {v, w, x}, and F = {t, u}. Use roster notation to list the elements of EF.

a.

{t, u, v, w, x}

b.

{t, u, v, w, x}

c.

{Ø}

d.

Ø

4. Let U = {r, s, t, u, v, w, x, y, z}, D = {s, t, u, v, w}, E = {v, w, x}, and F = {t, u}. Use roster notation to list the elements of (EF)' ∩ D.

a.

Ø

b.

{t, u, v, w, x, z}

c.

{s}

d.

{r, t, u, v, w, x, y, z}

In: Math

Objectives: • Learn to write test cases with Junit • Learn to debug code Problem: Sorting...

Objectives:

Learn to write test cases with Junit

Learn to debug code

Problem: Sorting Book Objects

Download the provided zipped folder from Canvas. The source java files and test cases are in

the provided

folder. The Book class models a book. A Book has a unique id, title, and author.

The BookStore class stores book objects in a List, internally stored as an ArrayList. Also, the

following methods are implemented for the BookStore class.

addBook(Book b):

sto

res the book in the book list.

getBookSortedByAuthor():

returns a book list sorted by author name descending

alphabetically.

getBooksSortedByTitle():

returns a book listed sorted by title descending alphabetically.

getBooks():

returns the current book list

.

deleteBook(Book b5):

removes the given book from the book list.

countBookWithTitle(String title):

iterates through the book list counting the number of

books with the given title. Returns the count of books with the same title.

Write test cases to test t

he implementation.

The test case method stubs have been created.

Fill out the method stubs. After filling in the test case method stubs, run BookStoreTest to test

the BookStore.java code. Find and fix bugs in the BookStore.java code by using the debugger o

n

the test case method stubs.

Grade:

For this lab, we will need to see either

1)

Fully functional code solving the problem as specified or

Book.java


public class Book {

   private int id; // the unique id assigned to book
   private String title; // book title
   private String authorName;// author of the book

   public Book() {
       super();
   }

   public Book(int id, String authorName, String title) {
       this.id = id;
       this.title = title;
       this.authorName = authorName;
   }

   public int getId() {
       return id;
   }

   public void setId(int id) {
       this.id = id;
   }

   public String getTitle() {
       return title;
   }

   public void setTitle(String title) {
       this.title = title;
   }

   public String getAuthorName() {
       return authorName;
   }

   public void setAuthorName(String authorName) {
       this.authorName = authorName;
   }

   @Override
   public String toString() {
       return "\n Book [id=" + id + ", title=" + title + ", authorName="
               + authorName + "]";
   }

}

BookStore.java


import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class BookStore {

   private List<Book> books; // store books in a list

   public BookStore() {
       books = new ArrayList<Book>();

   }

   public void addBook(Book b1) {
       books.add(b1);

   }

   public List<Book> getBooksSortedByAuthor() {
       List<Book> temp = new ArrayList<Book>(books);
       Collections.sort(temp, new Comparator<Book>() {
           public int compare(Book b1, Book b2) {
               return b1.getTitle().compareTo(b2.getAuthorName());
           }
       });
       return books;
   }

   public int countBookWithTitle(String title) {
       int count = 2;
       for (Book book : books) {
           if (book.getTitle() == title) {
               count++;
           }
       }
       return count;
   }

   public void deleteBook(Book b5) {
       books.remove(b5);
   }

   public List<Book> getBooks() {
       return books;
   }

   public List<Book> getBooksSortedByTitle() {
       List<Book> temp = new ArrayList<Book>(books);
       Collections.sort(temp, new Comparator<Book>() {
           public int compare(Book b1, Book b2) {
               return b1.getTitle().compareTo(b2.getAuthorName());
           }
       });
       return temp;
   }

}

BookStoreTest.java


import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;

public class BookStoreTest {

   private BookStore store;
   private Book b1 = new Book(1, "Harper Lee", "To Kill a Mockingbird");
   private Book b2 = new Book(2, "Harper Lee", "To Kill a Mockingbird");
   private Book b3 = new Book(3, "Frances Hodgson", "The Secret Garden");
   private Book b4 = new Book(5, "J.K. Rowling",
           "Harry Potter and the Sorcerer's Stone");
   private Book b5 = new Book(4, "Douglas Adams",
           "The Hitchhiker's Guide to the Galaxy");

   /**
   * setup the store
   *
   */
   @Before
   public void setUpBookStore() {
       store = new BookStore();
       store.addBook(b1);
       store.addBook(b2);
       store.addBook(b3);
       store.addBook(b4);

   }

   /**
   * tests the addition of book
   *
   */

   @Test
   public void testAddBook() {
       store.addBook(b1);
       assertTrue(store.getBooks().contains(b1));

   }

   /**
   * tests the deletion of book
   *
   */

   @Test
   public void testDeleteBook() {

   }

   /**
   * tests sorting of books by author name
   *
   */

   @Test
   public void testGetBooksSortedByAuthor() {

   }

   /**
   * tests sorting of books by title
   *
   */

   @Test
   public void testGetBooksSortedByTitle() {

   }

   /**
   * tests the number of copies of book in store
   *
   */

   @Test
   public void testCountBookWithTitle() {

   }

}

In: Computer Science

Calculate the value of Eocell for the following reaction: 2Co3+(aq) + 3Ca(s) --> 2Co(s) + 3Ca2+(aq)...

Calculate the value of Eocell for the following reaction: 2Co3+(aq) + 3Ca(s) --> 2Co(s) + 3Ca2+(aq) Co3+(aq) + 3e– --> Co(s) Eo = 1.54 V Ca2+(aq) + 2e– --> Ca(s) Eo = –2.87 V.

A. –1.33 V

B. +1.33 V

C. –4.41 V

D. –11.6 V

E. +4.41 V

In: Chemistry

Prepare a written discussion on the Experiment: Calorimetry & Specific Heat    -purpose of the experiment...

Prepare a written discussion on the Experiment: Calorimetry & Specific Heat

   -purpose of the experiment

   -summary of the procedure

-discussion of the theory behind the experiment

   -discussion of the results, including the identity of the metal, the accuracy and precision of the results

In: Chemistry

Question) a) What is the theory of Projectile Motion Experiment? b) What is the scientific concept...

Question)

a) What is the theory of Projectile Motion Experiment?

b) What is the scientific concept of this Projectile Motion Experiment? (Explain in 500 words)

c) What is the background information of the Projectile Motion Experiment?

In: Physics

In Bradford Assay experiment, we diluted the protein solution and end of the experiment we obtained...

In Bradford Assay experiment, we diluted the protein solution and end of the experiment we obtained more protein than we expected.

What can be possible problems during perform the experiment?

In: Chemistry

The Enzyme Lactase experiment design Material required: Skim milk, lactase drops, test tubes, glucose test strips,...

The Enzyme Lactase experiment design

Material required:

Skim milk, lactase drops, test tubes, glucose test strips, eye dropper, mixing spoon, graduated cylinder

Step:

Why this step is important:

If you actually conducted this experiment, what safety issues would you need to identify?

If you actually conducted this experiment, what appropriate precautions would you take to ensure that you performed the experiment safely?

If you actually conducted this experiment, what results would you expect to see?

In: Biology

Roger is conducting a biochemical experiment for the next 12 months. In the first month, the...

Roger is conducting a biochemical experiment for the next 12

months. In the first month, the expenses are estimated to be

$10,000. As the experiment progresses, the expenses are expected

to increase by

2 percent each month. Roger plans to pay for the

experiment with a government

grant, which is received in four

monthly installments, starting a month after the experiment

completion date. Draw the cash flow diagram for this experiment.

Determine the amount of the monthly installment so that the

installments received are equal in value to the expenses incurred.

Annual nominal interest is 1

0 percent, compounded monthly.

In: Finance