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
emmainna [20.7K]
3 years ago
8

A void function can return any value. TRUE FALSE

Computers and Technology
1 answer:
vampirchik [111]3 years ago
7 0

Answer:

False

Explanation:

False

A void function does not return anything

You might be interested in
After you divide the viewfinder appropriately you locate the subject? PLZ ANSWER MY TEST DO BY TONIGHT
Sloan [31]
The Answer is A: <span>along one of the division lines. </span>
4 0
3 years ago
Write a program for a simple game of guessing at a secret five-digit code. When the user enters a guess at the code, the program
Margaret [11]

Answer:

from random import randint

winner  = False

number = str(randint(10000, 99999))

while (not winner):

   correct = 0

   total = 0

   guess = input()

   

   if(number==guess):

       winner = True

   else:

       for i in range(5):

           if(number[i] == guess[i]):

               correct+=1

               total+=int(number[i])

       

       print('Correct: '+ str(correct))

       print('Total: '+ str(total))

print('Winner')

Explanation:

I´m gonna show a solution in python 3

Step 1 import library for generate random number

from random import randint

Step 2 create necesary variables to get the number and if the player is winner or not

winner  = False

number = str(randint(10000, 99999))

Step 3 loop while the player is not the winner

while (not winner):

Step 4 get the player guess number

guess = input()

Step 5 validate if the player win

if(number==guess):

       winner = True

Step 6 if the player is not winner review what numbers are  in the correct position

for i in range(5):

           if(number[i] == guess[i]):

               correct+=1

               total+=int(number[i])

Step 7 print the hint

print('Correct: '+ str(correct))

print('Total: '+ str(total))

6 0
4 years ago
Seven and two eighths minus five and one eighth equals?
lakkis [162]

Answer: 2.125

Explanation

4 0
3 years ago
Write a method named hopscotch that accepts an integer parameter for a number of "hops" and prints a hopscotch board of that man
Ivanshal [37]

Answer:

Following are the program in the Java Programming Language.

public class Main // declared class  

{

public void hopscotch(int x) // function definition  

{

int count=0; // variable declaration  

for (int j=0; j<x; j++) // iterating over the loop

{

System.out.println(" " + (++count)); // print the value of count

System.out.println((++count) + " " + (++count));

}

System.out.println(" " + (++count));  

}

public static void main(String[] args) // main method  

{

Main ob=new Main(); // creating object

ob.hopscotch(3); // calling hopscotch method  

}

}

<u>Output</u>:

  1

2     3

  4

5     6

  7

8     9

  10

Explanation:

Here, we define a class "Main" and inside the class, we define a function  "hopscotch()" and pass an integer type argument in its parentheses and inside the function.

  • We set an integer variable "count" and assign value to 0.
  • Set the for loop which starts from 0 and end at "x" then, print space and value inside the loop, again print value then space then value, then repeat the 1st print space then value.
  • Finally, set the main function "main()" and inside the main function, we create the object of the class "ob" then, call the function " hopscotch()" through the object and pass the value 3 in its parentheses.
8 0
3 years ago
Which of the following best describes why Earth’s atmosphere can support life on Earth?
Juliette [100K]
C. is very thin, thus allowing harmful gases to escape from it
4 0
3 years ago
Other questions:
  • True or false the primary advantage of the worksheet is the ability to solve numerical problems quickly and accurately
    11·1 answer
  • Match each item with a statement below. a device used in mobile devices to sense the physical position of the device an area whe
    11·1 answer
  • What is the best overall approach to education and career development for IT professionals?
    14·2 answers
  • Along with an ip address, a subnet mask, and a name server, the other thing required for a computer to operate on a network is a
    15·1 answer
  • What other options are there besides jail for 16 year old that commit a crime?
    8·2 answers
  • Given the function F (X, Y , Z)=Σm(0,1, 2 , 4 , 6)
    13·1 answer
  • Which of these expressions is used to check whether num is equal to value?
    13·1 answer
  • A developer designed a process in UiPath Studio that is best-suited for a simple and linear process. Which Studio workflow type
    7·1 answer
  • Photo editing software, desktop publishing, email and word processing software is most likely to be used by:
    12·1 answer
  • the application you attempted to authenticate to is not authorized to use cas. contact your cas administrator to learn how you m
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!