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
scoray [572]
3 years ago
14

The expression Floor(Random()*6) produces the numbers_______ through_______ . (Note: this question has 2 parts; you must answer

each part correctly to receive full marks.)
Question 6


The starting value of an algorithm used to generate a range of numbers is called the _________.


Question 7


If Number = 6, what is the range of possible numbers that can result from:


Floor(Random() * Number)


The range starts at .


The range ends at .


(Note, this question has 2 parts; you must answer each part correctly to receive full marks.)


Question 8


The ___________ function converts a floating point number to an integer by dropping the fractional part of the number. (For your answer, enter only the function, not any parameters that the function can carry.)
Computers and Technology
1 answer:
ICE Princess25 [194]3 years ago
4 0

Answer & Explanation:

First question:

0 through 5

Explanation: The range starts at 0 and maximum range of simple Random() is 0.9, hence 0 is starting range and end range is 0.9 * 6 = 5.4. After than Floor() will remove the fractional part resulting to 5  

Question 6:

It is called seed value, which decides the range of random numbers to be generated.

Question 7:

The range starts at 0

The range ends at 5

Explanation: The range starts at 0 and maximum range of simple Random() is 0.9, hence 0 is starting range and end range is 0.9 * 6 = 5.4. After then Floor() will remove the fractional part resulting to 5

Question 8:

Floor() converts a floating point to an integer dropping the fractional part.

You might be interested in
A security analyst is investigating a call from a user regarding one of the websites receiving a 503: Service unavailable error.
OverLord2011 [107]

Answer:

C. Denial of Service

Explanation:

Denial of service error occurs when the legitimate users are unable to access the system. They are then unable to access the information contained in the system. This can also be a cyber attack on the system in which user are stopped from accessing their personal and important information and then ransom is claimed to retrieve the attack. In such case system resources and information are temporarily unavailable to the users which disrupts the services.

5 0
4 years ago
Plagiarism is when you try to pass of someone else's words as your own. What else does it include? Select all that apply. Please
Andreyy89
All of the above, except images
3 0
4 years ago
A spreadsheet is an example of a(n):
zhenek [66]

Answer:

general-purpose application

Explanation:

General purpose application

1. These are software applications which can be used for multiple purposes.

2. These applications perform various tasks as per the need of the user. These tasks can vary in complexity and may or may not be related to each other.

3. These applications are useful for almost all categories of users.

Example include spreadsheets which is a primary application for accounting purpose. It can also be used for to store numerical data or other data in an organized format.

Another use of spreadsheets is visible in data analysis. Graphs and charts can be created based on the given numerical data stored in the spreadsheet. This helps in business growth.

Microsoft Excel and Apple Numbers are spreadsheet applications.

Another example is a word application that can be used to prepare document, reports, and flyers also. Microsoft word is a word processor.

Specialized program

1. These are software applications which can be used for special purpose only.

2. These applications can perform only the task for which it is created.

Examples include windows media player. This application can only run media (audio or video) programs.

System application

1. These include operating system and utility applications.

2. The operating system acts as an interface between the user and the hardware resources of the computer.

For example, Windows is an operating system. It is available in various versions.

3. The computer system and its resources, both software and hardware, are maintained and optimized using utility applications.

Anti-virus is an example of utility applications. It protects the computer resources from virus.

Utility applications

4. The computer system and its resources, both software and hardware, are maintained and optimized using utility applications.

5. These applications are mandatory to smooth functioning of a computer.

For example, disk driver, file manager and back up applications help in managing disks and aid in taking back ups and file management is done by file manager

8 0
3 years ago
Design pseudocode for a program that will permit a user to store exactly 50 numbers in an array. Create an array big enough to h
galben [10]

Answer:

#include<stdio.h>

//declare a named constant

#define MAX 50

int main()

{

   //declare the array

   int a[MAX],i;

   //for loop to access the elements from user

   for(i=0;i<MAX;i++)

   {

      printf("\n Enter a number to a[%d]",i+1);

      scanf("%d",&a[i]);

  }

  //display the input elements

  printf("\n The array elements are :");

  for(i=0;i<=MAX;i++)

  printf(" %d ",a[i]);

}

Explanation:

PSEUDOCODE INPUTARRAY(A[MAX])

REPEAT FOR I EQUALS TO 1 TO MAX

PRINT “Enter a number to A[I]”

READ A[I]

[END OF LOOP]

REPEAT FOR I EQUALS TO 1 TO MAX

PRINT A[I]

[END OF LOOP]

RETURN

ALGORITHM

ALGORITHM PRINTARRAY(A[MAX])

REPEAT FOR I<=1 TO MAX

PRINT “Enter a number”

INPUT A[I]

[END OF LOOP]

REPEAT FOR I<=1 TO MAX

PRINT A[I]

[END OF LOOP]

6 0
3 years ago
Consider your lab assignment when reviewing the following code that will be placed in the CopyingJeroo class: public void atFlow
Mice21 [21]

Answer:

The image would be created on the second island and removed from the first island.

3 0
4 years ago
Other questions:
  • Assume the following rules of associativity and precedence for expressions:
    7·1 answer
  • Local variables:
    7·1 answer
  • Why is it important to evaluate the website on which you plan to shop?
    11·2 answers
  • I want to be a teacher some day and i know this question------------- Humans have a nose to breath , but what do fishes use to h
    6·2 answers
  • Your Google Search text ad has three main components. The first is a headline, and the second is a description. What's the third
    14·1 answer
  • What happens when you apply a theme to a form?
    14·1 answer
  • Join my me et.goo gle.etj-dovn-kds​
    11·1 answer
  • True or False: Nanomemory applies to computers.
    13·1 answer
  • Classify computer software and write short note about it ?​
    6·1 answer
  • Write a sub-program to display the acceleration of car. The program should ask initial velocity, final velocity, and time taken
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!