hi, can you please create me a game that is not too hard but not too easy using pygame in python. can you also explain the codes in each line ?
In: Computer Science
Question 1:
Explain what I/O operation service provides. Describe why user application programs cannot provide these services.
Question 2 :
Discuss the advantage and disadvantages of a layered approach.
In: Computer Science
please research software build and automation tools such as Maven, ANT, and Gradle. Answer the following in your post:
- What are used for and how are they used? - Compare and contrast each of the tools. - What are the benefits and best uses of each tool? Make sure you main post is 200 words.
In: Computer Science
In: Computer Science
Consider the following class definition:
public class Parent {
private int varA;
protected double varB;
public Parent(int a, double b){
varA = a;
varB = b;
}
public int sum( ){
return varA + varB;
}
public String toString( ){
return "" + varA + " " + varB;
}
}
Consider that you want to extend Parent to Child. Child will have a third int instance data varC.
In: Computer Science
In C++, write a program that will read up to 10 letters (characters) into an array and write the letters back to the screen in the reverse order. The program should prompt the user to input all values and can determine whether the input has ended by a punctuation mark such as ‘.’ (make sure that you’ll include meaningful and intuitive messages to the user).
For example, if the input is abcde, the output should be edcba. Include appropriate messaging (UI) to the user.
In: Computer Science
In JAVA
Create a simple guessing game, similar to Hangman, in which the user guesses letters and then attempts to guess a partially hidden phrase. Display a phrase in which some of the letters are replaced by asterisks: for example, G* T*** (for Go Team). Each time the user guesses a letter, either place the letter in the correct spot (or spots) in the phrase and display it again or tell the user the guessed letter is not in the phrase. Display a congratulatory message when the entire correct phrase has been deduced. Add to this the ability for the user to guess the entire phrase. Save the game as SecretPhrase.java.
Add to this an array of 10 phrases to choose from. Generate a random number to use to select one of the phrases from your array.
Also, add a second array to the the alphabet. As the user guesses a letter mark this letter in the alphabet array as used. When the user attempts to use a letter that was already used, tell them that letter was already user to please guess another letter.
Make the game loop so after a round the user can choose to play again and a different phrase will be chosen.
In: Computer Science
When is an ECPA relevant? Computer forensics
In: Computer Science
Describe a hypothetical scenario where someone would act in ways that are not legal, but it is ethical.
Describe a hypothetical scenario where someone would act in ways that are legal, but not ethical.
(150 Words for each case)
In: Computer Science
Design an O(n log n) algorithm that takes two arrays A and B (not necessarily sorted) of size n of real numbers and a value v. The algorithm returns i and j if there exist i and j such that A[i] + B[j] = v and no otherwise. Describe your algorithm in English and give its time analysis.
In: Computer Science
What properties would make a buffer overflow condition in a program exploitable or useful to an attacker?
In: Computer Science
PYTHON
def find_treasure(mapfile):
with open (mapfile, 'r') as f:
data = f.readlines()
for i, row in enumerate(data):
for j, column in enumerate(row):
if 'S' in column:
print((i,j))
return (i,j)
#This is what mapfile contains
#AAASAAA
#AASSSAA
#AAASAAA
#Need to find the coordinate of the middle S
In: Computer Science
Develop a function to read a document in the MongoDB database
“city” in the collection “inspections.” Be sure it can handle error
conditions gracefully.
a. Input -> arguments to function should be the key/value lookup
pair to use with the MongoDB driver find API call
b. return -> result in JSON format if successful else MongoDB
returned error message
In: Computer Science
(1) Discuss the rules involving actual parameter lists, including matching data types and a one-to-one correspondence with the formal parameter list. Note that the parameter list can be empty, but the function call will still require parentheses after the function name.
(2) Discuss scope rules with respect to global and local identifiers, nested blocks, and functions.
(3) Discuss how local declarations are stored in computer memory. Are there any reasons to avoid using local declarations if it is possible to achieve the same result without them?
In: Computer Science
Define a class to represent a Temperature. Your class should contain
In: Computer Science