Answer:
In Python:
nums = []
larg= []
small = []
while True:
for i in range(10):
num = int(input(": "))
nums.append(num)
print("Smallest: "+str(min(nums))); print("Largest: "+str(max(nums)))
larg.append(max(nums))
small.append(min(nums))
another = int(input("Press 1 to for another sets: "))
nums.clear()
if not another == 1:
break
print("Average Large: "+str(sum(larg)/len(larg)))
print("Average Small: "+str(sum(small)/len(small)))
Explanation:
This initializes the list of input numbers
nums = []
This initializes the list of largest number of each input set
larg= []
This initializes the list of smallest number of each input set
small = []
This loop is repeated until, it is exited by the user
while True:
The following iteration is repeated 10 times
for i in range(10):
Prompt the user for input
num = int(input(": "))
Add input to list
nums.append(num)
Check and print the smallest using min; Check and print the largest using max;
print("Smallest: "+str(min(nums))); print("Largest: "+str(max(nums)))
Append the largest to larg list
larg.append(max(nums))
Append the smallest to small list
small.append(min(nums))
Prompt the user to enter another set of inputs
another = int(input("Press 1 to for another sets: "))
Clear the input list
nums.clear()
If user inputs anything other than 1, the loop is exited
if not another == 1:
break
Calculate and print the average of the set of large numbers using sum and len
print("Average Large: "+str(sum(larg)/len(larg)))
Calculate and print the average of the set of smallest numbers using sum and len
print("Average Small: "+str(sum(small)/len(small)))
Consider the following program:
def test_1():
test_3()
print("A")
def test_2():
print("B")
test_1()
def test_3():
print("C")
What is output by the following line of code?
test_1()
C
A
B
C
A
C
C
A
Answer:
this would be answer D
Explanation:
In this exercise we have to use the knowledge of computational language in python to write the code.
We have the code in the attached image.
The code in python can be found as:
def test_1():
test_3()
print("A")
def test_3():
print("C")
Back to test_1()
print("A")
What is program?A computer can run multiple programs simultaneously, and each program can be in a different state. There are three states a program can be in: running, blocked, and ready. If a program is running, it means that it is currently using the computer's resources, such as the processor, memory, and I/O devices, to perform its tasks.
On the other hand, if a program is blocked, it means that it is waiting for a resource to become available, such as a file, network connection, or input from the user. In the scenario you mentioned, "Program A" is in the running state, meaning it is actively using the computer's resources.
Therefore, Program B" is in the blocked state, meaning it is waiting for a resource to become available so it can continue to run.
Learn more about program on:
https://brainly.com/question/30613605
#SPJ3
A ___________ is a variable used to pass information to a method.
Answer:
A parameter is a variable used to pass information to a method.
Explanation:
A parameter is a variable used to pass information to a method.
What are the features of parameter?In general, a parameter "beside, subsidiary" is any quality that aids in describing or categorizing a certain system. In other words, a parameter is a component of a system that is crucial or useful for identifying the system or assessing its functionality, status, or other characteristics.
In some fields, such as mathematics, computer programming, engineering, statistics, logic, linguistics, and electronic music production, the term "parameter" has more precise definitions.
In addition to its technical applications, it also has broader meanings, particularly in non-scientific situations. For example, the terms "test parameters" and "game play parameters" refer to defining qualities or boundaries.
A novel method of characterizing surface texture, in particular surfaces having deterministic patterns and features, is the use of feature parameters.
Traditional methods for characterizing surface texture, such profile and areal field parameters, are considered as supplementary to the feature parameter approach.
Learn more about parameter, here
https://brainly.com/question/29911057
#SPJ6
g Write a function named vowels that has one parameter and will return two values. Here is how the function works: Use a while loop to determine if the parameter is greater than 1. If it is not greater than 1, do the following: Display a message to the user saying the value must be greater than 1 and to try again. Prompt the user to enter how many numbers there will be. Use a for loop that will use the parameter to repeat the correct number of times (if the parameter is 10, the loop should repeat 10 times). Within this for loop, do the following: Generate a random integer between 65 and 90 Convert this integer to is equivalent capital letter character by using the chr function. If num is the variable with this integer, the conversion is done like this: ch
Consider the following recursive method.
public static String doSomething(String str)
{
if (str.length() < 1)
{
return "";
}
else
{
return str.substring(0, 1) + doSomething(str.substring(1));
}
}
Which of the following best describes the result of the call doSomething(myString) ?
A
The method call returns a String containing the contents of myString unchanged.
B
The method call returns a String containing the contents of myString with the order of the characters reversed from their order in myString.
C
The method call returns a String containing all but the first character of myString.
D
The method call returns a String containing only the first and second characters of myString.
E
The method call returns a String containing only the first and last characters of myString.
Answer:
A
The method call returns a String containing the contents of myString unchanged.
Explanation:
Which database item would show details such as a customer’s name, their last purchase, and other details about a customer?
A. file
B. field
C. record
D. table
E. index
Answer:
The answer is C. Record
Explanation:
What is the name for the part of a camera which can block light when it's closed, and let light in when it's open?
Pixel
Lens
Focus
Shutter
jettison folk 2007, Magnum opus, be moving, offers poisoned commentary on the film industry.
Answer:
I'm a little confused...
Explanation:
Can you reword this please?
Write a recursive method called permut that accepts two integers n and r as parameters and returns the number of unique permutations of r items from a group of n items. For given values of n and r, this value P(n, r) can be computed as follows:
n!/(n - r)!
For example , permut (7, 4) should return 840.
Answer:
Following are the code to the given question:
public class Main//defining a class Main
{
static int permut(int n, int r)//defining a method permut that holds two variable
{
return fact(n)/fact(n-r);//use return keyword to return calcuate value
}
static int fact(int n)//defining a fact method as recursive to calculate factorials
{
return n==0?1:n*fact(n-1);//calling the method recursively
}
public static void main(String[] abs)//main function
{
//int n=7,r=4;//defining integer variable
System.out.println(permut(7,4));//use print method to call permut method and print its values
}
}
Output:
840
Explanation:
Following is the explanation for the above code.
Defining a class Main.Inside the class two methods, "permut and fact" were defined, in which the "permut" accepts two values for calculating its permutated value, and the fact is used for calculates factorial values recursively. At the last, the main method is declared, which uses the print method to call "permut" and prints its return values.what is the weather in Ireland?
Answer:
Year-round, Irish weather as a whole tends to stick with what it knows: Mildly crisp weather, around 270 days of rain, with sunshine and wind. Although slight fluctuations occur dependent on the month and season, the average yearly temperature is around 50 degrees Fahrenheit.
Answer:
hi
Explanation:
The climate of Ireland is mild, humid and changeable with abundant rainfall and a lack of temperature extremes. ... January and February are the coldest months of the year, and mean daily air temperatures fall between 4 and 7 °C (39.2 and 44.6 °F) during these months.
have a nice day
I love Ireland very much
User defined blocks of code can be created in
Snap using the
feature.
A. make a block
B. duplicate
C. create
D. define a function
Number the steps to describe how Tristan can complete
this task.
Cut the Television and related equipment row.
Paste the Television and related equipment row.
Click the plus sign on the left side of the table between
the last two rows.
Answer:
Cut the Television and related equipment row.Click the plus sign on the left side of the table between the last two rows.Paste the Television and related equipment row.Explanation:
In order to move the row, Tristan should first select the row and then cut it. This will ensure that the row will be moved completely instead of copied.
Tristan should then hover with the mouse between the last two rows and click on the plus sign on the left side. It will add a new row to the sheet. between the last two rows.
Tristan should then select the topmost cell and click paste. The television row will be pasted there and Tristan would have successfully moved it.
Answer:
2 3 1 Your Welcome
Explanation:
If you notice that a worksheet displays columns A, B, C, E, and F, what happened to column D?
Answer:
HUDSU
Explanation:WGSDBHEUIWDBWJJ
arrange the following numbers from the highest to the lowest. ⅔,-7,0. no file or photo
Answer:
2/3, 0, -7
Explanation:
I need help solving this problem on Picoctf. The question is What happens if you have a small exponent? There is a twist though, we padded the plaintext so that (M ** e) is just barely larger than N. Let's decrypt this: ciphertext. The ciphertext is this. I tried using stack flow and the rsatool on GitHub but nothing seems to work. Do you guys have any idea of what I can do. I need to solve this problem asap
Explanation:
Explanation:
RSA encryption is performed by calculating C=M^e(mod n).
However, if n is much larger than e (as is the case here), and if the message is not too long (i.e. small M), then M^e(mod n) == M^e and therefore M can be found by calculating the e-th root of C.
Suppose you observe that your home PC is responding very slowly to information requests from the net. And then you further observe that your network gateway shows high levels of network activity, even though you have closed your email client., Web browser, and other programs that access the net. What types of malware could cause these symptoms
ANSWER: BOT
EXPLANATION: When a PC is experiencing the listed effects, it thus depicts that the PC is under attack by a bot, which is a type of script or software application that establishes automated tasks via command.
However, a bad bots often initiate malicious tasks that gives room for attackers to take control over an affected PC remotely, most especially for fraudulent activities.
When several affected computers are connected, they form a botnet connection.
Basic python coding, What is the output of this program? Assume the user enters 2, 5, and 10.
numA = 0
for count in range(3):
answer = input ("Enter a number: ")
fltAnswer = float(answer)
numA = numA + fltAnswer
print (numA)
Thanks in advance!
:L
Answer:
17.0
Explanation:
I ran it for you. You could also try that (go to replit).
If not cleared out, log files can eventually consume a large amount of data, sometimes filling a drive to its capacity. If the log files are on the same partition as the operating system, this could potentially bring down a Linux computer. What directories (or mount points) SHOULD be configured on its own partition to prevent this from happening?
Answer:
/var
Explanation:
The /var subdirectory contains files to which the system writes data during the course of its operation. Hence, since it serves as a system directory, it would prevent log files from consuming a large amount of data.
Answer:
/var
Explanation:
Hope this helps
Which of the following best describes the safety of blogging
Generally safe, but there may be some privacy and security concerns. Therefore option B is correct.
While blogging can offer a relatively safe platform for expressing ideas and connecting with an audience, it is not entirely risk-free.
Privacy and security concerns can arise, especially when bloggers share personal information or discuss sensitive topics.
Cybersecurity threats, such as hacking or data breaches, can also compromise a blogger's personal information or their readers' data.
Additionally, bloggers should be mindful of online harassment and potential legal issues related to content ownership or copyright infringement.
Being aware of these risks and implementing best practices for online safety can help ensure a more secure and enjoyable blogging experience.
Therefore option B is correct.
Know more about Cybersecurity:
https://brainly.com/question/31928819
Your question is incomplete, but most probably your full question was.
Which of the following best describes the safety of blogging?
A. Completely safe, with no risks involved.
B. Generally safe, but there may be some privacy and security concerns.
C. Moderately safe, but potential risks exist, especially with sensitive topics.
D. Highly unsafe, with significant risks to personal information and security.
Write one line Linux command that performs the required action in each of the problems given below: (a) Find the difference in text between two text files File1.txt and File2.txt and save the result in a file named result.txt (b) Change the permissions of the file remote_driver.c such that the owner has the permissions to read, write and execute and anybody other than the owner can only read the file but cannot write or execute. (c) Search for the string ir_signal in the file /home/grad/remote_driver.c and print on the terminal the number of instances of the given string in the file /home/grad/remote_driver.c (d) Reboot the system after 5 minutes. (e) Display the list of processes currently being run by the user harvey. (f) Print 3 copies of a file named my_driver.c from a printer that has a name HPLaserJet4300. (g) Put the last 40 lines of the file driver_log.log into a new file final_fault.txt.
Programming a computer to win at chess
has been discussed since the
A. 1940's
B. 1950's
C. 1960's
Answer:
B.
Explanation:
Which of the following will display a string whose address is in the dx register: a.
mov ah, 9h
int 21h
b.
mov ah, 9h
int 22h
c.
mov ah, 0h
int 21h
d.
None of these
e.
mov ah, 2h
int 20h
Answer:
a)
Explanation:
Function 9 of interrupt 21h is display string.
What are
the rules for giving
variable name ?
Answer:
Rules for naming variables:
- Variable names in Visual C++ can range from 1 to 255 characters. To make variable names portable to other environments stay within a 1 to 31 character range.
- All variable names must begin with a letter of the alphabet or an underscore ( _ ). For beginning programmers, it may be easier to begin all variable names with a letter of the alphabet.
- After the first initial letter, variable names can also contain letters and numbers. No spaces or special characters, however, are allowed.
- Uppercase characters are distinct from lowercase characters. Using all uppercase letters is used primarily to identify constant variables.
- You cannot use a C++ keyword (reserved word) as a variable name.
3. Never
to any instant messages, phone call, video call, or screen
staring requests from someone you do not know.
A. reply
B. refuse
C. forward text
D. accept pictures
Answer:
[tex]\color{Blue}\huge\boxed{Answer} [/tex]
B.Refuse
Answer:
Never reply to any instant messages, phone call, video call, or screen staring requests from someone you do not know.
Hope it helps u ARMY!!
Explain why microcomputers are installed with TCP/IP protocols?
Answer:
microcomputers are installed with TCP/IP protocols because its a set of standardized rule that allows the computer to communicate on a network such as the internet
QUESTION 1
Which of the following is an example of firewall?
O a. Notepad
b. Bit Defender internet Security
O c. Open Office
O d. Adobe Reader
is a general-purpose computing device?
Answer: I think so
Explanation: All mainframes, servers, laptop and desktop computers, as well as smartphones and tablets are general-purpose devices. In contrast, chips can be designed from scratch to perform only a fixed number of tasks, but which is only cost effective in large quantities (see ASIC).
Please give brainliest not this file virus exploiter
What is the name for the last word on a dictionary page?
a. Final word
c. First guideword
b. Second guideword
d. None of these
Please select the best answer from the choices provided
A
B
XOOO
с
Answer:
bbbbbbbbbbbbbbbbbbbbbbbb
Explanation:
bbbbbbbbbbbbbbbbbbbbbbbbb
Answer:
B.Second guideword
Explanation:
Consider the following recursive method, which is intended to display the binary equivalent of a decimal number. For example, toBinary(100) should display 1100100.
public static void toBinary(int num)
{
if (num < 2)
{
System.out.print(num);
}
else
{
/* missing code */
}
}
Which of the following can replace /* missing code */ so that toBinary works as intended?
a. System.out.print(num % 2);
toBinary(num / 2);
b. System.out.print(num / 2);
toBinary(num % 2);
c. toBinary(num % 2);
System.out.print(num / 2);
d. toBinary(num / 2);
System.out.print(num % 2);
e. toBinary(num / 2);
System.out.print(num / 2);
Answer:
D) toBinary(num / 2);
System.out.print(num % 2);
Explanation:
If a 9V, 7W radio is on from 9am to 12pm. Calculate the amount of charge that flows through it, hence or otherwise the total number of free electrons that pass through at a point at the power supply terminals
Answer:
Q=It
and
p=IV
Given, v=9V P= 7W
I=P/V
I =7/9
Also, time(t) from 9am to 12pm is 3hrs
Converting into sec =3×3600
t=10800
Q= 7/9 ×10800
Q =8400C
Explain the term software dependability. Give at least two real-world examples which further elaborates
on this term. Do you think that we can ignore software from our lives and remain excel in the modern
era? What is the role of software in the current pandemic period?
Answer:
Explanation:In software engineering, dependability is the ability to provide services that can defensibly be trusted within a time-period. This may also encompass mechanisms designed to increase and maintain the dependability of a system or software.Computer software is typically classified into two major types of programs: system software and application software.