What is output by the following code?


c = 1


sum = 0


while (c < 10):


c = c + 2


sum = sum + c





print (sum):

(anwser is not ("25" "3" "24" "11" "13"))

Answers

Answer 1

Answer:

3

8

15

24

35

Explanation:

c starts at value 1 and sum at value 0, in the first loop c is added 2, so the value of c is now 3, then sum is added the value of c, so 0 + 3 = 3.

while checks if 3 is less than 10, it is, so the loop continues. Now 2 is added to the previous value of c, which was 3, so 3 + 2 = 5, c is now 5. c is added to the value of sum which was 3, so 3 + 5 = 8, sum is now 8 and the loop continues...

...after a couple of loops, c = 9, the while checks if 9 is less than 10, it is, so the loop continues one last time. 2 is added to c, so now c = 11. c is added to sum (which at this point has the value of 24), so now sum = 35 and the sum is printed on the screen. The while checks ones last time if 11 is less than 10, it is not, so the loop breaks and the last sum printed was 35.


Related Questions

two student computer hackers used their time in the school computer lab to break into the administrative network and change their report card grades to straight a's. when the administration traced the problem to the time and computer station used by those particular students, they were not allowed to use the school computers for the rest of the year. which operant conditioning term applies to this consequence?

Answers

The operant conditioning term applies to this consequence, Omission training

What is omission training?

Omission training is a behavior-analytic term that refers to specific form of punishment in which a positive event is withdrawn contingent on occurrence of a target behavior (e.g., property destruction, aggression toward other people).

In applied behavior analytic literature, omission training typically is referred to as negative or type II punishment.

Everyday examples include loss of privileges (e.g., having to leave zoo early contingent on hitting your mom, loss of one’s driver’s license for getting too many speeding tickets). Time-out and response cost are two most commonly used forms of omission training. Time-out is the removal of a positive event contingent on occurrence of problem behavior.

Response cost is the removal of specified amount of a positive reinforcer contingent on occurrence of a problem behavior

learn more about omission training at

https://brainly.com/question/29799133

#SPJ4

This consequence is referred to as "omission training." conditioning term applies to this consequence.

What exactly is "omission training?"

Omission training is a behavior-analytic term for a specific type of punishment in which a positive event is withdrawn upon the occurrence of a target behavior (such as destruction of property or aggression toward others). Omission training is typically referred to as negative or type II punishment in the literature on applied behavior analysis.

Omission training importance :

Loss of privileges is an everyday example, such as having to leave the zoo early in the event that you hit your mother or losing your driver's license because you received too many speeding tickets. Omission training typically consists of two components: response cost and timeout. The removal of a positive event in response to the occurrence of problematic behavior is known as a time-out. Response cost is when a problem behavior occurs, a certain amount of a positive reinforcer is taken away.

Learn more about omission training :

brainly.com/question/14394407

#SPJ4

NEED HELP ASP WILL GIVE BRAINLIEST


Which of the following is a way to ensure that a title screen makes a good impression on the player?

Responses

include the game designer’s name

create a title screen that is similar to another game’s title screen

showcase elements of the game

include text that describes the difficulty of the game

Answers

Answer:

I don’t know if this is correct but from a gamer I would say showcase elements of the game

Explanation:

a network technician needs to connect a user's pc to the wired ethernet network. what is the best device the technician should use to connect the pc into the wired network?

Answers

A user's PC must be connected to the wired Ethernet network by a network specialist. What is the BEST thing the tech should connect the PC with?

What kind of hardware connects an Ethernet network to a computer?

Hub. A hub is a physical device that connects various LAN-connected devices together. A laptop, desktop computer, and printer, for instance, can all join the same local network by plugging their Ethernet connections into a hub's ports.

What is the most suitable tool for the technician to use when joining the computer to the wired network?

Wired nodes are connected to the network using switches and hubs. Switches are used for sophisticated hardware that can recognize MAC addresses and function better than hubs. Consequently, a switch should must always be preferred over hubs as the finest choice.

To know more about technician visit:-

https://brainly.com/question/14083709

#SPJ4

The Tranportation Security Adminitration (TSA) at a large airport ha 175 agent hired and trained for the month of January. Agent earn an average of $3,300 per month and work 160 hour per month.

Answers

Your hourly wage would be $19.04 per hour if you earned $3,300 per month. By dividing your base salary by the number of hours worked per week and month, you get this number.

The Transportation Security Administration is what?

In order to guarantee people and businesses' freedom of movement, the Transportation Security Administration (TSA) safeguards the nation's transportation systems. To guarantee people's and businesses' freedom of movement, safeguard the nation's transportation systems.

TSA was established by the Aviation and Transportation Security Act, which was passed by the 107th Congress and signed on November 19, 2001. In March of 2003, the Transportation Security Administration (TSA) joined the Department of Homeland Security and now employs 25% of DHS employees. The TSA covers both general aviation and commercial aviation; systems for mass transit; passenger and freight trains; pipelines, ports, and highways.

Learn more about Transportation security :

brainly.com/question/27939029

#SPJ4

which section in the navigation pane allows a user to create sensitivity assumption categories that can be applied to multiple portfolios and properties?

Answers

Sensitivity assumption section in the navigation pane allows a user to create sensitivity assumption categories that can be applied to multiple portfolios and properties .

What is Sensitivity analysis ?

Sensitivity analysis establishes the impact of various independent variable values on a specific dependent variable under a specific set of assumptions.

                       Sensitivity analyses, then, investigate the ways in which different types of uncertainty in a mathematical model affect the overall level of uncertainty in the model.

What does forecasting sensitivity mean?

A prediction's starting condition errors can be evaluated objectively using a forecast sensitivity analysis, which also identifies areas where more observations are needed to lower forecast errors.

                  A framework for analysis that helps with dealing with uncertainty is sensitivity and risk analysis. The goal is to lessen the likelihood of taking on undesirable initiatives while accepting good ones as well.

Learn more about Sensitivity assumption

brainly.com/question/28249987

#SPJ4

write a boolean expression that evaluates to true if age is greater than 13 and less than 18. assume a variable age has been defined.

Answers

The expression evaluates to true if the value of age is greater than 13 and less than 18.

(age > 13) && (age < 18)

Checking if Age Falls Within a Range

The expression (age > 13) && (age < 18) checks if the value of age is greater than 13 and less than 18. If both conditions are true, the expression evaluates to true, otherwise it evaluates to false. This expression can be used to check if a person's age falls within a certain range, such as between 13 and 18.

This expression can be used to check if a person's age falls within a certain range. If both conditions are true, the expression will evaluate to true, otherwise it will evaluate to false.

Learn more about Boolean expression: https://brainly.com/question/15078651

#SPJ4

what does a multiple-mode fiber optic cable do? uses multiple rays of light running at different angles to transmit data uses multiple rays of light running at different angles to transmit data uses radio signals to transmit data uses radio signals to transmit data uses a single ray of light to transmit data uses a single ray of light to transmit data uses sound waves to transmit data

Answers

A multiple-mode fiber optic cable uses multiple rays of light running at different angles to transmit data.

what is multiple-mode fiber optic?

Multi-mode fiber is a type of optical fiber designed to carry multiple light rays or modes simultaneously, each at a marginally different reflection angle inside the optical fiber core.

Multi-mode fiber is mainly used to transmit across comparatively shorter distances, as the modes are more likely to disperse over longer extents. This phenomenon is known as modal dispersion. Another common type of optical fiber is the single-mode fiber which is used mainly for longer distances.

Single mode fiber is designed to propagate a single light mode whereas multimode supports multiple simultaneous light modes. This difference impacts bandwidth, signal transmission distance and signal stability which we'll explore later.

learn more about multiple - mode fibre optic at

https://brainly.in/question/32665850

#SPJ4

To transmit data, a multiple-mode fiber optic cable makes use of multiple rays of light that run at different angles.

Option A is correct.

What exactly is multimode fiber optic?

A type of optical fiber called multimode fiber is made to carry multiple light rays or modes at slightly different reflection angles inside the core of the fiber. Because the modes are more likely to disperse over longer distances, multi-mode fiber is typically utilized for transmitting over relatively shorter distances. Modal dispersion is the name given to this phenomenon. The single-mode fiber, which is primarily utilized over longer distances, is an additional common type of optical fiber.

Multimode fiber :

Multimode fiber supports multiple simultaneous light modes, whereas single mode fiber is designed to propagate a single light mode. We'll look later at how this difference affects signal stability, signal transmission distance, and bandwidth.

Incomplete question :

What does a multiple-mode fiber optic cable do?

A.uses multiple rays of light running at different angles to transmit data

B.uses a single ray of light to transmit data

C.uses radio signals to transmit data

D.uses sound waves to transmit data

Learn more about multimode optical fibre :

brainly.com/question/29779951

#SPJ4

How Parents can use this type of program to block access to selected Websites?

Answers

There are a few ways that parents can use programs to block access to selected websites. One option is to use parental control software, which can be installed on a computer or mobile device and configured to block specific websites or types of content.

What is parental control software?

Parental control software is a type of software that allows parents to monitor and control their child's use of the internet and other digital devices.

It can be used to set limits on the websites that a child can visit, the amount of time they can spend online, and the types of apps and games they can use. Some parental control software also includes features such as monitoring of social media activity and text messaging.

The goal of parental control software is to provide parents with tools to help keep their children safe online and ensure that they are using technology in a responsible and appropriate manner.

To know more about Website, visit: https://brainly.com/question/28431103

#SPJ4

Charles simonyi is considered the father of microsoft excel. True or False?

Answers

True.Charles Simonyi, a former Microsoft employee, is credited with creating some of the most popular programs produced by the business, including Excel and Word.

Who is Microsoft Office's creator?

Bill Gates made the initial announcement on August 1, 1988, during Computex in Las Vegas.Microsoft Word, Microsoft Office excel, and Power Point were included in the first edition of Office, which was originally marketed as an office suite.

Who is Microsoft PowerPoint's father?

Microsoft PowerPoint is a virtual presenting tool created by Dennis Austin and Robert Gaskins for the Forethought, Inc. computer software firm in the United States.

To know more about microsoft excel visit:

https://brainly.com/question/19766555

#SPJ4

access to opportunities at cloud kicks should be restricted. sales users should only have access to two categories of opportunities: opportunities they own, and opportunities that are tied to accounts they own. what are two actions a consultant can take to meet the requirement? choose 2 answers

Answers

The correct option are-

B. Set opportunity access on the role to view all opportunities associated with their accounts.C. Set organization-wide defaults for opportunities to Private.Explain the term cloud kicks?

Using Data Loader, Cloud Kicks (CK) is transferring Account and Contact data from just a vintage CRM system into Salesforce.

Any hosted service that is offered online is referred to as cloud computing. These services frequently consist of servers, database, software, networks, analytics, and other cloud-operated computer tools.Users of the service can access files and applications stored on the cloud from any location, doing away with the need to constantly be close to actual hardware. For instance, user-created spreadsheets and documents used to need to be saved to just a physical hard disk drive, USB device, or disc.

For the stated question-

Opportunities from cloud kicks should only be accessible to certain people. Only the opportunities they possess and the opportunities connected to the accounts they own should be available to sales users.

There are two ways a consultant can fulfil the requirement:

To examine all opportunities connected to their accounts, the role must have opportunity access set.Set Opportunities' organization-wide defaults to Private.

To know more about the cloud kicks, here

https://brainly.com/question/30087928

#SPJ4

The complete question is-

Access to opportunities at cloud kicks should be restricted. sales users should only have access to two categories of opportunities: opportunities they own, and opportunities that are tied to accounts they own.

what are two actions a consultant can take to meet the requirement? choose 2 answers.

A. Set Territory Management to grant Read access to opportunities owned by others.

B. Set opportunity access on the role to view all opportunities associated with their accounts.

C. Set organization-wide defaults for opportunities to Private.

D. Set organization-wide defaults for opportunities to Public Read-Only

Define and give an example of a desirable outcome for using a computer.

Answers

Answer:

A desirable outcome for using a computer is the successful completion of a task or process through the use of computer technology.

For example, a desirable outcome for using a computer in a business setting could be an increase in productivity and efficiency. This could be achieved by using software such as project management tools or automation tools to streamline tasks and processes, resulting in faster completion of projects and more time for other important tasks.

Another example could be in education, where a desirable outcome for using a computer could be an improvement in students' learning and understanding of a subject.

undecidable problems and unreasonable time algorithms

Answers

Unreasonable time algorithms take an unreasonable amount of time to solve, but undecidable problems can never be solved by an algorithm that can only produce a yes-or-no response.

Can an algorithm resolve an intractable issue?

Even the most powerful computer in the world with limitless time cannot solve certain issues, such as those that are undecidable. If a question should have a "yes" or "no," it is considered to be undecidable.

What effects does the problem's indeterminacy have?

There is no algorithm that can solve the problem in all situations, yet it might be workable in some. The maxPairSum() procedure was created by a programmer to compute the largest sum of all pairs in a list of numbers.

To know more about algorithms visit:-

https://brainly.com/question/21493957

#SPJ4

Question:

Explain the difference between undecidable problems and unreasonable time algorithms.

Courses 5th Hour-Fund of Tech Microsoft Word 2019 Basics-Unit 11 (Proofing Documents)-NEW ITEM> Check for Understanding
Check for Understanding
Microsoft Word 2019 Basics - Unit 11
Which of the following are notes which can be electronically entered into documents without changing the content of the document?
O Comments
Changes
O Reviews
O Comparisons
1 2 3 4
Save
2 of 5
5

Answers

The notes that can be electronically entered into documents without changing the content of the document in Microsoft Word 2019 Basics are: Comment, Reviews and Comparison.

How to enter notes electronically into documents?

There are several ways to enter notes electronically into documents in Microsoft Word 2019:

Comments: To add a comment to a document, select the text you want to comment on, right-click, and select "New Comment." A comment box will appear to the right of the text, where you can type your note.

Reviews: To add a review in a document, you can use the "Review" tab on the ribbon. Select "New Comment" from the "Review" tab, and a comment box will appear. You can also use the "Track Changes" feature to highlight any changes you make to the document and add comments about them.

Comparison: To compare two different versions of a document, you can use the "Compare" feature in the "Review" tab. This will show the changes made between the two documents and allow you to add comments about the changes.

Inserting a note: You can insert a note by using the "Insert" tab, In the "Links" group, click "Note". Once you have clicked on it, the note will appear at the location of the cursor.

Highlighting Text: You can also use the "Highlight" feature in the "Home" tab to highlight text and add notes.

Each of these options will allow you to add notes electronically to a document without changing the content of the document.

To learn more about Microsoft Word, visit: https://brainly.com/question/14130047

#SPJ1

(Not a test or quiz)
Which statement best describe when you would need to use a Thunderbolt 3 port as opposed to a DisplayPort or an HDMI port?

When you need to transmit a digital and analog video signal on the same port and cable

When you need to transmit video, audio, data, and power on the same port and cable

When the system is missing a DVI and/or VGA port to transmit video and audio signals

When you do not have a DVI to VGA adapter to convert digital signals to an analog format

Answers

Answer: The option that would be best is OPTION 2.

Explanation:

Reasoning behind this is because thunderbolt 3 has the technology to transmit video, audio, data, and power at the same time. While HDMI is mostly limited to audio and video. DisplayPort is similar to HDMI also delivering video and audio.

The statement that best describe when you would need to use a Thunderbolt 3 port as opposed to a Display. Port or an HDMI port is When you need to transmit video, audio, data, and power on the same port and cable. Thus, option B is correct.

What is Reasoning?

Reasoning behind this is because thunderbolt 3 has the technology to transmit video, audio, data, and power at the same time. While HDMI is mostly limited to audio and video. DisplayPort is similar to HDMI also delivering video and audio.

When you need to transmit a digital and analog video signal on the same port and cable and when you need to transmit video, audio, data, and power on the same port and cable and When you do not have a DVI to VGA adapter to convert digital signals to an analog format.

Therefore, The statement that best describe when you would need to use a Thunderbolt 3 port as opposed to a Display. Port or an HDMI port is When you need to transmit video, audio, data, and power on the same port and cable. Thus, option B is correct.

Learn more about VGA adapter on:

https://brainly.com/question/30001047

#SPJ2

how to connect jumper cables to a 2017 ford escape ?

Answers

Place a clamp on the red positive (+) cable's battery terminal for the disabled car. The booster vehicle's red positive (+) battery terminal should be connected to the other end of the red positive (+) cable.

What is the right way to connect jumper cables?

Here is how to arrange your jumper cables properly: Connect the red clip to the positive wire of your dead battery (RED to DEAD). DONOR to RED The functional battery from the donor car should have the red clip connected to the positive terminal.

When attaching jumper cables Which hue belongs where?

One red cable should first be clamped to the battery's positive side if it won't start. The other red clamp should then be connected to the positive side of the operational battery.

To know more about battery terminal visit :-

https://brainly.com/question/13995478

#SPJ4

which of the variables have the value 50 after executing the code segment?

Answers

Nothing is printed. The following code segment will set the Boolean variable inRange to true if the integer number num is greater than the lowest value and less than the maximum value.

What variables are necessary for the code segment to run?

One of the most important programming concepts is the ability to combine multiple lines of code into a single unit that can be used in our program. Initially, this was intended to be a sub-program. There are other references to "macro," "sub-routine," "procedure," and "module."

What does code execution entail?

In computer and software engineering, the process by which a computer or virtual machine reads and responds to a computer program's instructions is referred to as execution. The instructions of a program are each descriptions.

To know more about executing the code segment visit:-

https://brainly.com/question/26438966

#SPJ4

security awareness programs, byod policies, and ethical hiring practices are what type of security control?

Answers

Security awareness programs, BYOD policies, and ethical hiring practices are the administrative or management type of security control.

Why is security control important?

Security controls are safeguards or procedures to reduce security threats to physical assets, information, computer systems, or other assets. Such controls safeguard the privacy, accuracy, and accessibility of information in the field of information security. Data security controls' main goals are to safeguard and protect the information that belongs to your company, lessen the likelihood that it will be compromised or lost, and enforce policies and best practices.

The danger to those assets can be decreased or mitigated by security procedures.  They cover all types of guidelines, practices, methods, approaches, solutions, plans, courses of action, and tools intended to advance that objective. Firewalls, surveillance equipment, and antivirus software are recognizable examples. The three primary categories of IT security controls are physical, administrative, and technical.

To learn more about security controls, visit:

https://brainly.com/question/29975255

#SPJ4

suppose you wanted to escape an otherwise infinitely repeating loop or function. how would you do that?

Answers

You can use the endloop, continue, resume, or return statement to exit a while loop. endwhile; The loop is closed if the name is empty and no other statements are executed during that iteration of the loop.

How can an infinite loop be avoided?

An infinite loop is a section of code that never reaches the terminating condition, so it keeps running forever. Your programme or browser may crash or become frozen as a result of an infinite loop. It is crucial to be aware of infinite loops in order to prevent such incidents.

How do you break a while loop that never ends?

CTRL + C will break an infinite loop.

To know more about programme visit:-

brainly.com/question/14618533

#SPJ4

the word advocate contains the root voc. what does the root voc mean?

Answers

Both the variation vok and the Latin source code voc have the meaning "call." Many English vocabulary words, such as vocal, vocabulary, invoke, and provoke, have their roots in these words.

Why is there a root vent?

Brief Summary Both the Latin word vent and its derivative ven denote the action of coming. Many English vocabulary terms, such as prevent, invent, venue, and convenient, have these roots as their word origin.

What does the term lawyer's root mean?

lawyer (n.) (n.) late 14c. lauier, lawer, lawere, from Middle English lawe "law" (see law) + -iere, "one knowledgeable in the law, one whose profession is suits in court or client counseling on legal rights" (mid-14c. as a surname). From the 17c, -y-based spelling predominated.

To know more about source code visit:-

https://brainly.com/question/12951057

#SPJ4

write a program that concatenates two linked lists of characters. the program should include function concatenate that takes pointers to both lists as arguments and concatenates the second list to the first list reddit

Answers

Here is an example implementation of the concatenate function in C++:

#include <iostream>

struct Node {

   char data;

   Node* next;

};

void concatenate(Node* first, Node* second) {

   Node* current = first;

   while (current->next != nullptr) {

       current = current->next;

   }

   current->next = second;

}

int main() {

   Node* first = new Node{'a', new Node{'b', new Node{'c', nullptr}}};

   Node* second = new Node{'d', new Node{'e', new Node{'f', nullptr}}};

   concatenate(first, second);

   Node* current = first;

   while (current != nullptr) {

       std::cout << current->data << " ";

       current = current->next;

   }

   return 0;

}

The concatenate function in C++

This program creates two linked lists, one containing the characters 'a', 'b', 'c' and the other containing 'd', 'e', 'f'. The concatenate function takes in pointers to the head of both lists and iterates through the first list until it reaches the end. It then sets the next pointer of the last node in the first list to the head of the second list, effectively concatenating the two lists. The program then prints out the concatenated list.

Note: The code above doesn't handle freeing the memory used by the linked list, it will cause a memory leak, it's important to free the memory after you finish using the linked list.

Learn more about the concatenate function in C++ here:

https://brainly.com/question/28272351

#SPJ4

true or false? the recovery time objective (rto) expresses the maximum allowable time in which to recover the function after a major interruption.

Answers

The recovery point objectives (RPO) identify the actual time required to correctly resume operations in the event of an accident.

Recovery is the process of change that helps people to lead independent lives, realize their full potential, and enhance their physical and mental well-being. With the correct support, even people with severe and persistent substance use disorders can regain their health and social functioning. Recovery encompasses all aspects of one's life, including housing, employment, education, mental health services, complementary and naturalistic therapies, addictions therapy, spirituality, creativity, social media, community involvement, and familial support, as defined by the individual. Working on the real-time designation is the primary goal of the recovery time objective (RTO). It functions to identify data that was lost or re-entered while the network was down. RTO is used to specify the real working period prior to the start of a disturbance.

Learn more about Recovery here:

https://brainly.com/question/29749884

#SPJ4

write a main function that first, calls the first function, second, calls the second function and finally returns 0.

Answers

One to verify the standard division procedure, and the other to verify the divide by zero condition.

The Java programming language is used to develop the Calculator class. Since the question does not call for them, there are no fields (instance variables), and there are no constructors. According to the query, four ways (functions) are produced: addition, subtraction, multiplication, and division. Be aware that the case of an illegal division is handled by the if statement in the divide () function (by 0). The function divemaster is declared in the program above, and it dives the first parameter with the second to return the result. There is no possibility of a divide by zero error because the if else block in the divemaster function's body is utilized to confirm that the second input is not zero. The divemaster function is called using two print statements in the main section.

Learn more about The Java programming language here:

https://brainly.com/question/15182353

#SPJ4

plsss helpp me anyone plsss≥

Answers

Here is an example of how this task can be done using Python:
# Initialize the list of quotes
twain_quotes = ['I have never let my schooling interfere with my education.',
'Get your facts first, and then you can distort them as much as you please.',
'If you tell the truth, you don\'t have to remember anything.',
'The secret of getting ahead is getting started.',
'Age is an issue of mind over matter. If you don\'t mind, it doesn\'t matter.']

# Print the initial list of quotes
print(twain_quotes)

# Sort the list of quotes
twain_quotes.sort()

# Print the sorted list of quotes
print(twain_quotes)

# Insert the new quote in the correct spot alphabetically
twain_quotes.append("Courage is resistance to fear, mastery of fear, not absence of fear.")
twain_quotes.sort()

# Print the list of quotes with the new quote inserted
print(twain_quotes)

# Remove the first quote in the list
del twain_quotes[0]

# Print the list of quotes with the first quote removed
print(twain_quotes)


Note that this is just one way to accomplish the task and there may be other ways to achieve the same result. Additionally, if you are using other programming languages, the syntax and functions may differ.

1. what is the throughput for the file transfer? (you can safely assume that there is no other traffic in the network) 2. suppose the server wants to send a file of size 8 million bits, how long will it take to transfer the file to the client? 3. repeat parts (1) and (2), but now with r4 reduced to 500 kbps.

Answers

Simply explained, throughput is a measurement of how much data is effectively transferred from one location to another in a predetermined length of time.

This includes all uploads and downloads, as well as inputs and outputs, of files and directories. The flow rate of a business process is measured by throughput, often known as flow rate. In essence, it tracks how inputs and outputs flow throughout the production process. It is a crucial measure in a company's operations management. The quantity that a production process can produce in a given amount of time is known as throughput. For instance, if an eight-hour shift can produce 800 units, then the production process can produce 100 units each hour.

Learn more about operations here-

https://brainly.com/question/28335468

#SPJ4

What is the purpose of a return statement in a function?
A. Returns the value and continues executing rest of the statements, if any
B. Returns the value and stops the program
C. Returns the value and stops executing the function
D. Stops executing the function and returns the value

Answers

When encountered within the function, the return statement terminates the function's execution. It returns the value to the statement that called the function. Hence Option D is correct.

What is Function?

In programming, a function is a block of code that performs a specific task and can be reused throughout a program. Functions can accept parameters as input and return output in the form of a return value.

Functions help to organize and structure code, making it easier to read, understand, and maintain. They also help to reduce code duplication by allowing a single block of code to be used multiple times in different parts of a program.

To learn more about Function, visit: https://brainly.com/question/179886

#SPJ4

Help I don’t know why it’s not compiling

public class g
{
// instance variables - replace the example below with your own
function roll ()
{
return Math.floor (Math.random()*4+1);
}
int a;
function buttonPressed(){
roll();
a=roll();
answertq=(x*y);

}
{
if(parseInt(document.getElementById("inputVal").value)==answertq)
{
if (a==1)
{
window.alert("very good!");
}
else if (a==2)
{
window.alert ("excellent");
}
else if (a==3)
{
window.alert("correct, nice work.");
}
else if (a==4)
{
window.alert ("correct - keep up the good work");
}
}
}

Answers

Answer:

It is not entirely clear what your program is trying to achieve, but I embedded it inside some HTML to show you a working version.

class methods in javascript don't require the 'function' keyword.to access class variables, always use the 'this' instance reference.when using class methods as event handlers, bind them to 'this'. This is a weird javascript quirk you want to check out.

the list below tracks customers renting videos. we sometimes need to change a customer's address. if we change the address for the customer in row 2 (customer smith, david), but forget to change his address in row 6 also we now have a mistake in our list. what is this term for this type of mistake?

Answers

Update anomaly is this term for this type of mistake when we change the address for the customer in row 2 (customer smith, david), but forget to change his address in row 6 also we now have a mistake in our list.

What is excel?

Microsoft Excel is a spreadsheet program developed by Microsoft that is available for Windows, macOS, Android, and iOS. It includes calculation or computation capabilities, graphing tools, pivot tables, and Visual Basic for Applications, a macro programming language. Excel is part of the Microsoft Office software suite. Microsoft Excel is a spreadsheet program that is part of the company's Office product line for business applications. Users can format, organize, and calculate data in a spreadsheet using Microsoft Excel. Excel is an extremely powerful tool for extracting meaning from massive amounts of data. However, it is also very useful for simple calculations and tracking almost any type of information. The grid of cells is the key to unlocking all of that potential. Numbers, text, and formulas can all be stored in cells.

Here,

When we change the address for the customer in row 2 (customer smith, david), but forget to change his address in row 6, we have an update anomaly and a mistake in our list.

To know more about excel,

https://brainly.com/question/30324226

#SPJ4

Despite rapid growth of technology, digital devices fail to impact the industry (T F),

Answers

False; despite the rapid growth of technology, business has not been significantly impacted by digital gadgets.

What impact has technology had on business?

Technology developments hastened industry's rise and the rate of its economic takeover. For example, the steam engine made it possible to move goods across distances that were previously inconceivable using animal power.

How has technology aided in the growth of industry?

The spinning jenny, the spinning mule, and the power loom were a few of the technological advancements that initially assisted production growth. Power looms, carding machines, and other specialized equipment needed to be operated initially by people, then by water, and finally by steam.

To know more about  technology visit:-

brainly.com/question/9171028

#SPJ4

Give 2 example of application software and three advantages and disadvantages

Answers

The concurrent model in the software engineering has been defines the series of the events that will trigger the transition from the state to state for each of the software engineering activities.

What is the use of concurrent model?

The concurrent model has been used for the development of the client server applications. The advantages of this model are the following has that it has easy to the implement, the server TCP/IP logic has the simple and one listener has shared by many TPs.

The drawbacks of the model is that it increased the network overhead and delays due to the requirement of the TRM exchange and more CPU and resource intensive than is the Iterative model.

Therefore,The concurrent model in the software engineering has been defines the series of the events that will trigger the transition from the state to state for each of the software engineering activities.

Learn more about concurrent model on:

https://brainly.com/question/4237375

#SPJ1

you have a system with more than one linux operating system installed. during the system's bootup process, which component loads a splash screen, allowing you to choose which operating system you want to run?

Answers

The component that loads a splash screen during the system's bootup process is called the boot loader.

What is system's bootup?

System bootup, also known as booting, is the process of loading the operating system and any necessary programs and drivers into a computer's main memory. This process is typically initiated by pressing a power button or other external power switch.

The boot loader is a program that is responsible for loading the operating system kernel into memory and then executing it. The boot loader is usually the first program that runs when the computer is turned on. It provides a menu of choices, allowing the user to choose which operating system to run. This menu is usually presented in the form of a splash screen.

To learn more about system's bootup
https://brainly.com/question/13013910
#SPJ4

Other Questions
which european country relied on powerful corporations for colonization? england spain france holland as a strategic choice, why would red bull invest money in sponsoring extreme sports and other edgy activities, given that only a small percentage of their target customers are likely to engage in such activities? the first wave of the atlantic slave trade was started by the _____. Identify the financial instruments based on the following descriptions. Issued by a nonfinancial firm, these financial instruments are guaranteed by a bank. There is less risk involved because of bank backing. consider the set of points that are inside or within one unit of a rectangular parallelepiped (box) that measures 3 by 4 by 5 units. given that the volume of this set is $\displaystyle {{m n\pi}\over p}$, where $m$, $n$, and $p$ are positive integers, and $n$ and $p$ are relatively prime, find $m n p$. Using the drop-down menus, choose the right government service to complete each sentence.Providing a free public education for all children is an example of supporting.Fighting fires is one way in which the government ensuresfor citizens.Building roads and power systems are ways the government provides. The population (in millions) of Calcedonia as a function of time t (years) is P(1) = 55 . 20^005t. Determine the number of years it takes the population to double. (Give an exact answer. Use symbolic notation and fractions where needed.) years: Let g(t) = a2^kt. Determine the expression for g(t + 1/) (for any positive constants a and k). (Express numbers in exact form. Use symbolic notation and fractions where needed. Give the expression in terms of a, k, and t.g(t+1/k)Interpret the obtained results. - The population does not change significantly over time. - The population increases by 1/k after one year. - The population doubles after 1/k years - The population halves after 1/k years A candy maker offers Child and Adult bags of jelly beans with different color mixes. The company claims that the Child mix has 30% red jelly beans, while the Adult mix contains 15% red jelly beans. Assume that the candy maker's claim is true. Suppose we take a random sample of 50 jelly beans from the Child mix and a separate random sample of 100 jelly beans from the Adult mix. Let (pc - pa) and be the sample proportions of red jelly beans from the Child and Adult mixes, respectively.(a) What is the shape of the sampling distribution of ?Why?(b) Find the mean of the sampling distribution. Show your work.(c) Find the standard deviation of the sampling distribution. Show your work. Adam buys a bag of dog food with a weight of 7/8 pound and a bag of cat food with a weight of 1 whole 3/4 pounds. Estimate the total weight of the pet food he buys with benchmark fractions the administrator may summarily deny or revoke the exemption of which type of security? a non-profit charitable organization issues b securities guaranteed by a canadian province c federal credit union issues d insurance company issues 5. Your friends say that they saw a special nail polish that changes color when it is out in the sun. Can light from the sun cause the nail polish to change color? a No. Light is not a physical thing so it cannot change physical things like nail polish. B Yes. Light from the sun can pull energy out of the nail polish: causing it to change color C Yes. The nail polish can take in energy from the light causing it to change color. No. Light can only change things by warming them up, so it cannot cause the nail polish to change color. on may 1, 2024, varga tech services signed a $141,000 consulting contract with shaffer holdings. the contract requires varga to provide computer technology support services whenever requested over the period from may 1, 2024, to april 30, 2025, with shaffer paying the entire $141,000 on may 1, 2024. how much revenue should varga recognize in 2024? W is inversely proportional tof When f = 12, w = 40 (a) Find a formula connecting w and f (b) Find the value of w when f = 60 3 B is inversely proportional to y When B = 0. 8, y = 13 (a) Find an equation for B in terms of y. (b) Work out the value of B when y = 5 the nurse administers mifepristone to a patient in the first trimester for an abportion. the nurse instructs the patient to return for a follow-up visit in 2 days to recieve a 400 mcg dosage of misorostol. how long after the last manstrual period is it sae to use these medications A statistics professor plans classes so carefully that the lengths of her classes are uniformly distributed between 47 and 57 minutes. Find the probability that a given class period runs between 50.5 and 51 minutes? chuck, a single taxpayer, earns $77,900 in taxable income and $13,100 in interest from an investment in city of heflin bonds. (use the u.s tax rate schedule.) required: how much federal tax will he owe? what is his average tax rate? what is his effective tax rate? what is his current marginal tax rate? four point charges lie on the vertices of a square with side length . two adjacent vertices have charge while, the other two have charge . what is the m Six years ago Anita was P times as old as Ben was. If Anita is now 17 years old, how old is Ben now in terms of P ?A. 11/P + 6B. P/11 +6C. 17 - P/6D. 17/PE. 11.5P Why is there no reaction if you remove mercury oxide,HgO from the reaction? 6[tex]6\sqrt{24} \alphax^{4}[/tex]