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 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 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:
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 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 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
In: Computer Science
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
Question 2: Strategic Management of IT [50 marks]
The strategic management of IT can be achieved through the use of various resources.
a) With the aid of examples, discuss the role played by policies and procedures in the strategic management of IT. [25 marks]
b) Propose and discuss the aspects that should be considered during the drafting of an Information Security policy document [25 marks]
In: Computer Science
Question 3: Risk Management [50 marks]
Risk management was identified in the NamCode as being an important activity during governance.
a) Outline how you would develop a risk management program in IT [25 marks]
b) Critically evaluate the strengths and weakness of the various risk analysis methods in IT. [25 marks]
In: Computer Science
c. Why declaring data as protected doesn’t serve any meaningful purpose?
e. How does constructor calling works in an inheritance hierarchy?
In Java. Please answer give thorough answers 200-300 words
In: Computer Science
1. Create a PHP page with standard HTML tags. Remember to save
the file with
the .php extension.
Inside the <body> tag, create a PHP section that will show
the text "Hello
World!"
2. For this exercise, echo the phrase "Twinkle, Twinkle little
star." Create
two variables, one for the word "Twinkle" and one for the word
"star". Echo
the statement tothe browser.
3. PHP includes all the standard arithmetic operators. For this
PHP
exercise, you will use them along with variables to print equations
to the
browser. In your script, create the following variables:
$x=10;
$y=7;
Write code to print out the following:
10 + 7 = 17
10 - 7 = 3
10 * 7 = 70
10 / 7 = 1.4285714285714
10 % 7 = 3
Use numbers only in the above variable assignments, not in the
echo
statements. You will need a third variable as well.
Note: this is intended as a simple, beginning exercise, not using
arrays or
loops.
4. Arithmetic-assignment operators perform an arithmetic operation
on the
variable at the same time as assigning a new value. For this PHP
exercise,
write a script to reproduce the output below. Manipulate only one
variable
using no simple arithmetic operators to produce the values given in
the
statements.
Hint: In the script each statement ends with "Value is now
$variable."
Value is now 8.
Add 2. Value is now 10.
Subtract 4. Value is now 6.
Multiply by 5. Value is now 30.
Divide by 3. Value is now 10.
Increment value by one. Value is now 11.
Decrement value by one. Value is now 10.
In: Computer Science
PLEASE NOTE:1)-DO NOT USE FUNCTIONS USE ONLY DO WHILE LOOP.
2)DO NOT USE IN-BUILT FUNCTIONS.
3)Use of string and char is not allowed.
Write a program in c laungage that prints a table of the binary, octal and hexadecimal equivalents of the decimal numbers in the range1 through 256.
In: Computer Science
MONGODB Question (Similar to JSON) NOSQL QUESTION
1. Describe a scenario and write a query that uses any two of these functions: $concat, $substr, $toLower, $toUpper
2. Describe a scenario and write a query that uses any two of these functions: $add, $divide, $mod, $multiply, $subtract
3. Describe a scenario and write a query that uses $redact, $$descend and $$prune command
In: Computer Science
For your analysis of this module's material, think about the growing capabilities of technology to connect people and the potential opportunities and challenges of the increasing connectivity throughout the world. What is your outlook on the importance of the Internet, IoT (the Internet of Things) and other connectivity technology? Do you agree with Gilder's concept of the "Telecosm" (see module Overview)? In your discussion share an example of at least one benefit and one challenge (that weren't already covered in the module) of the continued development of global connectivity.
In: Computer Science
1. Write a function named ”ThreeDicesAdd” to perform the
following ”experiment” 1000 times: roll 3
six-sided dice and add their values. Put the outcomes in a list
called addDiceList. So addDiceList should
have length 1000, and each of the 1000 elements should be an
integer from 3 to 18. Plot the histogram of
the outcomes.
2. For the same experiment as in question 1, write a function named
”ThreeDicesAdd2” to increase the
experiment times (N) and see how the histogram of the outcomes
changes. For each N, you will have one
histogram plot. Output all plots as a GIF file. (Choose N= 1000 :
10,000 : 1,000,000). matlab question
In: Computer Science