1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aev [14]
3 years ago
14

What is the code for Pong that would work on Khan Academy?

Computers and Technology
1 answer:
Rashid [163]3 years ago
7 0
Draw = function() {
if () {
if (keyCode === ){
();
}
else if (keyCode === ) {
();
}
}
};
You might be interested in
Write a method max that has two string parameters and returns the larger of the two.
PtichkaEL [24]
Pls. see attachment. 


8 0
3 years ago
3. Write a program that has the user enter two Strings. Display whether the first String is less than (comes first alphabeticall
Citrus2011 [14]

Answer:

The solution code is written in Python 3

  1. firstStr = input("Enter first string: ")
  2. secondStr = input("Enter second string: ")
  3. if(firstStr < secondStr):
  4.    print("The first string comes first alphabetically.")
  5. elif(firstStr > secondStr):
  6.    print("The second string comes first alphabetically.")
  7. else:
  8.    print("The first and second string are same")

Explanation:

Firstly, prompt the user to input two strings (Line 1 - 2).

Next create if else if statement to check if the firstStr is less than, greater than or equal to the secondStr and then print the appropriate message accordingly (Line 4- 9). For example, the program display message "The first string comes first alphabetically." if it find the firstStr is less than secondStr.

4 0
3 years ago
PLEASE HELP!!!!!
Allushta [10]

Answer:

Insert

Explanation:

Insert

7 0
3 years ago
Read 2 more answers
Guess the output #includes&lt;stdio•h&gt;
kondaur [170]
Hello. Is the one I work do.
3 0
3 years ago
Which action will help you protect data in computer in case of an earthquake?
Dennis_Churaev [7]

Answer:

having a backup disk or storing the information in the cloud

Explanation:

7 0
3 years ago
Other questions:
  • Which diagrams represent how roles can affect careers and lifestyles
    11·1 answer
  • Write the definition of a function max that has three int parameters and returns the largest.
    6·2 answers
  • Write the Python code to implement each step of the following algorithm. Your code should use descriptive variable names and per
    7·1 answer
  • Which tag will you use if you want your web page to look the same as your source code?
    11·1 answer
  • Use a VLOOKUP function in cell I5 to identify and calculate the federal withholding tax. Use the tax rates from the range D21:E2
    15·1 answer
  • ethics and internal control are important applications in accounting . Provide FIVE code of ethics and five internal control mea
    14·1 answer
  • The computers in the administrative offices of the four schools throughout the district are networked to enable employees to acc
    8·1 answer
  • What are the advantages to using a linked implementation as opposed to an array implementation?
    8·1 answer
  • Design the program in the following way:
    8·1 answer
  • You need to configure your Android phone so that you can receive your Yahoo email on the device. What information would you need
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!