What is output by the following code? Select all that apply.
c = 2

while (c < 12):

print (c)
c = c + 3

answers possible

3

4

6

7

9

2

10

5

12

8

1

11

Answers

Answer 1

The output by the  code given above is option I: 5

What does the programming example output mean?

The output of a computer or other electronic equipment is any data that has been processed and sent out.

Output is simply what occurs after all the code has been completed, the final outcome. It is what is entered into the console when all calculations have been completed. Basically, it's what is released.

Since the value of c is said to be 2

Hence

2<12 (true statement)

print

c = c+3

Fro example c=2+3

Hence the answer is 5.

Learn more about Code output from

https://brainly.com/question/14178971
#SPJ1


Related Questions

Which of the following statements correctly explain how the Internet is able to facilitate communication at a large scale? 1) A central monitoring computer is used to track and maintain the connections of the Internet. II) Data is routed between points in multiple ways so that if a connection fails, the data can be rerouted around the inoperative connections. III) Protocols for packets and routing are used so that computers from different manufacturers can communicate in a standard way.: A) II only B) I and II only C) Il and Ill only D) I and Ill only E) I, II, and III

Answers

Data is routed between points in multiple ways so that if a connection fails, the data can be rerouted around the inoperative connections.

What is data?

In the pursuit of knowledge, data is a collection of to the discrete values that convey information, describing the quantity, quality, fact, and  statistics, other basic units by  of meaning, or simply of the  sequences of symbols that is  may be further interpreted. A datum is an individual by the  value in a collection of data.

Which of the following statements correctly explain how the Internet is able to facilitate communication at a large scale? II. Data is routed between points in multiple ways so that if a connection fails, the data can be rerouted around the inoperative connections.

Protocols for packets and routing are used so that computers from different manufacturers can communicate in a standard way.

To know more about data click-

https://brainly.com/question/518894

#SPJ4

anhd the goal is to remove the firs tand third elements in the array and move ths second and fourth elements up to the beginning of the array. here an element will be removed

Answers

The correct implementation of the given program array is followed below

                mov al, [arr+LENGTHOF arr-3]

                   mov [arr], al

                  mov al, [arr+LENGTHOF arr-1]

                   mov [arr+1], al

                  mov [arr+LENGTHOF arr-2], 0

                  mov [arr+LENGTHOF arr-1], 0

What is an example array?

An array is a collection of similar data types. For example, if you want to store the names of 100 people, you can create an array of type string that can store 100 names. string[] array = new string[100]; where the above array cannot store more than 100 names. An array is a collection of elements of the same type placed in contiguous locations that can be individually referenced using an index to a unique identifier. Five values ​​of type int can be declared as an array without having to declare five different variables, each with its own identifier.

Why use arrays ?

Arrays are useful for managing large data sets under one variable name to avoid confusion that can occur when using multiple variables. Organize data items: Various array algorithms such as bubble sort, selection sort, and insertion sort allow you to organize different data elements clearly and efficiently.

Question is incomplete , missing part is given below :

Suppose a program has the following array in the data segment: arr BYTE 1, 2, 3, And the goal is to remove the first and third elements in the array, and move the second and fourth elements up to the beginning of the array. Here an element will be "removed" by putting a 0 in it's place. After the program has finished running arr should be: [2, 4, 0, 0] Which of the options below is the correct implementation of the program?

A)

mov al, [arr+LENGTHOF arr-3]

mov [arr], al

mov al, [arr+LENGTHOF arr-1]

mov [arr+1], al

mov [arr+LENGTHOF arr-2], 0

mov [arr+LENGTHOF arr-1], 0

B)

mov al, [arr+LENGTHOF arr-2]

mov [arr], al

mov al, [arr+LENGTHOF arr]

mov [arr+1], al

mov [arr+LENGTHOF arr-1], 0

mov [arr+LENGTHOF arr], 0

C)

mov al, [arr+LENGTHOF arr-2]

mov [arr+1], al

mov al, [arr+LENGTHOF arr]

mov [arr+2], al

mov [arr+LENGTHOF arr-1], 0

mov [arr+LENGTHOF arr], 0

D)

mov al, [arr+LENGTHOF arr-3]

mov [arr+1], al

mov al, [arr+LENGTHOF arr-1]

mov [arr+2], al

mov [arr+LENGTHOF arr-2], 0

mov [arr+LENGTHOF arr-1], 0

Learn more about array :

brainly.com/question/26104158

#SPJ4

Write a matlab program that uses matrix multiplication to calculate the center of mass of any spacecraft, provided the coordinates and masses of each component are defined in an input file. For example, the input file for the above example would look like:
0.1 2.0 3.0 3.50
1.0 1.0 1.0 1.50
1.5 0.2 0.5 0.79
2.0 2.0 4.0 1.75
Your program should display the center of mass to the screen for the user and graph the location of the center of mass and the locations of all components of the system. All points should be appropriately labeled and the graph should use good practices for labeling, etc. (Use the plot3 function for graphing).
Background info:
The mass of a vehicle and the location of its center of gravity is very important to space flight. One reason that it is important is that rockets tumble if the center of pressure is forward of the center of gravity. The location of the center of gravity of a system can be calculated from its component masses in a 3-D rectangular coordinate system, as RM x mi x m x3m3 xim, xin m, (Eqn. 1) y M yim y2m2 z m where i, y, and are the coordinates of the center of gravity; M 1m is the total mass of the system, xi toxin are the x-coordinates of each component (1 to n respectively); y to yn are the y-coordinates for each components zu to zn are the z-coordinates of each component, and m to mn are the masses of each component. For example, consider a vehicle with the following component locations and masses (only a limited set is shown for example tractability) component (x, y, z) meters (0.1, 2.0, 3.0) bolt 3.50 (1.0, 1.0, 1.0) 1.50 (1.5, 0.2, 0.5) 0.79 bracket 0.2.0, 4.0 75 Solving for X in the equation 1 thex-coordinate of the center of gravity is (Eqn. 4) The y- and z-coordinates for the center of gravity can be determined similarly. The X 1xum term in equation 4 is the dot product of a vector containing the x-coordinates of each component x x1, x2, x] and a vector containing the masses of each component m [mu, m2, mn]. Hence, matrix multiplication can be used to calculate all coordinates of the center of gravity simultaneously, as C Cm mu, where c (x, y, z) is the geometric vector that contains the coordinates of the center of gravity and Cis an appropriately defined matrix that holds the values of the component coordinates

Answers

To write a matlab program that uses matrix multiplication to calculate the center of mass of any spacecraft, provided the coordinates and masses of each component are defined in an input file, check the code given below.

What is matrix?

A matrix is a collection of numbers that have been put in rows and columns to make a rectangular array. The entries of the matrix are the numbers, which are referred to as its elements. In addition to many areas of mathematics, matrices are widely used in the fields of engineering, physics, economics, and statistics.

The representation of rotations and other image transformations has been accomplished using matrices, which have significant applications in computer graphics.

In the past, the determinant—a square array of numbers—and a particular number connected to it were what were initially recognized, not the matrix itself. The notion of the matrix as an algebraic entity didn't first appear until very recently.

↓↓//CODE//↓↓

clc

clear all

x=input('Input x as a row vector: ');

y=input('Input y as a row vector: ');

z=input('Input z as a row vector: ');

m=input('Input m as a row vector: ');

m=m';

A=[x;y;z];

b=m;

M=sum(m);

X=A*b;

fprintf('Coordinate of center of gravity is (%.2f, %.2f, %.2f)\n',X(1),X(2),X(3));

Learn more about matrix

https://brainly.com/question/1279486

#SPJ4

item 50 according to the osha computer workstations checklist, when working at a computer, in what position should you hold your head?

Answers

According to the OSHA computer workstations checklist, when working at a computer you should hold your head positioned straight.

What is OSHA Computers workstations?

The typical worker will be exposed to only a few ergonomic risks at today's computer workstations if all of the parts are working properly. It may be challenging to diagnose many injuries or illnesses linked to computer workstations because they tend to be of an ergonomic nature.

A helpful method of preventative intervention is accurate and prompt recording, as described in OSHA's Injury and Illness Recordkeeping and Reporting Requirements Safety and Health Topics Page.

Exposure to extremely low frequency electric and magnetic fields is not covered by any specific OSHA regulations. Office settings are covered by current OSHA regulations regarding electrical safety, radiation exposure, and noise.

Learn more about ergonomic

https://brainly.com/question/28831103

#SPJ4

please select all of the following biometrics that are all unique to individuals or are sufficiently unique to be used for authnetication

Answers

Authentication of fingerprints :Fingers placed against flat surfaces are examined by fingerprint reading systems. The finger's peaks, valleys, and assortment of particular places are all scanned.

How do fingerprints work?

The polymorphic ridges on the the tips of the fingers fingers thumbs produce a fingerprint imprint. Because each person's finger has a different pattern of ridges that does not change with age or grow, fingerprints provide an unfailing method of personal identification.

What do your fingerprints reveal about you?

In essence, the genetic factors that predispose you to excelling in a particular physical activity and your neuromuscular ability are revealed by your fingerprints.

To know more about Fingerprint visit :

https://brainly.com/question/23537577

#SPJ4

Find 3 positive numbers whose mean is 20 times as large as their median

Answers

Using the knowledge in computational language in python it is possible to write a code that Find 3 positive numbers whose mean is 20 times as large as their median

Writting the code:

def findMean(a, n):

   sum = 0

   for i in range(0, n):

       sum += a[i]

   return float(sum/n)

# Function for calculating median

def findMedian(a, n):

   # First we sort the array

   sorted(a)

   # check for even case

   if n % 2 != 0:

       return float(a[int(n/2)])

   return float((a[int((n-1)/2)] +

                 a[int(n/2)])/2.0)

# Driver code

a = [1, 3, 4, 2, 7, 5, 8, 6]

n = len(a)

# Function call

print("Mean =", findMean(a, n))

print("Median =", findMedian(a, n))

See more about python at brainly.com/question/18502436

#SPJ1

Use the drop-down menus to complete each sentence about Adjust options for images.
If you want to change the amount of color in an image, use the
option.
If you want to reduce the size of a file, use the
If you want to make an image look like a sketch, use the
✓option.
option.

Answers

Answer:

1. color 2. compress pictures 3. artistic effects

Explanation:

i got it right

o execute a stored sql procedure, which jdbc interface should be used? statement interface preparedstatement interface prepreparedstatement interface callablestatement interface

Answers

CallableStatement jdbc interface should be used.

What is interface?

An interface in the Java programming language is an abstract type that is used to describe a behavior that classes must implement. They are similar to by the  protocols. Interfaces are the  declared using the interface keyword, and may only contain method signature and constant declarations

However, the preferred interface is CallableStatement. The speed by the CallableStatement interface supports the invocation of to a  stored procedure. There are CallableStatement interface can be used to call stored procedures with the  input parameters, output of the  parameters, or input and output parameters, or the  no parameters.

To know more about interface click-

https://brainly.com/question/25480553

#SPJ4

your organization entered into an interoperability agreement (ia) with another organization a year ago. as a part of this agreement, a federated trust was established between your domain and the partner domain. the partnership has been in the ongoing operations phase for almost nine months now. as a security administrator, which tasks should you complete during this phase? (select two.) answer negotiate the bpo agreement verify compliance with the ia documents draft an mou document conduct periodic vulnerability assessments disable user and groups accounts used by the partner organization to access your organization's data

Answers

Tasks you should complete during this phase are:

A) Verify compliance with the IA documents

B) Conduct periodic vulnerability assessments

What is IA?

An interoperability agreement (IA) is a contract between the MDTA and one or more other toll account providers that outlines the protocols and arrangements that are to be followed by the parties to the agreement.

Under these protocols and arrangements, the parties agree to pay each other for all toll transactions that comply with the terms for transmission, debiting, and payment and are necessary to be included in the current payment cycle. The regional interoperability agreement as well as the IAG are included in these agreements.

An organizational interoperability agreement (OIA) is a tool of a private nature that formalizes governance rules allowing collaboration between digital public services with enabling value.

The Organisational Interoperability Agreement ABB, which promotes collaboration between digital public services, is a crucial interoperability enabler because it supports organizational governance interoperability.

Learn more about interoperability agreement

https://brainly.com/question/24280524

#SPJ4

What are not type of analytical procedures?
A
Spreadsheet analysis
B
Trend analysis
C
Ratio analysis
D
Reasonable testing

Answers

Answer:

A) spreadsheet analysis

Explanation:

Hope this helps

For this assignment you need to create reduction from Circuit Value Problem (cvp) to Context Free Grammar Membership problem. Your code should take a circuit written as a logical statement and a list of zeros and ones corresponding to the input of the circuit. Afterwards your code should return a context free grammar on Chomsky normal form and a string that can be put on the cyk algorithm. (100) - The circuit is going to be binary so any gate can only take 2 inputs and output 1 value. Also any output can only go into one gate or it can be the output of the circuit. - For this problem we are going to ignore the "not" gate so the given circuits can only have "or" and "and" gates. - When a circuit is written as a logical statement we are going to use "+" sign to represent "or" gates and "*" sign to represent "and" gates. - In the logical statement all inputs are going to be represented with an "
x
" followed with a number. This number can be more than 1 digit. An example "
×12
". - The biggest circuit your code can receive consists of 25 inputs and 50 circuits. - Your code doesn't need to be efficient but if it is running on linear time, it will receive 20 extra points. - Here is an example circuit written as a logical formula:
((x1+x2) ∗
×3)+(x4 ∗
×5)

Answers

Context free grammar is a type of formal grammar that generates all possible strings in a given formal language in the automata theory.

What is a Formal Language?

The formalisms of automata theory underpin our understanding of the relative roles and computational power of scanners, parsers, regular expressions, and context-free grammars.

A formal language is a set of strings of symbols drawn from a finite alphabet in automata theory.

A formal language can be specified by a set of rules that generates the language (such as regular expressions or a context-free grammar) or by a formal machine that accepts (recognizes) the language.

To know more about automata theory, visit: https://brainly.com/question/13259735

#SPJ4

Which of the following is a part of a DDL statement?
UPDATE
INSERT
CREATE
DELETE

Answers

CREATE is a part of a DDL statement . You can use DDL statements to create, alter, and delete resources, like as tables,

How is DDL defined?

Data definition language (DDL) is a subset of SQL. A language for describing data and their relationships in a database. You can generate DDL in scripts for database objects for the following purposes: Keep a snapshot of your database structure. Set up a test system whose database behaves like the production system but contains no data. These commands are used to change the structure of databases and database objects.

For example, you can use DDL commands to add, drop, or modify tables in your database. Data definition language (DDL) statements allow you to create and modify resources using standard SQL query syntax. You can use DDL commands to create, alter, and drop resources such as tables,

Learn more about DDL Commands :

brainly.com/question/15518371

#SPJ4

static binding occurs when the compiler binds a function call with the function call that resides in the same class as the call itself.

Answers

Static binding occurs when the compiler binds a function call through the function call that resides in the same class as the call itself. (True)

What is Static binding?

Static Binding: Also referred to as early binding, static binding is a binding that the compiler can resolve at the time of compilation. At compile time, all static, private, and final methods are bound.

Static binding offers superior performance (no extra overhead is required). A local class object will always be able to access these methods because they cannot be overridden, according to the compiler. Consequently, the compiler has no trouble determining the class object (local class for sure). This explains why binding for these methods is static.

Objects are used to resolve binding in dynamic binding while type information is used for binding in static binding.

Learn more about static binding

https://brainly.com/question/29744456

#SPJ4

even though it could be tempting, you should resist the urge to use your work computer or other technology for or internet activity.

Answers

Even though it could be tempting, you should resist the urge to use your work computer or other technology for or internet activity is false.

Can employers access employee computers?

"Activity that has the potential to be harmful, evil, or create vulnerabilities." are those that need not be done in a work computer.

Therefore, You should be aware that some businesses will never look at what you do on your smartphone. Frequently, a company will only look into a worker's laptop or smartphone use if a complaint has been made against them or if they are suspected of engaging in other unlawful behavior.

Learn more about internet activity from

https://brainly.com/question/2780939
#SPJ1

even though it could be tempting, you should resist the urge to use your work computer or other technology for or internet activity. true or false.

to locate a value that is in an ordered array of 50 items, linear search must examine an average of values.

Answers

Data Structure is a systematic way to organize data in order to use it efficiently. Following terms are the foundation terms of a data structure.

Interface − Each data structure has an interface. Interface represents the set of operations that a data structure supports. An interface only provides the list of supported operations, type of parameters they can accept and return type of these operations.
Implementation − Implementation provides the internal representation of a data structure. Implementation also provides the definition of the algorithms used in the operations of the data structure.

after a malware infection has been fully remediated, you should re-enable system restore and run a full system backup. which of the following is the best place to save this backup?

Answers

After a malware infection has been fully remediated, you should re-enable System Restore and run a full system backup, the best place to save this backup is: B. an external drive.

What is a malware?

In Computer technology, a malware can be defined as any type of software program such as a game or screen saver, that is designed and developed to be intentionally harmful to a host computer, website, server, or software program, files, network, especially for the purpose of wreaking havoc, disruption, and destruction.

In Computer technology, some examples of a malware include the following:

AdwareTrojan horseSpywareWormsRootkitRATZombiesViruses

In conclusion, an end user should re-enable system restore and perform a full system backup on an external drive when a malware infection has been successfully remediated, controlled, or mitigated.

Read more on a malware here: brainly.com/question/28260161

#SPJ1

Complete Question:

After a malware infection has been fully remediated, you should re-enable System Restore and run a full system backup. Which of the following is the BEST place to save this backup?

Laptop

An external drive.

An internal drive.

RAM

describe the following variables which are used to characterize populations: population size, population density, and population dispersion

Answers

Population dynamics are an important factor in understanding the behavior of populations. Population size, density, and dispersion are key characteristics used to characterize and understand populations.

Describing the following variables which are used to characterize populations:

Population size: This refers to the number of individuals within a given population. It can be expressed either as an absolute number or as a proportion of the total population. Population density: This refers to the number of individuals in a given area. It is usually expressed either as the number of individuals per unit area (e.g. number of people per square kilometer) or as the number of individuals per unit volume (e.g. number of people per cubic kilometer). Population dispersion: This refers to the pattern of distribution of individuals within a given population. It is usually expressed either as the percentage of individuals in a given area or as the average distance between individuals.

Learn more about Population: https://brainly.com/question/25630111

#SPJ4

Types of left shift
a. logical left shift
b. arithmetic left shift
c. both of them
d. none of them

Answers

Types of left shift are, both of them a.

What is left shift?
Left shift
is a bitwise operation in which the bits of a binary number are shifted to the left by a certain number of places. This has the effect of multiplying the number by a factor of two for each place shifted. For example, shifting the binary number 101 by two places to the left results in 10100, which is equivalent to the decimal number 20. In addition to multiplication, left shift can be used to divide a number by two, with each shift to the left resulting in a half of the original number. It can also be used to move bits from one byte to another and to fill in empty bits in a byte. Left shift is a very efficient operation since it can be done with a single instruction, and is often used in programming and digital signal processing.

1. Logical Left Shift: This type of left shift shifts the bits of a binary number to the left, discarding the bit that is shifted off and inserting a 0 in the least significant bit (LSB) position.

2. Arithmetic Left Shift: This type of left shift is similar to the logical left shift, except that the bit shifted off is replaced with the same value as the LSB. This is useful for preserving the sign of a number when performing arithmetic operations.

To learn more about left shift
https://brainly.com/question/22719742
#SPJ4

Which of the following are valid ways to end a loop? Select all that apply


Checking when a variable reaches a certain value

Using user output

Using user input

Using calculations such as division

Answers

Using user output I think is good

which of these exploration techniques helps you visualize the steps your users take toward a key task or conversion and see how well they are succeeding or failing at each step?

Answers

The exploration techniques that helps you visualize the steps your users take toward a key task or conversion and see how well they are succeeding or failing at each step is option B: Funnel exploration

What is the purpose of a funnel?

The practice of mapping website visitor flow to a set of precise funnel processes that lead to conversions or signups is known as funnel analysis. Businesses use funnel analysis to track the user's progress around their websites, improve them, and determine how many people enter at each stage.

Therefore, one can say that the use of funnel exploration, you can easily assess how well your users are succeeding or failing at each step in the process of completing a task.

Learn more about  exploration from

https://brainly.com/question/29520600
#SPJ1

See options below

Cohort explorations

Funnel exploration

Free form

Segment overlap

T/F. Because computer-aided investigation system have no proven to be very effective in the criminal investigation process, they are being abandoned by many police departments in the United States

Answers

FALSE,

It's not true that computer-aided investigation systems have not proven to be very effective, and thus police departments in the United States are abandoning this system.

What is computer-aided (CAD) investigation systems?

In the world of terrorism, it is critical to understand the network of individual suspects. It is also necessary to examine the characteristics of network members as well as the relationships that exist between them, either directly or indirectly. This will make it easier to develop concepts to aid in criminal investigations.

Traditional approaches, on the other hand, cannot be used to visualize and analyze data collected on individuals. In this day and age, where information systems play an important role in everyone's daily lives, it is easier to rely on digital information to combat crime. In order to combat crime, effective computer tools and intelligent systems that are automated to analyze and interpret criminal data in real time are required.

To know more about computer-aided (CAD), visit: https://brainly.com/question/28820108

#SPJ4

you are implementing a soho network for a local business. the isp has already installed and connected a cable modem for the business.

Answers

The first step for configuring the SOHO network is to install a router. The router will allow the business to create a local network, provide access to the internet, and enforce security policies.

what is soho?

In the hypothetical situation, a Wireless network on a workplace should be designed. There are wifi networks in all of the building's offices. You should conduct a wireless site reconnaissance before configuring a wireless network again for SOHO.

You can use this poll to determine which network nodes (AP) are situated in the most advantageous areas. The SOHO router should be set up for NAT since it is the MOST probable way to regain internet connectivity. By turning on NAT on the router, the SOHO network is given the ability to link or connect any devices to it.

Therefore, setting up the SOHO network for NAT is the MOST likely option to get internet access back.

To learn more about soho

https://brainly.com/question/10674980

#SPJ4

A programmer needs to instruct an object in her program to move up when the up-arrow key is pressed. Which of the following must the programmer write to accomplish this?

Answers

The event handler  must the programmer write to accomplish this.

What is a event handler?

An event handler is code that is associated with a particular event, such as “button A pressed”. You create (or register) the association between an event and an event handler by calling a function named “on “.

In programming, an event handler is a callback routine that operates asynchronously once an event takes place. It dictates the action that follows the event. The programmer writes a code for this action to take place. An event is an action that takes place when a user interacts with a program.

See more about event handler at brainly.com/question/497311

#SPJ1

when a caller uses an ip telephone, his or her voice is immediately digitized and issued from the telephone to the network in form.

Answers

The voice is sent as an IP packet. The packet contains the voice data encoded in a codec, such as G.711, G.729, or Opus.

When a caller uses an IP Telephone, his or her voice is immediately digitized and issued from the telephone to the network in form?

An IP telephone is a device that allows users to make and receive calls over the internet. When a caller uses an IP telephone, the voice is digitized and sent over the internet as an IP packet. This packet contains the voice data encoded in a codec such as: G.711, G.729, or Opus. This ensures that the data is easy to transmit, is compressed to save space and is of high quality. The data is sent through the network and delivered to the recipient as a digital packet. The recipient's IP phone then decodes the packet and plays the voice. This process allows for quick, high-quality voice calls over the internet.

Learn more about Telephone: https://brainly.com/question/917245

#SPJ4

True. Ip telephones are digital phones that use Internet Protocol technology to transmit audio signals over the Internet. When a caller speaks into the phone, the sound is immediately digitized and sent to the network in packets. These packets are then reassembled at the receiving end of the call and the voice is heard.

The Benefits of IP Telephones: The Future of Voice Communication

The modern world has seen a tremendous surge in technological advancement, and one of the most exciting innovations is the development of IP telephones. IP telephones, or Internet Protocol phones, are digital phones that use Internet Protocol (IP) technology to transmit audio signals over the Internet. This technology offers a variety of benefits that have revolutionized the way we communicate.

The most obvious benefit of the IP telephone is that it allows for much clearer sound quality than traditional analog phones. This is due to the fact that the digital signal is more reliable and consistent than the analog signal. This means that conversations sound clearer and more natural than ever before. Furthermore, IP phones allow for more features than traditional phones, such as the ability to make conference calls, video calls, and even text messages.

In addition, IP phones are much more cost-effective than traditional phones. Since the technology is digital, it does not require the installation of costly physical lines and wiring. This makes them much more affordable for businesses and households alike. Furthermore, IP telephones are also much more efficient than traditional phones, as they require less maintenance, are more reliable, and are easier to configure.

Learn more about Ip phones:

https://brainly.com/question/7580888

#SPJ4

ype two statements that use nextInt() to print 2 random integers between (and including) 100 and 149. End with a newline. Ex: 112 102 Note: For this activity, using one statement may yield different output (due to the interpreter calling randGen.nextInt( in a different order). Use two statements for this activity

Answers

Two statements that use nextInt() to print 2 random integers between (and including) 100 and 149.//Random Generate Numbers.java import java.util.Random;

NB solution is recommended

import java.util.Scanner;

import java.util.Random;

public class Random Generate Numbers {

public static void main (String [] args) {

Random randGen = new Random();

int seedVal = 0;

seedVal = 4;

randGen.setSeed(seedVal);

System.out.println(randGen.nextInt(50) + 100);

System.out.println(randGen.nextInt(50) + 100);

return;

}

}

What does nextInt mean?

The Scanner object's nextInt() method reads a series of numbers (characters) and casts them to type int. The scanner object reads characters one by one until it collects the characters used for the integer. Then convert them to 32-bit numbers.

What is nextInt() in Java?

The nextInt() method scans the next token in the input data as an int. As the name of the Scanner class suggests, the nextInt() method of this class is used to scan or parse the input. Input can be either stored as a string, read from a file, real-time data, or arbitrary system input from the user.

Learn more about NextInt() :

brainly.com/question/13226217

#SPJ4

Write a program that will add up the series of numbers: 105, 104, 103… 3, 2, 1. The program should print the running total as well as the total at the end. The program should use one for loop, the range() function, and one print() command.

Sample Run
105, 209, 312, 414, 515, 615, …, …, …, 5555, 5559, 5562, 5564, 5565

Answers

The program that will execute the above function (written in phyton) is given as follows:

# define the starting and ending numbers in the series

start = 105

end = 5565

# create a list of numbers in the series using the range() function

numbers = list(range(start, end + 1))

# initialize the running total and the final total to 0

running_total = 0

total = 0

# loop through the numbers in the series and add them to the running total

for n in numbers:

 running_total += n

 print(f"Running total: {running_total}")

 total = running_total

# print the final total

print(f"Total: {total}")

What is Phyton?

Python is a general-purpose, high-level programming language. Its design concept prioritizes code readability by employing heavy indentation.

First, the program defines the starting and ending numbers in the series, 105 and 5565, respectively. It then creates a list of numbers in the series using the range() function.

Next, the program initializes the running total and the final total to 0.

Then, it loops through the numbers in the series and adds each number to the running total. As it does this, it prints the current running total. Finally, it sets the final total to the current running total and prints it.

Learn more about phyton:
https://brainly.com/question/19070317
#SPJ1

in order for a process technician to be fully equipped to troubleshoot an instrument, they must first recognize that it is really an instrument problem.

Answers

FALSE

To be fully prepared to troubleshoot a process, a process technician must first understand what is wrong with the process.

What exactly is Troubleshoot?

Troubleshooting is a methodical approach to problem solving. The goal of troubleshooting is to figure out why something isn't working as it should and to explain how to fix it.

The first step in troubleshooting is to completely describe the problem. Problem descriptions assist you and Software Support in determining where to begin in determining the cause of the problem. This step entails asking yourself the following basic questions:

What are the signs of a problem?Where does the issue arise?When does the issue occur?What are the conditions that cause the problem?Is it possible to reproduce the problem?

To learn more about Troubleshooting, visit: https://brainly.com/question/14394407

#SPJ4

users connect to the shared folder and report that they can open the files, but they cannot modify any of the files. which of the following would be the best action to take next?

Answers

Users connect to the shared folder and report that they can open the files, but they cannot modify any of the files.

Modify the NTFS permissions on the folder is the best action to take next.

What is shared folders?

To securely and conveniently share site password entries and secure notes with other LastPass users, you can create a shared folder in your vault.

When using shared folders:

A shared folder can be produced by anyone.They are simple to configure and keep up with.With thousands of users, you can distribute hundreds of passwords.Every person with whom the folder has been shared receives automatic synchronization of any changes made to the shared folder.

The number of items that can be added to each shared folder is limitless (with the exception of using LastPass for Windows Desktop application, which are hard-set at 5,000 items max). However, users should expect performance to suffer when 2,000 or more items are added for all other web browsers and programs.

Learn more about shared folder

https://brainly.com/question/9530536

#SPJ4

JAVA: Write code which asks for a side length from the user and creates an equilateral triangle and square with that length. The output that you are printing must utilize the toString method inside RegularPolygon Class.
Sample run: Type a side length: 7.5 equilateral triangle with side length 7.5 square with side length 7.5

Answers

CODE

import java.util.Scanner;

public class Main {

 public static void main(String[] args) {

   Scanner input = new Scanner(System.in);

   System.out.print("Type a side length: ");

   double sideLength = input.nextDouble();

   RegularPolygon triangle = new RegularPolygon(3, sideLength);

   RegularPolygon square = new RegularPolygon(4, sideLength);

   System.out.println("equilateral triangle with side length " + sideLength + "\nsquare with side length " + sideLength + "\n" + triangle.toString() + "\n" + square.toString());

 }

}

Describe method.

A process linked to a message and an object is referred to as a method in object-oriented programming (OOP). An object is made composed of state information and behaviour, that together make up the interface which outlines how any of the object's numerous consumers can use it. A method is a consumer-parametrized behaviour of an object. Behaviors are represented as methods, while data is depicted as an object's properties. For instance, a Window object could have properties like open and close as well as actions like open and close, and its state whether it is opened or closed at any particular time) would be a method.

To know more about method
https://brainly.com/question/12976929
#SPJ4

Jane owns a dress-making business. Her income last quarter was $8,000, her cost of goods was $1,500, and her
total expenses were $3,000. What were Jane’s gross income and net income?

Answers

According to the data, Jane's gross income was $3,500, while net income was $3,430

What is gross income?

Gross income is a term to refer to the total income that a person obtains from an economic activity. That is, gross income is the subtraction of costs and expenses from income.

What is net income?

Net income is a term for a person's income after including all tax deductions from gross income.

So, to calculate the gross income we must identify what her total income was and subtract the expenses and costs that she spent. Additionally, to find the net income we must identify her gross income and subtract the equivalent of taxes on her earnings as shown below:

$8,000 - $3,000 - $1,500 = $3,500

$3,500 / 100 = $35

$35 * 2 = $70

$3,500 - $70 = 3430

Based on the above, it can be inferred that Jane's gross income is $3,500 while her net income from her is $3,430 because she had 2% tax deducted from her earnings from her.

Learn more about taxes in: https://brainly.com/question/16423331

#SPJ1

Other Questions
What is the difference between a violent crime & a hate crime?- a violent crime is based on a person's race, religion, or other characteristics- a hate crime is punishable in a court of law; a violent crime is not- a violent crime is punishable in a court of law; a hate crime is not - a hate crime is based on a person's race, religion, or other characteristics jones expects an immediate investment of $57,466 to return $10,000 annually for eight years, with the first payment to be received one year from now. what rate of interest must jones earn? (pv of use the compound interest formulas A=P(1+r/n)^nt and A=Pe^rt to solve. find the accumulated value of an investment of $8000 at 11% compounded continuously for 3 years explicit memory is to as implicit memory is to . group of answer choices self; others aware; unaware episodic; semantic primacy; recency Which is the standard equation of the hyperbola centered at the origin, with a vertical transverse axis and values of a = 8 and b = 9? Which mammals were found to have a vocal range of 7 octaves, nearly twice that of humans?WolvesHyenasBats As Secretary of the Treasury, Alexander Hamilton's first objective was toA. help the wealthyB. bring more industry to the United StatesC. see that more agricultural products were exportedD. bolster the national creditE. put the country on the gold standard Use the Distributive Property to factor out the GCF.26n + 7n + 13n = darwin developed and proposed the theory of evolution during the 1800s. since that time, due in part to advances in technology, scientists have expanded their knowledge and ideas about biological systems. which statement describes an example of evidence acquired in the past 100 years and its relationship to the theory of evolution? group of answer choices a. new evidence from molecular biology provides overwhelming support that all life evolved from a single ancestor. b. new evidence from molecular biology provides evidence that life evolved from many ancestors, not a single ancestor. c. new evidence from fossils provides evidence that one species does not descend from another. d. new evidence from biogeography provides evidence that one species does not descend from another. how does the author (hawthorne) think that his ancestors would feel about him working at the custom house? Which of the following is the first worm to be distributed over a network without others users being aware of its presence? when a large number of single-phase loads are to be served from a 3-phase transformer bank, which low voltage winding connection is preferred? and why? what are two things that worry you about living on your own? what are two things that youre excited about? If Carissa can eat 2 pints of ice cream in 6 days, how long will it take here to eat 10 pints of ice cream? SOLVE USING PROPORTIONS a. if a producer tries to sell oranges at a price of $0.80 per pound, what will be the quantity demanded and quantity supplied at this price? Discuss some of the advantages and disadvantages of the reparations Germany paid at the end of World War I. Why do you think they were necessary? How did the reparations contribute to the global political climate surrounding the beginning of World War II? A train is moving at a speed of 65.0 mi/h. The ticket collector is walking 2.00 mi/h toward the front of the train. How fast is the ticket collector moving from the point of view of a person on the train? The University of California has instituted a policy that makes it mandatory for all campuses to purchase all foodfrom local farmers.O FalseO True A student observed a white light bulb while looking through three different sheets of transparent plastic. The student recorded the observations in the data table.Which explanation do these data best support? aEach plastic sheet refracts the wavelengths of light from the blue light bulb at different angles. bEach plastic sheet absorbs one wavelength of light. cEach plastic sheet changes the wavelengths of light from the light bulb in different amounts. dEach plastic sheet transmits a different wavelength of light. Which of the following was a conservative movement of the 1920s?Red ScareProhibitionKlu Klux KlanAll of these answers are correct.