Questions
hi, can you please create me a game that is not too hard but not too...

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...

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...

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

Create the directory tree above in your /home/username folder using at most three (3) mkdir commands...

  1. Create the directory tree above in your /home/username folder using at most three (3) mkdir commands

  1. Use the ‘cat’ utility to create two text files called “nfile1” & “nfile2” in the “notes” directory. “nfile1” should contain the names of persons (at least 2 persons).

  1. Use the vi editor to create a simple text file, then save & quit. Briefly explain the various modes of vi and show how to delete a character, a word and a line

  1. Use the ‘tar’ utility to create an archive file of the ‘labs’ directory. Name your archive file labs.tar. Show how you can retrieve the contents from the labs.tar file.

  1. Move the file “nfile2” into the “unix” directory.

  1. Copy the file “nfile1” into the “java” directory.

  1. Show how you would create the files “test1”, “test2”, & “test3” in the “test” directory to ensure that they have the same file creation date/time.

In: Computer Science

Consider the following class definition:                   public class Parent {               private

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.

  1. Write the parameterized constructor definition for Child;
  2. Write the code to override the sum() method to now add all three values and return the sum;
  3. Write the code to define a method average() to calculate and return the average of varB and varC.
  4. Write the code to override the toString() method for Child.

In: Computer Science

In C++, write a program that will read up to 10 letters (characters) into an array...

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...

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

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...

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)...

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...

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...

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.”...

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...

(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 Instance variable int fahrenheit A...

Define a class to represent a Temperature. Your class should contain

  • Instance variable int fahrenheit
  • A parameterized constructor;
  • Member method to calculate the equivalent temperature in Celsius unit toCelsius() with decimal value.
    • double toCelsius()
    • Conversion formula: celsius= (fahrenheit - 32) * 5/9
  • Method definition to override the equals() method
    • boolean equals(Object obj)

In: Computer Science