A collection of code makes up what

Answers

Answer 1

Answer:

In computing, source code is any collection of code, with or without comments, written using a human-readable programming language, usually as plain text.

Explanation:

source code may be interpreted and thus immediately executed.


Related Questions

3. List and explain FIVE (5) types of services performed by
operating system?​

Answers

Memory Management
Processor Management
Device Management
File Management
Security

Explain the basic method for implementing paging.

Answers

Answer:

The answer is below

Explanation:

In order to carry out the basic method for implementing paging, the following processes are involved:

1. Both physical and logical memories are broken into predetermined sizes of blocks otherwise known as FRAMES and PAGES respectively

2. During processing, Pages are loaded into the accessible free memory frames from the backing store. The backing store is however compartmentalized into predetermined sizes of blocks whose size is equal to the size of the memory frames

9
of
Thich
the following Controls the process of
system? 6) User interface (b) Language Translator
c) platform (d) Screen Saver
teraction between​

Answers

Answer:

I'm sorry the answer is really difficult to understand, could you explain?

Explanation:

declare a variable to store 1009.87 in computer​

Answers

Answer: float n1=1009.87;  

hope this helps

plz mark brainleist

Where does the CPU store its computations?
A. Registers
B. External Data Bus
C. Binary
D. Processor

Answers

Answer: A. Registers

Explanation:

Option A is correct. The CPU stores its computations in the Registers

The CPU is known as the Central Processing Unit.

The CPU is useful in reading data and instructions from memory and then stores the results of what was computed in its main memory.

This computation in the main memory is usually stored in the Register.

Hence we can conclude that the CPU store its computations in the Register.

Learn more here: https://brainly.com/question/18259388

Write a MATLAB function named lin_spaced_vector with two inputs and one return value. The first input will be a single real number representing a lower bound The second input will be a single real number representing an upper bound The return value must be a list of 200 numbers evenly spaced between the lower bound and the upper bound.

Answers

Explanation:

==================  

lin_spaced_vector.m  

==================  

function out=lin_spaced_vector(in1,in2)%defining function

out=linspace(in1,in2,200);%200 spaced numbers between in1 and in2

end​

===================  

Executable File

===================

clear all%clears history

clc%clears screen

lin_spaced_vector(1,10)%calling function​

clear all

clc

lin_spaced_vector(1,10)

How many different values can be stored in a byte?

Answers

Answer:

255

Explanation:

1 byte has 8 bits, that is, 8 combinations of binary inputs, which can result in calculations up to the number 2 ^ 8-1 = 255 (-1 because 0 will always be the first number), a computer nowadays has 64 bits (8bytes ), thus being able to calculate numbers up to 2 ^ 64-1, an integer file has 4 bytes, being able to calculate up to 2 ^ 32-1, and so on.

Do AirPods Pro have a person say “Low battery” or did I buy fake AirPods?

Answers

Fake AirPods

It would show low battery on the phone

Brainliest?
Fake air pods make it the
Brain 1

Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B travels south at an average speed of y miles per hour. Write a program that prompts the user to enter: The average speed of both the cars The elapsed time (in hours and minutes, separated by a space) Ex: For two hours and 30 minutes, 2 30 would be entered

Answers

Answer:

Here is the C++ program:

#include <iostream>  // to use input output functions

#include <cmath>  // to use math functions like sqrt()

#include <iomanip>  //to use setprecision method

using namespace std;   //to access objects like cin cout

int main ()  {  //start of main function

  double speedA;  //double type variable to store average speed of car A

  double speedB;  //double type variable to store average speed of car B

  int hour;  //int type variable to hold hour part of elapsed time

  int minutes;  //int type variable to hold minutes part of elapsed time

  double shortDistance;  // double type variable to store the result of shortest distance between car A and B

  double distanceA;  //stores the distance of carA

  double distanceB;  //stores the distance of carB

  double mins,hours;   //used to convert the elapsed time

cout << "Enter average speed of car A: " << endl;  //prompt user to enter the average speed of car A

cin >> speedA;   //reads the input value of average speed of car A from user

cout << "Enter average speed of car B: " << endl ;  //prompt user to enter the average speed of car B

cin >> speedB;   //reads the input value of average speed of car A from user

cout << "Enter elapsed time (in hours and minutes, separated by a space): " << endl;  //prompts user to enter elapsed time

cin>> hour >> minutes;    //reads elapsed time in hours and minutes

  mins = hour * 60;  //computes the minutes using value of hour

  hours = (minutes+mins)/60;     //computes hours using minutes and mins

distanceA = speedA * (hours);  // computes distance of car A

distanceB = speedB * (hours);   //computes distance of car B

   shortDistance =sqrt((distanceA * distanceA) + (distanceB * distanceB));   //computes shortest distance using formula √[(distanceA)² + (distanceB)²)]

cout << "The (shortest) distance between the cars is: "<<fixed<<setprecision(2)<<shortDistance;

//display the resultant value of shortDistance up to 2 decimal places

Explanation:

I will explain the program with an examples:

Let us suppose that the average speeds of cars are:

speedA = 70

speedB = 55

Elapsed time in hours and minutes:

hour = 2

minutes = 30

After taking these input values the program control moves to the statement:

mins = hour * 60;  

This becomes

mins = 2 * 60

mins = 120

Next

hours = (minutes+mins)/60;

hours = (30 + 120) / 60

         = 150/60

hours = 2.5

Now the next two statements compute distance of the cars:

distanceA = speedA * (hours);  

this becomes

distanceA = 70 * (2.5)

distanceA = 175

distanceB = speedB * (hours);

distanceB = 55 * (2.5)

distanceB = 137.5

Next the shortest distance between car A and car B is computed:

shortDistance = sqrt((distanceA * distanceA) + (distanceB * distanceB));

shortDistance = sqrt((175 * 175) + (137.5 * 137.5))

                        = sqrt(30625 + 18906.25)

                        = sqrt(49531.25)

                        =  222.556173

shortDistance =  222.56

 

Hence the output is:

The (shortest) distance between the cars is: 222.56        

Write a program that converts a time in 12-hour format to 24-hour format. The program will prompt the user to enter a time in HH:MM:SS AM/PM form. (The time must be entered exactly in this format all on one line.) It will then convert the time to 24 hour form. You may use a string type to read in the entire time at once, including the space before AM/PM, or you may choose to use separate variables for the hours, minutes, seconds and AM/PM.

Answers

Answer:

This program is written in Python

inputtime = input("HH:MM:SS AM/PM: ")

splittime = inputtime.split(":")

secondAM = splittime[2].split()

if secondAM[1] == "AM":

   print(splittime[0]+":"+splittime[1]+":"+secondAM[0])

elif secondAM[1] == "PM":

   HH = int(splittime[0])

   HH = HH + 12

   print(str(HH)+":"+splittime[1]+":"+secondAM[0])

   

Explanation:

This line prompts user for input

inputtime = input("HH:MM:SS AM/PM: ")

This line splits the input string to HH, MM and "SS AM/PM"

splittime = inputtime.split(":")

This line splits "SS AM/PM" to SS and AM/PM

secondAM = splittime[2].split()

This line checks if time is AM

if secondAM[1] == "AM":

This line prints the equivalent time

   print(splittime[0]+":"+splittime[1]+":"+secondAM[0])

Else;

elif secondAM[1] == "PM":

The equivalent 24 hour is calculated

   HH = int(splittime[0]) + 12

This line prints the equivalent time

   print(str(HH)+":"+splittime[1]+":"+secondAM[0])

To return the value of the cell D8, the formula should be OFFSETA1=________.

Answers

Answer:

The formula is =OFFSET( A1, 7,3,1,1 )

Explanation:

Microsoft excel is a statistical and analytical tool for data management and analysis. Its working environment is called a worksheet. The worksheets are made up of rows and columns also known as records and fields respectively.

Functions like OFFSET in excel is used to return a cell or group of cells. It gets the position to turn by start getting a starting port, then the number of records below it and the fields after, then the length and width of cells to return.

syntax:   =OFFSET( "starting cell", "number of rows below", "number of columns after", "height of cells to return", "width of cells to return" )

Create a cell reference in a format by typing in the cell name or

Answers

Answer:

D. Create a cell reference in a formula by typing in the cell name or clicking the cell.

Further Explanation:

To create a cell reference in a formula the following procedure is used:

First, click on the cell where you want to add formula.

After that, in the formula bar assign the equal (=) sign.

Now, you have two options to reference one or more cells. Select a cell or range of cells that you want to reference. You can color code the cell references and borders to make it easier to work with it. Here, you can expand the cell selection or corner of the border.

Again, now define the name by typing in the cell and press F3 key to select the paste name box.

Finally, create a reference in any formula by pressing Ctrl+Shift+Enter.

Which of the following forms of identity theft involves posing as a legitimate researcher to ask for personal information?
research spoofing
cyberstalking
phishing
pretexting

Answers

Answer:

Phishing.

Explanation:

Phishing is a form of internet fraud. It consists of defrauding people by luring them to a fake bank website, which is a copy of the real website, to have them log in there - unsuspectingly - with their login name and password or their credit card number. This gives the fraudster access to this data with all the associated consequences. The fraudster poses as a trusted body, such as a bank. Most forms of phishing are done via e-mail, as the mail contains a link to the false website.

what is the function of control unit? in computer.

Answers

Answer:

The control unit of the central processing unit regulates and integrates the operations of the computer. It selects and retrieves instructions from the main memory in proper sequence and interprets them so as to activate the other functional elements of the system at the appropriate moment…

The central processing unit's control unit regulates and integrates the computer's operations.

What is central processing unit?

The central processing unit (CPU) of a computer is basically the component that retrieves as well as executes instructions. A CAD system's CPU is essentially its brain.

It is comprised up of an arithmetic along with logic unit (ALU), a control unit, and a number of registers. The CPU is frequently referred to simply as the processor.

The processor, also referred to as the CPU, provides the instructions and processing power required by the computer to perform its functions.

The control unit (CU) is a component of the central processing unit (CPU) of a computer that directs the processor's operation.

It instructs the computer's memory, arithmetic/logic unit, and input and output devices how to respond to the instructions of a program.

Thus, this is the main function of control unit.

For more details regarding central processing unit, visit:

https://brainly.com/question/13117851

#SPJ6

Are scripted languages easier or more difficult to port than programming languages? Why?

Answers

Answer:

Scripting languages are easier to port to various platforms due to the compiling and interpreting tools it uses to read the source code.

Explanation:

Programming languages are used to create source codes for various applications from web programming to mobile application implementation.

A programming language can be a scripting language, only with the required tools like a compiler or an interpreter. For example, C source codes are compiled to executable scripting file with the GCC compiler and python codes are interpreted with the cpython interpreter.

briefly summarize two examples of cybercrime stories.
quick pleaseeee

Answers

A cyber-crime is a crime that involves computers. For example, the computers could be breached, threaten someone, steal money, etc. Some examples of cyber-crime in real life include:

Former amazon employee breaches Capital One and steals private data.Visa Cards were able to be bypassed without contacts.ASCO received an attack that was ransomware.

Best of Luck!

Read the following program requirements prior to completing the Hands-on. A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the following: • The amount of county sales tax • The amount of state sales tax • The total sales tax (county plus state) Step 1: Write the steps the algorithm:

Answers

Answer:

state_sales_tax_rate = 0.04

county_sales_tax_rate = 0.02

sales = float(input("Enter the total sales for the month: "))

county_sales_tax = sales * county_sales_tax_rate

state_sales_tax = sales * state_sales_tax_rate

total_sales_tax = county_sales_tax + state_sales_tax

print("The amount of county sales tax is " + str(county_sales_tax))

print("The amount of state sales tax is " + str(state_sales_tax))

print("The total sales tax is " + str(total_sales_tax))

Explanation:

*The code is in Python.

Set the  state_sales_tax_rate and county_sales_tax_rate

Ask the user to enter the sales

Calculate the county_sales_tax, multiply sales by county_sales_tax_rate

Calculate the state_sales_tax, multiply sales by state_sales_tax_rate

Calculate the total_sales_tax, sum county_sales_tax and state_sales_tax

Print the results

What is one characteristic of a logic problem? A). a problem that can have three solutions B). a problem that can be solved in a methodical manner C). a problem that can have ill-defined steps D). a problem that can be solved using a chart

Answers

Answer:It can be solved in methodical manner

Explanation:

Because

The characteristic of a logic problem are, a problem that can be solved in a methodical manner. Option B is the correct option.

What is a logic problem?

A logic problem is the type of logic puzzle or problem which is solved by the help of deduction technique.

Characteristic of a logic problem are listed below;

Logic problems can be solved in a methodical manner.Logic problems should be solved in a well specified steps.The puzzle of logic problems should be well-defined.

Thus, the characteristic of a logic problem are, a problem that can be solved in a methodical manner. Option B is the correct option.

Learn more about the logic problem here:

https://brainly.com/question/3752381

#SPJ2

After analyzing the following code, which statement is not True:
import sqlite3
connection = sqlite3.connect("aquarium.db")
a. import sqlite3 gives our Python program access to the sqlite3 module.
b. The sqlite3.connect() function returns a Connection object
c. The aquarium.db file is created automatically by sqlite3.connect() if aquarium.db does not already exist on our computer.
d. A syntax error, if aquarium.db does not already exist on our computer.

Answers

Answer:

d. A syntax error, if aquarium.db does not already exist on our computer.

Explanation:

The SQLite database is a relational database used readily in python backend web frameworks to store and retrieve data. The python packages like the sqlite3 are extensions of python proving its flexibility and power as a multi-purpose programming language.

The sqlite3 package is first installed and imported in the python file and a sqlite connection is made to the database which is automatically saved in the aquarium.db file ( created if it doesn't already exist ).

2. Which of the following is a
Web 2.0 programming
methodology you could use to
create Web pages that are
dynamic and interactive without
the need to refresh or
reload the page?
a. Wiki
b. RSS
c. Blog
d. Ajax

Answers

The correct answer would be ajax

Answer:ajax

Explanation:

Horizontal scaling of a client/server architecture means _____.
a. migrating the network to decentralized servers.
b. migrating the network to a faster communication media.
c. adding more proxy servers.
d. adding more workstations.

Answers

Answer:

D. I think

Explanation:

Horizontal scaling of a client/server architecture means adding more workstations. Thus the correct option is D.

What is client/server architecture?

A computing model which  places the majority of the services and features that the client requests on the server, which also hosts, delivers, and manages them are known as client-server architecture 

Most applications that call for a division of labor between the client and the server benefit from the client-server architecture. The accessibility performance of applications is improved.

Both horizontal and vertical scaling is possible for client/server architectures. If a network is scaled vertically, more powerful, faster servers are added to the network, whereas horizontal scaling involves adding additional workstations (clients).

Therefore, option D is appropriate.

Learn more about client/server architecture, here:

https://brainly.com/question/21755186

#SPJ5

1) Create the following 2D array in one instruction: {{1,2,3,4,5}, {1,2,3,4,5}, {1,2,3,4,5}} // your code goes below:
2) Create the above 2D array using a for loop and the below method: public static int[] simpleArray(int n) { int[] result = new int[n]; for (int i=0; i

Answers

Answer:

1)

int[][] a2dArray = {{1,2,3,4,5},{1,2,3,4,5},{1,2,3,4,5}};

2)

public class Main

{

public static void main(String[] args) {

   

    int[][] a2dArray2 = new int[3][5];

    for (int i=0; i<3; i++) {

        a2dArray2[i] = simpleArray(5);

    }

   

    for (int i=0; i<a2dArray2.length; i++) {

        for (int j=0; j<a2dArray2[i].length; j++){

            System.out.print(a2dArray2[i][j] + "");

        }

        System.out.println();

    }

 

}

public static int[] simpleArray(int n){

    int[] result = new int[n];

    for (int i=0; i<n; i++) {

        result[i] = i+1;

    }

    return result;

}

}

Explanation:

1) To create a 2D array you need to write the type, two brackets and the name on the left hand side. Put the values on the right hand side.

2) Declare the array. Since there will be 3 rows and 5 columns, put these values in the brackets on the right hand side.

Create a for loop that iterates 3 times. Call the method simpleArray inside the loop so that each row of the a2dArray2 array will be set. Be aware that simpleArray method takes an integer as parameter and creates a 1D array, the numbers in the array starts from 1 and goes to the parameter value. That is why calling the method simpleArray (with parameter 5) 3 times will create a 2D array that has 3 rows and 5 columns.

Then, use a nested for loop to display the 2D array.

Write a Java application that reads three integers from the user using a Scanner. Then, create separate functions to calculate the sum, product and average of the numbers, and displays them from main. (Use each functions' 'return' to return their respective values.) Use the following sample code as a guide.

Answers

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

   

 System.out.print("Enter a number: ");

 int n1 = input.nextInt();

 System.out.print("Enter a number: ");

 int n2 = input.nextInt();

 System.out.print("Enter a number: ");

 int n3 = input.nextInt();

 

 System.out.println("The sum is: " + calculateSum(n1, n2, n3));

 System.out.println("The product is: " + calculateProduct(n1, n2, n3));

 System.out.println("The average is: " + calculateAverage(n1, n2, n3));

}

public static int calculateSum(int n1, int n2, int n3){

    return n1 + n2 + n3;

}

public static int calculateProduct(int n1, int n2, int n3){

    return n1 * n2 * n3;

}

public static double calculateAverage(int n1, int n2, int n3){

    return (n1 + n2 + n3) / 3.0;

}

}

Explanation:

In the main:

Ask the user to enter the numbers using Scanner

Call the functions with these three numbers and display results

In the calculateSum function, calculate and return the sum of the numbers

In the calculateProduct function, calculate and return the product of the numbers

In the calculateAverage function, calculate and return the average of the numbers

Write a Java program to count the characters in each word in a given sentence?Examples:Input : geeks for geeksOutput :geeks->5for->3geeks->5

Answers

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

   

    Scanner in = new Scanner(System.in);

   

    System.out.print("Enter a sentence: ");

    String sentence = in.nextLine();

   

    String[] words = sentence.split("\\s");

   

    for(String s : words)

     System.out.println(s + " -> " + s.length());

}

}

Explanation:

Ask the user to enter a sentence

Get each word in the sentence using split method and put them in words array

Loop through the words. Print each word and number of characters they have  using the length method in required format

During the past decade ocean levels have been rising faster than in the past, an average of approximately 3.1 millimeters per year. Write a program that computes how much ocean levels are expected to rise during the next 15 years if they continue rising at this rate. Display the answer in both centimeters and inches.

Answers

Answer:

Program in Python is as follows:

rise = 3.1

for i in range(1,16):

     print("Rise in Year "+str(i))

     cm = rise * 0.1 * i

     inch = rise/25.4 * i

     print(str(cm)+" centimetres")

     print(str(inch)+" inches")

     print

Explanation:

This line initializes the rise of the ocean level

rise = 3.1

The following iterates from 1 to 15 (which stands for year)

for i in range(1,16):

   print("Rise in Year "+str(i))

This calculates the rise in each year in centimetre

   cm = rise * 0.1 * i

This calculates the rise in each year in inches

   inch = rise/25.4 * i

The line prints calculated ocean rise in centimetres

   print(str(cm)+" centimetres")

The line prints calculated ocean rise in inches

   print(str(inch)+" inches")

     print

what is the function of control unit? in computer.

Answers

regulates and integrates the operations of the computer. It selects and retrieves instructions from the main memory in proper sequence and interprets them

Write code to assign the number of characters in the string rv to a variable num_chars.

Answers

Answer:

rv = "hello"

num_chars = len(rv)

print(num_chars)

Explanation:

*The code is in Python.

Initialize the string rv, in this example I set it to "hello"

Use the len() method to get the number of characters in the rv and set it to the num_chars

Print the num_chars

Note that the result will be 5 in this case, because hello consists of five characters

What is the range of possible values for the variable x?

int x = (int)(Math.random() * 10);

Answers

Answer:

int number = (int)(Math. random() * 10); By multiplying the value by 10, the range of possible values becomes 0.0 <= number < 10.0

please mark me as the brainliest answer and please follow me for more answers.

you have 2 matching hdds in a system, which you plan to configure as a RAID array to improve performance. Which RAID configuration should you use.

Answers

Answer:

I think

Explanation:

RAID 5 improves performance over RAID 1.

Explanation

RAID provides both fault tolerance and improved performance RAID (mirroring) provides only fault tolerance with no performance benefit. Both RAID 5 and RAID 1 can only sustain a loss of one disk in the set. Use multiple disk controllers to provide redundancy for the disk controller.

Which WPA mode allows users to provide authentication via a pre-shared key or password?

Answers

Answer:

WPA2 allows users to provide authentication via a pre-shared network key / password

Explanation:

The WPA mode that allows users to provide authentication via a pre-shared key or password is the personal mode. The correct option is a.

What is WPA mode?

The most recent and secure Wi-Fi protocol at the moment is WPA3 Personal. A pre-shared key is used by Personal WPA to verify users' first login information.

Wi-Fi security access All users on 2 pre-shared key (WPA-PSK) networks use the same passphrase. A security standard for computing devices using wireless internet connections is called Wi-Fi Protected Access (WPA).

It was created by the Wi-Fi Alliance to provide stronger user authentication and data encryption than the original Wi-Fi security standard, Wired Equivalent Privacy (WEP).

Therefore, the correct option is a. Personal mode.

To learn more about WPA mode, refer to the link:

https://brainly.com/question/29034850

#SPJ5

The question is incomplete. Your most probably complete question is given below:

a. Personal mode

b. Enterprise mode

c. Extensible Authentication Protocol mode

d. Wired Equivalent Privacy mode

Other Questions
HELP ASAP PLEASE 75POINTS Find the value of sin Z 1. the process of generating broad conclusionsbased on patterns, observations, and information If some paper and/or paper-like materials ignite and cause a very small fire at your lab table, you should? The cat sounds ready to come back inside. Is the verb sound a helping verb, linking verb or a verb? 2. Mam necesita pan para la cena. Vamos aa. la faldab. la panaderac. la bibliotecad. la joyera Choose the correct pronoun in the sentence. I borrowed this book from Jenny. _____ said I needed to give it back next week. Hers Her Him She Can science be certain about evidence collected even no one has ever seen an event? Explain. The 45-g Wood Thrush migrates every spring from Central America to the United States to breed. The bird leaves its winterhome in Belize and travels 1422 km across the Gulf of Mexico to Louisiana. It then flies an additional 1343 km to reachVirginia, where it spends the summer. The trip takes approximately 171 hours, flying mostly at night.What is the average speed of the Wood Thrush? What is the field outside the capacitor plates in a parallel capacitor? [tex]derive \\ s = ut + \frac{1}{2} at {}^{2} [/tex] List 10 U.S. Presidents Question 1 of 5Which factor caused ancient Americans to hunt small animals and gathermore plants to survive?A. Environmental disasters made farming difficult.B. Large animals were trained to assist with farmwork.C. Most herds of animals crossed the land bridge to Asia.D. Large mammals such as mammoths began to die out.SUBMI of people of the same sex and similar ages follow a Normal distribution reasonably closely. Weights, on the other hand, are not Normally distributed. The weights of women aged 2029 in the United States have mean 161.9 pounds and median 149.4 pounds. The first and third quartiles are 126.3 pounds and 181.2 pounds, respectively. What can you say about the shape of the weight distribution? Why? What are some complex impurities found in water that are hard to detect and remove? How are they removed and detected? Please answer ASAP!!! 4. Is there one final source of authority, or is it broken up in a few differentplaces? why did Europeans settle in the thirteen in america Thomas Paine wrote a pamphlet called Common Sense in order toA. to defend the Native AmericansB. support unity between the British Colonies and EnglandC. support the British KingD. Encourage colonists to seperate from England According to the "Equal Pay Bill" letter, who is traditionally a family's "breadwinner"? A. The younger generation B. Anyone who can afford to purchase food C. A man D. A woman Identify the rule for the transformation shown in thefigure that translates triangle ABC into triangle A'B'C'.(x, y) + (x - 4, y-2)O (x, y) = (x +4, y-2)O (x, y) + (x -- 4, y + 2)(x,y) (x +4, y + 2)