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
VMariaS [17]
3 years ago
6

WHAT DOES THE SCRATCH CODE BELOW DO?

Computers and Technology
1 answer:
Vinil7 [7]3 years ago
7 0
I think it’s b vertically
You might be interested in
(Language: Python) How can you know what value is in a variable by looking at the code?
tatuchka [14]

Answer:

B. It’s always a string that matches the variable name.

4 0
2 years ago
Exampels of semantic tags ?​
spayn [35]
A semantic element clearly describes its meaning to both the browser and the developer.Examples of non-semantic elements: and <span> - Tells nothing about its content. Examples of semantic elements: ,, and - Clearly defines its content.</span>
4 0
3 years ago
How many generations of computer languages have there been since the middle of the 20th century?
Anuta_ua [19.1K]
4. https://en.m.wikibooks.org/wiki/A-level_Computing/AQA/Computer_Components,_The_Stored_Program_Concept_and_the_Internet/Fundamentals_of_Computer_Systems/Generations_of_programming_language
3 0
3 years ago
Write a program that asks the user to enter a positive integer that represents a number in the decimal system and then displays
Maru [420]

Answer:

In Python:

def decimalToBinary(num):

   if num == 0:

       return 0

   else:

       return(num%2 + 10*decimalToBinary(int(num//2)))

       

decimal_number = int(input("Decimal Number: "))

print("Decimal: "+str(decimalToBinary(decimal_number)))

Explanation:

This defines the function

def decimalToBinary(num):

If num is 0, this returns 0

<em>    if num == 0: </em>

<em>        return 0 </em>

If otherwise

   else:

num is divided by 2, the remainder is saved and the result is recursively passed to the function; this is done until the binary representation is gotten

       return(num%2 + 10*decimalToBinary(int(num//2)))

       

The main begins here.

This prompts the user for decimal number

decimal_number = int(input("Decimal Number: "))

This calls the function and prints the binary representation

print("Decimal: "+str(decimalToBinary(decimal_number)))

3 0
3 years ago
Write a program that asks the user for the name of a text file. The program should display the first 10 lines of the file on the
tangare [24]

Answer:

Written in Python

filenm = input("File name: ")

myfile = open(filenm+".txt")

for i in range(10):

     line = myfile.readline()

     print(line)

print("End of file")

Explanation:

This line prompts user for file name

filenm = input("File name: ")

This line creates an instance of the file

myfile = open(filenm+".txt")

This line iterates through the 10 lines

for i in range(10):

This line reads the line

     line = myfile.readline()

This line prints each line

     print(line)

This line prints a message indicating that all possible lines have been printed

print("End of file")

5 0
3 years ago
Other questions:
  • Which osi model layer manages data encryption?
    14·1 answer
  • 1. _____ can’t be rewritten by the computer in which it’s installed, but it has the advantage of being very _____.
    6·1 answer
  • Linux is
    8·1 answer
  • How do you delete a slide from your presentation after selecting it
    8·1 answer
  • ​ In a systems development life cycle (SDLC) model, the purpose of the _____ is to build a logical model of the new system.
    11·1 answer
  • Simone frequently downloads mobile apps from Amazon Appstore. What operating system does she have on her smartphone?
    6·1 answer
  • The private field, which is known as the property‘s __________, holds any data that is assigned to the property.a. private datab.
    9·1 answer
  • Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive.
    8·1 answer
  • Create a flowchart that assigns a counselor to a student.
    9·2 answers
  • Which describes a set amount of pay received by a worker over the course of a year?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!