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
Sladkaya [172]
3 years ago
13

An algorithm that could execute for an unknown amount of time because it depends on random numbers to exit a function may:______

_
a. have a redundancy.
b. get caught in an infinite loop.
c. suffer from indefinite postponement.
d. issue a compiler error.
Computers and Technology
1 answer:
Anna007 [38]3 years ago
8 0

Answer:

c. suffer from indefinite postponement.

Explanation:

Algorithm is a set of rules that are followed in calculations or other problem solving operation by a computer. An algorithm may execute for unknown amount of time and it may suffer indefinite postponement. Algorithm depends on random numbers and it can execute continuously.

You might be interested in
Assume that a file containing a series of integers is named numbers.txt. Write a program that calculates the average of all the
Anna [14]

Answer:

Program in Python:

file = open("numbers.txt", "r")

count = 0

isum = 0

content = file.readlines()

for nums in content:

    num = nums.rstrip('\n').split(" ")

         for i in num:

              isum= isum + int(i)

              count = count + 1

print("Average: "+str(isum/count))

Explanation:

This line opens the file named numbers.txt

file = open("numbers.txt", "r")

This line initializes num to 0

count = 0

This line initializes sum to 0

isum = 0

This line reads the content of the opened file file

content = file.readlines()

This iterates through the content of the file

for nums in content:

This removes trailing new lines and blank spaces from each number

    num = nums.rstrip('\n').split(" ")

This also iterates through the content of the file

         for i in num:

This calculates the sum of the numbers in the file

              isum= isum + int(i)

This counts the numbers in the file

              count = count + 1

This calculates and prints the average of the numbers

print("Average: "+str(isum/count))

8 0
3 years ago
Each of the following is a benefit provided by using views except for one. Which one is it? Group of answer choices a) You can u
Dmitry_Shevchenko [17]

Answer:

The answer to this question can be given as:

In this question the option b,c, and d are correct.

Explanation:

A (DBMS) stands for a database management system. The DBMS is a software package that is used for crate, update, and delete. The database uses the SQL which stands for the structured query language. It is a programming language that uses the queries. These queries are used to providing many operations in the database like crate table, update table, join table, create a view of the table, etc. In the database, we can view the code of the join table and is also used to hide the complexity of retrieval operations, it can help in the update the table in a single statement.

8 0
3 years ago
Write a Java program named Problem 3 that prompts the user to enter two integers, a start value and end value ( you may assume t
Mashcka [7]

Answer:

hope this helps

Explanation:

import java.util.Scanner;

public class Problem3 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter start value: ");

       int start = in.nextInt();

       System.out.print("Enter end value: ");

       int end = in.nextInt();

       if (start > end) {

           int temp = start;

           start = end;

           end = temp;

       }

       for (int i = start; i <= end; i++) {

           if (i % 2 == 1) {

               System.out.print(i);

               if (i == end || i + 1 == end) {

                   System.out.println();

               } else {

                   System.out.print(", ");

               }

           }

       }

   }

}

5 0
3 years ago
Please help i only have 20 minuets
Leya [2.2K]

i think parachute is the correct answer

because this landing method is good without making any dust

8 0
3 years ago
What is the difference between closed and open questions????
Juliette [100K]
Here is some information for you about the difference between open and closed questions. :)

7 0
3 years ago
Other questions:
  • HELP NOW PLZZ/ Question: Complete the sentence with the correct response.
    11·1 answer
  • The process of changing data from their original form to a format that more closely fits the research objectives of the research
    9·1 answer
  • A network engineer is examining a configuration implemented by a new intern who attached an ip phone to a switch port and config
    9·1 answer
  • What is the basic difference between a printer and a plotter?​
    12·1 answer
  • Which camera mode gives the photographer the greatest amount of control?
    7·2 answers
  • Does ripping a dvd erase the original content
    12·1 answer
  • Yuki is preparing to write a research paper for his history class. Which style guide would be best for him to use?
    8·2 answers
  • Ok so this question is kinda weird but does anyone know what google drive is. If so how do you upload a video to it?
    11·2 answers
  • If I use google incognito mode or a throwaway google account can my search history be tracked by Microsoft parental controls?
    7·1 answer
  • What is the output of this program?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!