Questions
B. The following is a key exchange protocol used by two clients, A and B, to...

B. The following is a key exchange protocol used by two clients, A and B, to obtain a symmetric key???, using a trusted server, S. Assume that A and B had previously obtained the symmetric keys ??? and ??? securely with the server. Also assume that anyone can securely obtain a secret symmetric key with the server. I. A → S : A, B II. S → A : (???) ??? ,( ???) ??? III. A → B : (???) ??? , A  Identify the attack that can be executed against this protocol, assuming that an attacker C can eavesdrop, block, or modify all messages. The attacker also has access to old (expired) keys. C. The above protocol is now modified to become I. A → S : A, B II. S → A : (???, B) ??? ,( ???, A) ??? III. A → B : (???, A) ???  Why does the new modification improve the security over the old version? Identify the new vulnerability that exists in the new version D. The above protocol is now modified to become I. A → S : A, B, NA II. S → A : (???, B, NA,( ???, A) ??? ) ??? III. A → B : (???, A) ??? IV. B → A : (NB) ??? V. A → B : (NB − 1) ???  Identify the vulnerability in this new version. E. Modify the protocol in part (D) to have a secure protocol.

In: Computer Science

Q1. Search online to find an example policy statement and show the five components of a...

Q1. Search online to find an example policy statement and show the five components of a security policy in the statement.

Q2. Describe the difference between DAC and MAC policies.

Q3. Explain the difference between Black-Box and White-Box testing. Use one specific example for each.

Q4. Discuss the advantages and disadvantages of dynamic analysis technique over static analysis techniques.

Q5. Explain the two extensions of RBAC model in two separate paragraphs. Discuss the advantage of each one.

Q6. What are types of tickets and servers used in Kerberos ? Why does Kerberos need them.

In: Computer Science

Consider the following code fragment and answer below 1. Read(fd, user entry, size of (user entry));...

Consider the following code fragment and answer below
1. Read(fd, user entry, size of (user entry));
2. Comp=memcmp(userEntry, correct password, stream( user Entry));
3. If (Comp!=0)
4. Return BAD_PASS

- identify any 3 problems with code 8 for each defect describe:

- A) what is this problem
- B) how it can be found (code, review, Static analysis.....)
- C) how it can be solved

In: Computer Science

You have written a JAVA program that creates Shoe object with three instance variables. You will...

You have written a JAVA program that creates Shoe object with three instance variables. You will need to use the exception you created to go along with it. So far you have been using my driver classes. Now it is time for you to create your own driver class that will implement an ArrayList of Shoe objects.

This assignment uses the Shoe.java and ShoeException.java to create the driver ShoeStore.Java

You will display a menu as follows:

  1. Add shoes
  2. Print all shoes of a given size
  3. Print all shoes of a given color
  4. Print all shoes
  5. End execution

The user will select an option. The program should loop and continue until the user selects 5 -End execution-.

You will be graded as follows

Resubmit your Shoe.java and your ShoeException.java (up to 50 points if properly working)

ShoeStore.java (200 points) this is the driver class

  1. Add shoes (50 points)
  2. Print all shoes of a given size (50 points)
  3. Print all shoes of a given color. Color is a number from 1 to 5,  (50 points)
  4. Print all shoes   (50 points)
  5. End execution

Remember to use try/catch. Your code should not crash at any time.   Code crashing -100 points

The program name should be ShoeStore.java if you use any other name you will get points deducted.

Up to 50 points may be given for following the java coding standards, indentation, comments, usability etc.

Students must always follow the JAVA Java coding standards for the class.

In: Computer Science

Explain what are the terms difference when we speaking about virtualization, emulation and simulation methodologies.

Explain what are the terms difference when we speaking about virtualization, emulation and simulation methodologies.

In: Computer Science

Question Prompt (1 of 1) You are running a classroom and suspect that some of your...

Question Prompt (1 of 1)

You are running a classroom and suspect that some of your students are cheating by sharing answers as single words hidden in 2D grids of letters.

A particular grid contains at most one word. The word may start anywhere in the grid, and consecutive letters can be either below or to the right of the previous letter.

The input will consist of a word and a grid. Print the location of the word in the grid as a list of “row column” coordinates, each on its own line. If the word does not appear in the grid, just print “None”.

Example input:

  catnip

  c r c a r s
  a b i t n b
  t f n n t i
  x s i i p t

Example output

  0 2
  0 3
  1 3
  2 3
  3 3
  3 4

Clarifications:

  • The word will always appear in the grid exactly 0 or 1 times.

Starter code is provided for the following languages: Java, C, C++, JavaScript,

If you wish to use a different language, please write a solution
that reads from STDIN and writes to STDOUT. To obtain starter code,
change the language to one of the previously mentioned languages.

Public test 1

Input:

car

c r c r a c a b i t n b t f n n t i

Expected Output:

None

Public test 2

Input:

car

c r c c a r a b i t n b t f n n t i

Expected Output:

0 3 0 4 0 5

Public test 3

Input:

carsick c r c a r s a b i t n b t f n n t i x s c a t n x s d d e a s q w x s p

Expected Output:

None

Public test 4

Input:

catnap c r c a r s a b i t n b t f n n t i x s c a t n x s d d e a s q w x s p

Expected Output:

3 2 3 3 3 4 3 5 4 5 5 5

Public test 5

Input:

catnip c r c a r s a b i t n b t f n n t i x s i i p t

Expected Output:

0 2 0 3 1 3 2 3 3 3 3 4

In: Computer Science

Time sensative (linux). Please 1)Show all lines that have only the word hello in file file1....

Time sensative (linux). Please

1)Show all lines that have only the word hello in file file1.

2)Show all lines that have at least five characters.

3)Show all lines that have only 5 digits.

4)Write the command to find out the number of words in the file file1.

5)Write the command to substitute all the words Unix to Linux in a file called file1.

6)Write the command to rename the file file1 to file2.

7)Write the command to list only the directories in the current folder.

8)Use the sed command to print lines 6 to 10. Modify that command to place lines 6 to 10 of file1 into file2.

9)A file has three columns. In column-1 the name of employee and in column-2 he salary of employee is given.

10)Write the line to display the name of employees that make more than 50000.

11)Write a script to read three numbers and find the sum of these numbers. Find the largest number. Display the largest number and the sum.

In: Computer Science

Visual Basic This assessment will cover the Programming fundamentals of the Integrated Development Environment(IDE) found in...

Visual Basic

This assessment will cover the Programming fundamentals of the Integrated Development Environment(IDE) found in Chapters 1-7 of the assigned text. In this assignment, you will demonstrate the use of tools explored so far within the course. It is the High Totals Game activity found in the Case Projects section of your book. Requirements: Copy/paste the VB code into a Microsoft Word document. You are also required to submit enough screenshots of the output to show that all work has been completed.

Create an application that can be used to practice adding, subtracting, multiplying, and dividing numbers. The application should display a math problem on the screen and then allow the student to enter the answer and also verify that the answer is correct. The application should give the student as many chances as necessary to answer the problem correctly. The math problems should use random integers from 1 through 20, inclusive. The subtraction problems should never ask the student to subtract a larger number from a smaller one. The division problems should never ask the student to divide a smaller number by a larger number. Also, the answer to the division problems should always result in a whole number. The application should keep track of the number of correct and incorrect responses made by the student. The interface should include a button that allows the user to reset the counters for a different student.

The High Total game requires two players. The application’s interface should allow the user to enter each player’s name. When the user clicks a button, the button’s Click event procedure should generate two random numbers for player 1 and two random numbers for player 2. The random numbers should be in the range of 1 through 20, inclusive. The procedure should display the four numbers in the interface. It should also total the numbers for each player and then display both totals in the interface. If both totals are the same, the application should display the message “Tie”. If player 1’s total is greater than player 2’s total, it should display the message “player 1’s name won”. If player 2’s total is greater than player 1’s total, it should display the message “player 2’s name won”. The application should keep track of the number of times player 1 wins, the number of times player 2 wins, and the number of ties. The interface should also include a button that allows the user to reset the counters and interface for a new game.

In: Computer Science

Please convert 2.75 into IEEE-754 format. Provide every single detail for upvote

Please convert 2.75 into IEEE-754 format.

Provide every single detail for upvote

In: Computer Science

1.   The goal of scalar processing is to produce, on average, the execution of one instruction...

1.   The goal of scalar processing is to produce, on average, the execution of one instruction per clock tick.

•   If the clock ticks at a rate of 2 GHz, how many instructions per second can this computer execute?

•   How many instructions would a 2 GHz superscalar processor that processes three instructions per clock cycle execute?


2.   Suppose we are trying to determine the speed of a computer that executes the Little Man instruction set. The LOAD and STORE instructions each make up about 25% of the instructions in a typical program; ADD, SUBTRACT, IN, and OUT take 10% each. The various branches each take about 5%. The HALT instruction is almost never used (a maximum of once each program, of course!). Determine the average number of instructions executed each second if the clock ticks at 100 MHz.

3.   Now suppose that the CPU is pipelined, so that each instruction is fetched while another instruction is executing. (You may also neglect the time required to refill the pipeline during branches and at the start of program execution.) What is the average number of instructions that can be executed each second with the same clock in this case?

In: Computer Science

Draw a connected, simple graph with 6 vertices and 12 edges. Verify the Handshaking Lemma for...

Draw a connected, simple graph with 6 vertices and 12 edges. Verify the Handshaking Lemma for your graph.

In: Computer Science

I'm honestly not 100% sure what's going on here. Can someone post an example? This is...

I'm honestly not 100% sure what's going on here. Can someone post an example? This is for C++/Databases

Deliverable You must upload to moodle a single .zip archive file of your site folder. Use a utility that produces .zip files (Windows: right click | Send to | compress, Mac: right click | compress). Objectives To design, code and publish a database driven web site of your choosing. Project setup • Using VS Code, create the folder project. This folder is referred to from here on out as the folder. This is the folder you will .zip and upload. Project Requirements The web site you are going to develop over the course of the semester is up to you. The site should be designed and coded with the following set of minimum requirements in mind. • MySQL Database • The site must be database driven and as such you should use MySQL. You should export your database into the file project.sql and add it to your site folder for delivery. • The database should be named project and should include a User table to store users of your site. Include at least two more tables in a one-to-many relationship. • You must provide full CRUD functionality, i.e. A user must be able to - add a record, retrieve a record, update a record and delete a record. • User login form • You must include a login form to allow a user to log in. This is the very first page any user of your site must allowed to land on. • You must include a register form to allow users to register before they log in. • Use mysql to create an initial user account in the database with credentials (username: guest, password: guest) • Home page • The home page is the first page a user sees once they successfully log in. Do not allow a user to access this page if they have not logged in. Design and code this and other pages as you see fit. • Server side scripting • Must use PHP to handle server side scripting. Use PHP to access the database and to perform proper validation of all forms (login, register). You should use regular expressions for validation. • Authenticate the user when trying to log in. This means verify user credentials against the DB record. • Use sessions to prevent a user from accessing any page directly if they have not logged in first. 1 / 2 Last updated: September 2, 2019 at 6:09 PM • Client side scripting • Must use JS or jQuery to perform client-side validation of the login form. At this point you should not allow for empty or invalid field entries. Again, use regular expressions for this. • Use client-side scripting to enhance the user's experience while interacting with the UI as you see fit. There is no maximum expected level of functionality, but you must provide some minimum interaction. • Presentation • You must use the W3.CSS framework to style your site. Do not use another framework or your own CSS style rules unless you are overwriting/customizing a W3.CSS rule you don't like.

Grading Rubric

Feature / Weight Max / points

Deliverable / 100% / 300

MySQL / 30% / 90

Login form UI / 5% / 15

Register form UI / 5% / 15

Home page UI / 10% / 30

Server side scripting 30% 90

Client side scripting 10% 30

Presentation 10% 30

In: Computer Science

Choose two flags (bits) from the 8086 status register, also known as flags register. In your...

Choose two flags (bits) from the 8086 status register, also known as flags register. In your own words briefly describe the purpose of each flag and how it works

In: Computer Science

for java, Behold, the power of interfaces! On this homework problem you'll implement a completely generic...

for java,

Behold, the power of interfaces! On this homework problem you'll implement a completely generic version of an algorithm to find the maximum of an array. Unlike in the past, when our algorithm only worked for int[] or double[], this version will work on any Java objects that are comparable, specifically any Java object that implements the Comparable interface. Create a public class named Max with a single class method named max. max should accept an array of Objects that implement Comparable and return the maximum. If the array is null or empty, you should return null. You will probably need to review the documentation for Comparable.

In: Computer Science

This lab uses a Student class with the following fields: private final String firstName; private final...

This lab uses a Student class with the following fields:

private final String firstName;
private final String lastName;
private final String major;
private final int zipcode;
private final String studentID;
private final double gpa;

A TestData class has been provided that contains a createStudents() method that returns an array of populated Student objects.

Assignmen

The Main method prints the list of Students sorted by last name. It uses the Arrays.sort() method and an anonymous Comparator object to sort the array by the student’s last name.

Using the Arrays.sort() method and anonymous Comparator objects print out the array of students using the following three sorting criteria:

  1. Sorted in order of major (A-Z)
  2. Sorted by zip code (increasing)
  3. Sorted by Grade Point Average (GPA) (decreasing)

Note: when sorting by GPA, you will need to be clever to correctly sort GPA’s such as 3.1, 3.2, 3.4 in the correct order.

Note: In this assignment the Comparator class will be instantiated as:

                new Comparator<Student>()

The <Student> type argument means that the Comparator operates on Student objects. You will learn more about this in the next lesson on Generics.

Example Output

Students Sorted By LastName

First Name   Last Name    Major              Zip Code     GPA        

Penny        Adiyodi      Finance            90304        3.1        

Marina       Andrieski    Marketing          76821        3.4        

Quentin      Coldwater    Biology            43109        2.7        

Henry        Fogg         Botany             49022        3.8        

Margo        Hanson       Psychology         56231        2.91       

Josh         Hoberman     Astronomy          33021        2.5        

Kady         Orloff-Diaz English            65421        3.2        

Alice        Quinn        Math               89123        4.0        

Eliot        Waugh        Chemistry          12345        2.1        

Julia        Wicker       Computer Science   43210        4.0        

==============================================================

Students Sorted By Major

First Name   Last Name    Major              Zip Code     GPA        

Josh         Hoberman     Astronomy          33021        2.5        

Quentin     Coldwater    Biology            43109        2.7        

Henry        Fogg         Botany             49022        3.8        

Eliot        Waugh        Chemistry          12345        2.1        

Julia        Wicker       Computer Science   43210        4.0        

Kady         Orloff-Diaz English            65421        3.2        

Penny        Adiyodi      Finance            90304        3.1   

==============================================================

Students Sorted By Zip Code

First Name   Last Name    Major              Zip Code     GPA        

Eliot        Waugh        Chemistry          12345        2.1        

Josh         Hoberman     Astronomy          33021        2.5        

Quentin      Coldwater    Biology            43109        2.7        

Julia        Wicker       Computer Science   43210        4.0        

Henry        Fogg         Botany             49022        3.8        

Margo        Hanson       Psychology         56231        2.91       

Kady         Orloff-Diaz English            65421        3.2        

==============================================================

Students Sorted By GPA

First Name   Last Name    Major              Zip Code     GPA        

Julia        Wicker       Computer Science   43210        4.0        

Alice        Quinn        Math               89123        4.0        

Henry        Fogg         Botany             49022        3.8        

Marina       Andrieski    Marketing          76821        3.4        

Kady         Orloff-Diaz English            65421        3.2   

Coding:

package home;

import java.util.Arrays;
import java.util.Comparator;

public class Main {

public static void main(String[] args) {
Student[] students = TestData.createStudents();
Arrays.sort(students,new Comparator<Student>() {
public int compare(Student s1,Student s2) {
String lastname1 = s1.getLastName();
String lastname2 = s2.getLastName();
return lastname1.compareTo(lastname2);
}
});
printStudentList("Students Sorted By LastName",students);

// TODO - sort students by major
printStudentList("Students Sorted By Major",students);

// TODO - sort students by zip code
printStudentList("Students Sorted By Zip Code",students);

// TODO - sort students by GPA
printStudentList("Students Sorted By GPA",students);
}

public static void printStudentList(String title,Student[] list) {
final String format = "%-12s %-12s %-18s %-12s %-12s\n";
System.out.println(title);
System.out.printf(format,"First Name","Last Name","Major","Zip Code","GPA");
for (Student s : list) {
System.out.printf(format,s.getFirstName(),s.getLastName(),s.getMajor(),s.getZipcode(),s.getGpa());
}
System.out.println("==============================================================\n");
}
}

package home;

/**
* Student class (immutable)
*/
public final class Student {
private final String firstName;
private final String lastName;
private final String major;
private final int zipcode;
private final String studentID;
private final double gpa;

public Student(String firstName, String lastName, String major, int zipcode, String studentID, double gpa) {
this.firstName = firstName;
this.lastName = lastName;
this.major = major;
this.zipcode = zipcode;
this.studentID = studentID;
this.gpa = gpa;
}

public String getFirstName() {
return firstName;
}

public String getLastName() {
return lastName;
}

public String getMajor() {
return major;
}

public int getZipcode() {
return zipcode;
}

public String getStudentID() {
return studentID;
}

public double getGpa() {
return gpa;
}
}

package home;

public class TestData {
public static Student[] createStudents() {
Student[] students = {
new Student("Julia","Wicker","Computer Science",43210,"A0123",4.0),
new Student("Quentin","Coldwater","Biology",43109,"D3902",2.7),
new Student("Eliot","Waugh","Chemistry",12345,"Z0101",2.1),
new Student("Penny","Adiyodi","Finance",90304,"M2030",3.1),
new Student("Margo","Hanson","Psychology",56231,"L9832",2.91),
new Student("Alice","Quinn","Math",89123,"U8932",4.0),
new Student("Kady","Orloff-Diaz","English",65421,"K3949",3.2),
new Student("Henry","Fogg","Botany",49022,"R9392",3.8),
new Student("Josh","Hoberman","Astronomy",33021,"H3021",2.5),
new Student("Marina","Andrieski","Marketing",76821,"J3491",3.4)
};
return students;
}
}

In: Computer Science