Questions
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

You collect a sample of hydrogen gas in an inverted buret by displacement of water at...

You collect a sample of hydrogen gas in an inverted buret by displacement of water at 23 degrees C. The buret could not be submerged deep enough in the water level in the water bath. The volume of gas in the buret was determined to be 32.60 mL.

a. If the current atmospheric pressure was 29.45" of Hg, what is the pressure of dry hydrogen in the buret? Show your work.

b. How many moles of hydrogen are in this sample? Show your work.

In: Chemistry

In 2009, Roche Holding AG (Roche) made an offer to acquire all remaining outstanding shares of...

In 2009, Roche Holding AG (Roche) made an offer to acquire all remaining outstanding shares of US biotechnology company Genentech. To pay for the deal, Roche planned to sell a record $32 billion in bonds at various maturities from 1 year to 30 years, and in three different currencies (USD, Euro, British pound). For simplicity, let us assume they only issue 10 year dollar-denominated bonds. The 10 year interest rates on corporate bonds, and the median earnings to interest expense ratios (EBITDA/interest expense coverage ratio) for US rated industrial companies at the time were as follows:

Rating Interest rate Coverage ratio
AAA 4.0% 114.0
AA 4.9% 44.0
A 5.6% 12.8
BBB 7.0% 8.2

With the acquisition of Genentech, suppose we project that Roche will have earnings (EBITDA) of $23 billion, and their interest expense will be $32 billion (the debt) times the interest rate. If we use the coverage ratio to estimate the bond rating, and we use the bond rating to estimate the interest rate, what rating will we assign to Roche's debt?

AAA

AA

A

BBB

In: Finance

Frederick Taylor (1856-1915) is the father of scientific management, a method for analyzing work flows with...

Frederick Taylor (1856-1915) is the father of scientific management, a method for analyzing work flows with a specific focus on improving labor productivity. Taylor's methods have had a large influence on the Lean philosophy, particularly standardized work (e.g., standard parts and standard work instructions). Despite Taylor's connection to Lean, he would likely analyze a business process very differently from Taiichi Ohno (1912-1990), the father of Lean thinking and past CEO of Toyota. Consider the following situation. Taylor and Ohno walk down a hospital corridor together and see a nurse chatting with a patient who is waiting for a CT scan. Both would be upset about this “waste,” but for different reasons. Taylor would be upset about the nurse not doing work and Ohno would be upset about the patient not flowing smoothly through the system. Both would see waste, but for Taylor the focus is the worker and for Ohno the focus is the product, or in this case, the patient. In a Lean system, a nurse waiting for the next patient to triage is not a waste, but a patient waiting for triage is. For Taylor, the opposite is true.

Briefly argue in favor of Taylor's perspective or Ohno's perspective.

In: Operations Management

Select all that are correct: 14. Brown Dwarfs: a. are plotted at the extreme lower left-hand...

Select all that are correct: 14. Brown Dwarfs: a. are plotted at the extreme lower left-hand corner of an HR diagram. b. are all main sequence stars. c. are actually Òfailed stars.Ó d. include Jupiter. e. are all thought to be the final evolutionary state of the lowest mass Main Sequence stars. 20. During post main sequence evolution: a. elements heavier than helium can be produced. b. the remaining lifetime is much shorter than the same star's main sequence lifetime had been. c. all stars will become extreme Population I stars in their surface spectrum. d. some stars still continue to burn hydrogen in their innermost cores. e. all stars tend to increase their masses slightly.

In: Physics

a box contains two halves separated by a partition. Initially, there are 3 ideal gas molecules...

a box contains two halves separated by a partition. Initially, there are 3 ideal gas molecules in the left half, and a vacuum in the right half. The partiition is then removed so the gas goes through a "free expansion" so that the speeds of the molecules are unaffected. In the final state, each molecule has probability of 1/2 of being in the left half of the box and probability of 1/2 being in the right half od the box. Because each of the 3 molecules now has twice as many possible positions than before, the number of microstates of the system has increased by a factor of 2x2x2=2^3. Determine the change in entropy of the system as a result of removing the partition. (Note: We can only calculate the change in entropy of the system but not the initial and final entropy values without knowing more information) What is the probability that all three molecules will simultanesouly be in the left half of the box?

In: Physics

1. As the frequency goes to zero, to what value does the phase constant approach? What...

1. As the frequency goes to zero, to what value does the phase constant approach? What is expected?

2. To what value should the phase constant approach at very high (compared to the resonant frequency)?

3. Does the current lead or lag the applied voltage at very high frequency?

4. For driving frequencies below the resonant frequency, which is larger, the capacitive reactance or the inductive reactance?

5. Can any of the amplitudes VR, VL, or Vc be larger than the amplitude of the source emf E? Why or why not? One might consider an RLC phasor diagram to answer this question.

In: Physics

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

must have a minimum of 5-7 sentences per question and evidence in each response... Visiting Angels...

must have a minimum of 5-7 sentences per question and evidence in each response...

Visiting Angels

Connie Hill, whose father was at home sick, became sensitive to the needs and struggles of senior citizens who wish to remain at home. After losing her hospital job a few years after her father’s death, she purchased the franchise of Visiting Angels, a national network of nonmedical, senior home care agencies providing service to help elderly and older adults who continue to live in their homes.

Hill reasoned that, from a business standpoint, a well-developed strategy focused on improving the welfare of senior citizens has a good opportunity to succeed. As people are living longer, there are more seniors who wish to remain in their own homes while needing assistance in daily living. She felt that starting her own business created a greater potential for good income while controlling her own fate.

“Management experience is the essential skill that individuals interested in my job field need,” states Hill. The experience she gained managing staff at the hospital in her previous job proved to be invaluable in coaching employees and building effective teams.

“I personally meet with every client before their care begins. It makes them feel comfortable. I want people to say ‘Call Connie’ when they need care for a loved one. I want my name to be synonymous with Visiting Angels.”

When screening potential employees to administer this care, Hill states that it’s vital to establish the right fit between caregivers and clients. When she hires, even if the person’s credentials and skills are top-notch, she asks herself, “Is this someone I would want to take care of my mother?”

She feels that the most important thing to fulfill the needs of seniors is finding individuals with a “heart for serving.” Hill says they are available 24 hours a day. “We want to make Visiting Angels available whenever our clients need us. My first priority is meeting the needs of my clients.”

She states that even after 12 to 13 hours of work, this kind of business makes you feel good because you know you’ve helped someone. As her business continues to grow, she says she never wants to stop her hands-on involvement with the seniors they care for, their families, and her team. “To be in this field and to succeed in it you should have both the heart and the passion for assisting in and easing the life of senior citizens.”

Questions

  1. Do you think that Hill’s method of screening potential employees has a positive effect on her relationship with them?
  2. Do you agree with her hiring techniques?
  3. Do you think she should have a different approach hiring potential employees to work with the elderly?
  4. Does Hill’s hands-on approach to her business help to break some of the barriers to effective communication?

In: Operations Management

Should students with learning disabilities be entitled to academic accommodations? If so, what accommodations should students...

Should students with learning disabilities be entitled to academic accommodations? If so, what accommodations should students with learning disabilities have right to? Should such accommodations be made at all levels of education (i.e., elementary school, secondary school, college and university)? Would granting accommodations to students with learning disabilities be unfair to students without learning disabilities?

In: Psychology

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