Questions
You are an IT company and want to get a travel agency's network design, hardware, software,...

You are an IT company and want to get a travel agency's network design, hardware, software, and security.

Routing Protocols. Are routed protocol and routing protocol the same?  Give examples of both. What routing protocol(s) are you planning to use in the travel agency network? Justify your selection. As the travel agency network uses private ip addresses, what routing feature does need to be configured to access the WAN with public ip address? What device does have the feature?

In: Computer Science

Write C++ mathematics program that a Given an arc with its center at zero, and the...

Write C++ mathematics program that a Given an arc with its center at zero, and the arc should be user defined in 3D-space by means of a 3x3 transformation matrix, and a radius, start-angle and sweep-angle should be user defined. it gives output/tells the most extreme XY points that arc goes to

The radius,start angle and sweep angle should be user defined.

make the code quickly and send me

sir the matrix should always be 3x3 center is at zero initially
and raduis,start angle and sweep angle should be user defined
The program should calculate extreme points values of arc
initially assume any assumptions if u don't find sufficient info kindly solve and send me

In: Computer Science

WRITE IN JAVA 1) Create a constructor that can create objects in the following way: c...

WRITE IN JAVA

1) Create a constructor that can create objects in the following way: c = Circle(X, Y, R);

2) Please add a constructor that only accepts R value and initializes the Circle at the origin.

3) Please implement a constructor that behaves the same way as the default constructor.

4) Add a method named “touches” to the Circle class which receives another Circle instance and checks whether these two circles touch each other externally and only at one point. The method should return a Boolean value and will be called like this: c1.touches(c2) //returns either true or false.

5) Please implement a Test class with main method that simulates each of the following
cases and prints their outcome to the screen.

In: Computer Science

Management is pleased with the progress that has been made and likes the steps you have...

Management is pleased with the progress that has been made and likes the steps you have taken to set up a secured network environment. During the last status meeting, the following was asked: "Has everything been done that is possible to ensure the security of the environment?" Your response was that you believed it has, but one way to be sure is to conduct a vulnerability assessment and a penetration test.

  • Create a PowerPoint presentation of 6–8 slides that includes speaker notes and a references slide. It must cover the following:
    • Describe at least 2 common security threats against wired and wireless devices and typical countermeasures used by corporate security teams.
    • Describe at least 2 identity and access management tools needed to measure and monitor security risks across the enterprise.
    • Explain penetration testing and vulnerability assessments and how they differ.
    • Identify the benefits of using penetration testing and vulnerability assessments relative to threats.
    • Discuss the tools available in the industry (at least 5 different tools should be discussed), and explain how they can be used to mitigate security vulnerabilities.

The presentation must include a title slide, topics of discussion slides, main content slides, and reference slides. The references must use APA structure for organization of reference information. Font and font size are not required to meet APA format.

In: Computer Science

C PROGRAMMING LANGUAGE Problem title : Bibi's Array Bibi also has an array containing N elements....

C PROGRAMMING LANGUAGE

Problem title : Bibi's Array

Bibi also has an array containing N elements. Like Lili, Bibi wants to know the highest frequency (most occurrences) and all elements which have that frequency.

Format Input

The first line contains an integer T stating the number of test cases. For each test case, the first line contains a single integer N which indicate the number of element in the array. The next line contains N integers Xi (1≤ i ≤ N ) which indicate i^th element in the array.

Format Output

Consist of T lines where each line has the format "Case #X:Y" , where X is the test case number starting at 1 and Y is the highest frequency. Next line contains all elements which have that frequency sorted in ascending order.

Constraints

¶ 1≤ T ≤ 20

¶ 2 ≤ N ≤ 20.000

¶ 1 ≤ Xi ≤ 2 x 10^5

Sample Input (standard input)

3

8

1 1 2 2 3 4 5 5

8

5 5 4 3 2 2 1 1

4

1 1 1 3

Sample Output (standard output)

Case #1: 2

1 2 5

Case #2: 2

1 2 5

Case #3: 3

1

In: Computer Science

JAVA programming language Modify the following code. Make changes so that Movies can be sorted by...

JAVA programming language

Modify the following code. Make changes so that Movies can be sorted by title

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

package Model;
import java.time.Duration;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
// TODO - Modify the movie class so that Java knows how to compare two Movies for sorting by title
public class Movie extends DataStoreObj
{
private String title;
private String description;
private LocalDate releaseDate;
private Duration runningTime;
private Rating rating;
private List<Genre> genres = new ArrayList<>();
private List<Actor> actors = new ArrayList<>();
// TODO: Add list of reviews
private List<Review> reviews = new ArrayList<>();
public Movie(String title, String description, Rating rating, String releaseDate, int runningTimeMinutes) {
this(null, title, description, rating, releaseDate, runningTimeMinutes);
}
public Movie(Long id, String title, String description, Rating rating, String releaseDate, int runningTimeMinutes) {
super(id);
this.title = title;
this.description = description;
this.rating = rating;
this.releaseDate = LocalDate.parse(releaseDate);
// https://stackoverflow.com/a/41800301/673393
this.runningTime = Duration.ofMinutes(runningTimeMinutes);
}
public Duration getRunningTime() {
return runningTime;
}
public String getTitle() {
return title;
}
public void addGenre(Genre genre) {
genres.add(genre);
}
public void addActor(long actorId) {
Actor foundActor = Datastore.getActorById(actorId);
actors.add(foundActor);
}
public List<Actor> getActors() {
return actors;
}
public void addReview(Review review) {
// TODO: Write code to add the review to the list
reviews.add(review);
}
public String toString() {
int runningTimeMinutes = (int) this.getRunningTime().getSeconds() / 60;
return String.format("%s (%s, %s) %s {%s min}", this.title, this.rating, this.releaseDate.getYear(), genres, runningTimeMinutes);
}
// TODO - You'll need a new method here to tell Java how to compare two movies by title
public List<Review> getReviews() {
return reviews;
}

}

In: Computer Science

Create a C++ or Java program codes for Login Attendance applying the queue principle that will...

Create a C++ or Java program codes for Login Attendance applying the queue principle that will select students from the last attendance login to answer a question.

NOTE: Program execution should include deletion and insertion of attendance information/element

In: Computer Science

write a program that takes the input value from the user and calculate the sum from...

  • write a program that takes the input value from the user and calculate the sum from that number to zero in MIPS

In: Computer Science

Approximately 1000 word report (800-1300 words excluding Conclusion) on ONE of the following topics: 1. Quantum...

Approximately 1000 word report (800-1300 words excluding Conclusion) on ONE of the following topics: 1. Quantum Cryptography 2. Quantum Computing and its impact on Cryptography 3. Zero-knowledge protocols (or proofs) in Signature Schemes 4. Secret Sharing (or splitting) in Cryptography It is VERY important that references are included (Note: Wikipedia is NOT acceptable)

This assessment requires the student to choose a topic from a supplied list and write a report as if it were to be presented as a professional development lecture for their peers. The choice of topics may include but not be limited to, material covered throughout the subject. Potential topics not covered in lectures may include quantum cryptography and quantum computing. Students are expected to discuss their choice with their lecturer during the workshops. This assignment is designed to improve the student’s organisational skills and encourage independent research into other topics not directly covered in lectures. Please present your lecture in report format which includes the following sections: • Title page • Introduction • Body paragraph • Body paragraph • Body paragraph • Conclusion • References • Appendices (if necessary) The report should: • include diagrams explaining concepts • Include all references cited and must be referenced in Harvard AGPS

In: Computer Science

In python I have my code written and I want just 4 functions to be fix...

In python I have my code written and I want just 4 functions to be fix in my code according to rule. My code is running but it has some problem regarding to rules. (I have did all the other things so you do not have to worry about other functions)

1) all the players has to play until he/she reaches to at least 500 points in first round.

When user reach 500 points for the first time, user may choose to immediately end his turn to prevent losing the points.

If you user did choose to save his turn and if he get farkle the score will be 0. (This is just for the first round.)

2) fix my scoring according to point table.

point table for game:

5 = 50 points

1 = 100 points

Triplet of 1 = 300 points "Example(1,1,1)"

Triplet of 2 = 200 points

Triplet of 3 = 300 points

Triplet of 4 = 400 points

Triplet of 5 = 500 points

Triplet of 6 = 600 points

Four of a Kind [Example(4,4,4,4)] = 1,000 points

Five of a Kind[Example(4,4,4,4,4)] = 2,000 points

Six of a Kind [Example(4,4,4,4,4,4)] = 3,000 points

(1,2,3,4,5,6 ) = 1,500 points

Three Pairs [Example(4,4,2,2,1,1)]= 1,500 points

Four of a Kind + a Pair [Example(4,4,4,4,1,1)]= 1,500 points

Two sets of Three of a Kind [Example(4,4,4,6,6,6)] = 2,500 points

NOTE(single 2,3,4,6 does not have any point.)

3) there are six die in game and I have already implement it but it not working as rules.

computer have to Take out any dice worth points after each roll.

user has to Roll the remaining dice,

removing any dice worth points and adding them to your running total.

If user are ever able to set aside all six dice, user can roll again all of his dice and keep building his running total.

If ever user are unable to set aside any dice ( dice contain 0 points), user have Farkled. user lose his running point total and his turn is over.

4) Winning (I have also did little bit but i want to make it simple so can you see it and fix)

If any player score 10,000 points in game

The end game sequence will start

Each other player has one turn to try to beat score of player who scored 10,000 points.

After all remaining players have had their turn, the player with the highest score wins.

you should enter the number of players as a parameter ( 2 to 6 players) .

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

import random

import math

class Dice:

def __init__(self, sides=6):

  self.sides = sides

def roll(self, n=1):

  return [int(math.floor(random.random() * 6) + 1) for _ in range(n)]

class Farkle:

def __init__(self):

  print ("Lets play Farkle")

  self.gamers = [] #INIT

  self.num_gamers = int(input("No. of gamers? ")) #INIT

  if(self.num_gamers < 2 or self.num_gamers > 6):

   print("No of gamers need to be more than 2 and less than 6")

  else:

   for i in range(self.num_gamers):

#get name of gamer

    gamer = input("Name of gamer {0}: ".format(i+1))

    self.gamers.append(gamer) #list of gamers

#INIT

   self.scores = {'_highest':[0, '']}

   for gamer in self.gamers:

    self.scores[gamer] = 0

   self.Counter_round = 0 #INIT

   self.dice = Dice()

def Begin(self):

  if(self.num_gamers >= 2 and self.num_gamers <= 6):

    print ("The game has %s gamers. Their names are:" % self.num_gamers)

    self.gamer_scores()

    input("Enter if you are ready to begin!")

    while self.scores['_highest'][0] < 10000:

     self.Round()

  self.End()

def End(self):

  if(self.num_gamers >= 2 and self.num_gamers <= 6):

   print ("Hey Congratulations, {0}! You are the winner with a score of {1}.".format(self.scores['_highest'][1], self.scores['_highest'][0]))

   print ("The total scores were:")

   self.gamer_scores()

def Round(self):

  self.Counter_round += 1

  print ("******************")

  print (" Round {0}".format(self.Counter_round))

  print ("******************")

  if self.Counter_round > 1:

   print ("{0} is currently is leading with {1} points.".format(self.scores['_highest'][1], self.scores['_highest'][0]));

   print ("The total scores are:")

   self.gamer_scores();

  for gamer in self.gamers:

   self.AnotherRound(gamer)

  print(input("ENTER when you are ready to proceed to the next round"))

  return

def AnotherRound(self, gamer):

  input("{0}, it's your AnotherRound. Enter when you are ready to roll.".format(gamer))

  

  #create empty dictionery for count every number

  s_num = {}

  roll = self.dice.roll(6)

   

  #single 5's has 50 points

  z_s = 0

  #count any kind of number frequency and stored in dictionary

  for i in roll:

    s_num[i] = roll.count(i)

     

  #condition for three pairs or 1 pair and 4 any kind of

  flag_pairs = True

  l = 0

  k = 0

  m = 0

  for key,value in s_num.items():

    if(key in [1,2,3,4,5] and value == 2):

      l+=1

    #4 any kind of

    elif(key in [1,2,3,4,5] and value == 4):

      k +=1

    elif(key in [1,2,3,4,5] and value == 3):

      m +=1

  #for three pairs

  if(l==3):

    flag_pairs = False

    z_s += 1500

  #for 1 pair and 4 any kind of

  elif(l==1 and k==1):

    flag_pairs = False

    z_s += 1500

  #two sets any three kind of

  elif(m==2):

    flag_pairs = False

    z_s += 2500

  #simple for [1,2,3,4,5,6]

  elif(roll == [1,2,3,4,5,6]):

    flag_pairs = False

    z_s += 1500

  if(flag_pairs):

    for key,value in s_num.items():

      #5's

      if(key == 5 and value in [1,2]):

        z_s += 50*value

      #1's

      elif(key == 1 and value in [1,2]):

        z_s += 300*value

      #three 2's

      elif(key == 2 and value == 3):

        z_s += 200

      #three 3's  

      elif(key == 3 and value == 3):

        z_s += 300    

      #three 4's

      elif(key == 4 and value == 3):

        z_s += 400

      #three 5's

      elif(key == 5 and value == 3):

        z_s += 500

      #three 6's

      elif(key == 6 and value == 3):

        z_s += 600

      # 4 any kind of

      elif(key in [1,2,3,4,5,6] and value == 4):

        z_s += 1000

      # 5 any kind of

      elif(key in [1,2,3,4,5,6] and value == 5):

        z_s += 1500

      # 6 any kind of

      elif(key in [1,2,3,4,5,6] and value == 6):

        z_s += 3000

      else:

        z_s += key*value

    score = z_s

    print (" You scored {0}".format(roll))

    self.scores[gamer] += score

  print (" Your score is now: {0}".format(self.scores[gamer]));

  if self.scores[gamer] > self.scores['_highest'][0]:

   self.scores['_highest'][0] = self.scores[gamer]

   self.scores['_highest'][1] = gamer

  return

def gamer_scores(self):

  for gamer in self.gamers:

   print (gamer + "; Score: " + str(self.scores[gamer]))

if __name__ == '__main__':

play = True

while play:

  print(

'''Farkle is a dice game that is multiplayer (2 to 6 gamers)!

Whoever reaches 10000 points first wins

Rules:

5s : 50 points

1s : 100 points

2,2,2 : 200 points

3,3,3 : 300 points

4,4,4 : 400 points

5,5,5 : 500 points

6,6,6 : 600 points

Four of a kind : 1000 points

Five of a kind : 2000 points

Six of a kind : 3000 points

A straight 1 to 6 : 1500 points

Four of a kind + Pair: 1500 points

Two sets of Three of a Kind = 2500''')

  f = Farkle()

  f.Begin()

  replay = input("Would you like to play again? ")

  while True:

   if replay.upper() in ['Y', 'YE', 'YES']:

    break

   elif replay.upper() in ['N', 'NO']:

    play = False

    break

   else:

    print("Please enter yes or no")

    break

In: Computer Science

I am unsure as to why I cannot solve my Computer Science question I was just...

I am unsure as to why I cannot solve my Computer Science question I was just wondering if someone could show me exactly what they would do the code is in C++:

write a program that display the following manual for user to chose among calculations

Please select one of the following:

  1. addition
  2. subtraction
  3. multiplication
  4. division
  5. exit

The program will then read in the user entry.

when the user chose "1", it will ask the user "Please enter two numbers separated by space:", read these two numbers into variables, add them and display the sum; when the user chose "2", it will ask the user "Please enter two numbers separated by space:", read these two numbers into variables, subtract the 2nd number from the first one and display the result; when the user chose "3", it will ask the user "Please enter two numbers separated by space:", read these two numbers into variables, multiply them and display the product; when the user chose "4", it will ask the user "Please enter two numbers separated by space:", read these two numbers into variables, divide the first number by the 2nd number, and display the quotient; when the user chose "5", exit the program; when what the user entered is not within the range of 1~5, display "This is Not a valid choice."

In: Computer Science

Write a C++ program to generate two random numbers (Rnd1 and Rnd2). These two numbers should...

Write a C++ program to generate two random numbers (Rnd1 and Rnd2). These two numbers should be within a range [100, 500]. If Rnd1 greater than or equals to Rnd2, print out the result of (Rnd1-Rnd2). Otherwise, print out the result of (Rnd2-Rnd1). In all cases, print Rnd1, Rnd2, and the results of subtractions in suitable messages.

In: Computer Science

Question 1: IT Governance [50 marks] According to a variety of studies, IT governance is usually...

Question 1: IT Governance [50 marks]

According to a variety of studies, IT governance is usually implemented so as to ensure that IT operations and investments deliver more value to the business.

a) Discuss the activities that are required to setup IT governance in an organization. [25 marks]

b) With the aid of examples, discuss the factors that could affect IT governance. [25 marks]

In: Computer Science

Which sorting algorithms is most efficient to sort string consisting of ASCII characters? Heap sort, Merge...

  1. Which sorting algorithms is most efficient to sort string consisting of ASCII characters? Heap sort, Merge sort, insertion sort, bubble sort, selection sort or quick sort?

In: Computer Science

C Programming Language Problem Title : Museum Heist Jojo loves art. In his free time, he...

C Programming Language

Problem Title : Museum Heist

Jojo loves art. In his free time, he usually goes to the museum and admires the artwork there. since Jojo loves are so much, he is planning a heist at the museum. Jojo knows the price of every piece of art and doesn't want to raise suspicion, so he decided to steal the second most expensive art piece. It is guaranteed that there are at least two art pieces with different prices.

Format Input

A line with integer N followed by another line of N numbers denoting the value of Ai.

Format Output

A single line of integer denoting the price of the second most expensive art piece.

Constraints

¶ 2 ≤ N ≤ 10^5

¶ 1 ≤ Ai ≤ 10^9

Sample Input 1

5

1 7 2 5 3

Sample Output 1

5

Sample Input 2

4

1 7 9 9

Sample Output 2

7

Sample Input 3

7

11 11 13 13 13 12 11

Sample Output 3

11

In: Computer Science