1. write a program in Python languages that does the following: a. Generates 100 random numbers between -23 and +76. b. Calculates the average of the square of the generated numbers using a function that you implement. c. Calculates the number of number greater than the average than the average using a function that your implement. d. Prints the results single line separated by spaces using a print function that makes call to the previously defined function in part (b) and (c)|
Q: What distribution is Ubuntu based on?
A: Ubuntu is a free and open-source Linux distribution. It is available in three official editions:…
Q: Discuss five goals that memory management aims to achieve.
A: Memory administration Memory management monitors the condition of each memory location, whether…
Q: Direction: Explain the organizational chart below based on what you understand from the lesson. User…
A: Web 1.0 refers to the first stage of the World Wide Web evolution. Earlier, there were only a few…
Q: As a computer scientist, how would you define magnitude?
A: The representation of a number's magnitude (decimal) in computer science is referred to as the…
Q: Explain the concept of satellite communication. What are the benefits and drawbacks of relying on…
A: Tip The planned communication between the user and the space satellite.
Q: In mobile networks, the air interface between mobile devices and the equipment at antennae and…
A: The Back-haul Network is a technology that connects cell phone tower air interfaces to fixed line…
Q: SUPPLEMENTAL ACTIVITIES 1. Write a parameter and return program that will require the user to enter…
A: Solution: C++ PROGRAM: #include <iostream> using namespace std; // Function header and…
Q: HMI design is a software discipline. True False
A: answer is
Q: how to prevent the existential forgery attack
A: According to the information given:- We have to define the prevention of the existential forgery…
Q: Assembly language instructions may be optimized by writing compilers and assemblers that rearrange
A: The answer is
Q: How does the compiler handle multiple definitions with the same name? What steps does it take to…
A: How does the compiler handle multiple definitions with the same name? What steps does it take to…
Q: Recognize the difference between a firewall at the network and an application level
A: The following are the differences between a network-level firewall and an application-level…
Q: When the RET instruction is left out of a procedure, what happens to the rest of the code?
A: RET Instruction: Instructions for CALL and RET. The use of assembly-language operations is…
Q: What exactly is IP spoofing? Is IP spoofing a security lapse in any way?
A: Introduction Spoofing is a sort of cyber-attack in which hackers obtain access to computers in order…
Q: As a computer scientist, how would you define magnitude?
A: answer is
Q: Is encryption a part of biometrics? What is the role of cryptography in biometric technologies?
A: Encryption is transforming an original communication into an unreadable format for unauthorized…
Q: ___________ is a computer that is connected to a network.
A: Q: Answer the given blank
Q: What is the difference between a coaxial cable and a fiber optic cable?
A: These are the cables that have connectors that are utilized to connect to the network. Directed…
Q: In this task you are to issue the show running-configuration command from the LANA# prompt. The…
A: Running-config: The newer release of the admin panel from which the unit run is the executing…
Q: A program that turns a high-level language program into a separate machine language program is…
A: A program that turns a high-level language program into a separate machine language program is…
Q: How do Boolean logic and computer circuits relate to one another? What is the significance of…
A: Introduction: The relationship between Boolean logic and computer circuitry is discussed.Logic gates…
Q: Suppose We do a DFS on a directed graph Gd and G is corresponding depths first tree/forrest. if we…
A: The graph is acyclic if DFS discovers no back edges. Because removing any back edges identified has…
Q: Create Attack tree with 4 branches for gaining access to smart doorbell IOT.
A:
Q: What is an example of a Critical business function (CBF) for a manufacturing plant and a Critical…
A: Please upvote. I am providing you the correct answer below.
Q: Create a webpage that works similar to a Calculator, with the following tasks and the appropriate…
A: I have provided HTML CODE (having internal JS ) along with CODE SCREENSHOT and OUTPUT…
Q: What are some of the competitive advantages that Vivobarefoot has achieved as a result of the…
A: Introduction: Vivobarefoot is a shoe company that has risen to prominence in a very short period of…
Q: a) Write a MATLAB computer program that creates the following array (100 by 100 array). An image…
A: Create a 2d array Then update the respective values in each of the index
Q: What role may health informatics specialists play in the standardization of health data?
A: Justification: Data standardization is crucial because it enables collaborative research,…
Q: Implement the truncate function that is passed two parameters, a vector of floats (passed by ref)…
A: Step 1 : Start Step 2 : Define the function truncate which accepts a vector of float as reference…
Q: A best effort protocol, IP stands for Internet Protocol. Define it. Why is it the default Internet…
A: Let us see the details about the Internet Protocol.
Q: What are the four benefits of SQL?
A: The Answer is in Below Steps
Q: Question: - From the following Table: Draw the PERT and Gantt Chart, then Find the critical path? -…
A: Solution: Activity Immediate Predecessors Duration A - 1 B - 3 C - 2 D A 3 E B 3 F C…
Q: Create a firewall configuration.
A: Firewalls: A firewall is a hardware or a software-based network security system that filters…
Q: Write a program in PERL languages that does the following: . Generates 100 random numbers between…
A: Code: #identify the range of random numbersmy @randomNumberRange = (-11..88);my @numbers; #array to…
Q: Write a brief message about object-oriented programming?
A: object-oriented programming
Q: The stop value isn't included in the range() method in Python. Create a generator function that is…
A: Tip When you use range() with a single statement, you'll obtain a series of numbers that starts at 0…
Q: d) If the propagation time were less than the transmission delay, where is the first bit of the…
A: The answer is
Q: How is writing calls is fundamentally equivalently to holding puts? How is it different?
A: the writer of the call gives the permission/right to the holder to buy an asset at a certain…
Q: Ex plain evrontous Pasitive and negafive bio metric authen-ti Cotion why biomehics is Safer than…
A: In this question, we have to understand erroneous positive and negative biometric authenticate. We…
Q: Please answer it in Python Write a function last_consonant that takes as an argument a word and…
A: Q: Code the given function in python
Q: By using C++ 9H write aprogram to print faclowing the figure. +1 b=99+98+97+
A: Here, we are going to add series b using for() loop in C++ programming language. Given series will…
Q: Wireless applications are the perfect place to employ error correction. "' Would you agree or…
A: The use of wireless communication applications can be found in a wide range of products and…
Q: 1. A class with no access modifier can be accessed by package-mate classes without being imported.…
A: Find the answer with explanation given as below :
Q: QUESTIONS 1. What islare the variable/s needed to produce local variable/s? 2. Using Parameter and…
A: A return statement ends the execution of a function and returns control to the calling function.…
Q: How do you compare and contrast decimal and numeric data types?
A: TipOnly integers, a symbol (leading or trailing), and a single decimal point make up a numeric…
Q: How about a programming language that enables you to develop strong and complicated programs without…
A: Programming languages are made up of rules for converting words (or, in the case of visual…
Q: Define the following terms in General and In computer: Problem-solving Reasoning Decision-making
A: Problem-solving: Problems include describing an issue, determining its cause, identifying,…
Q: In-home use of a local area network. What kind of gadgets would be able to connect to such a…
A: LAN: Local Area Network: It is called that because it is used in the area. To connect things in a…
Q: An illustration of a super type/subtype connection. that disjoint rule is applicable?
A: Contradictory rule The disjoint rule specifies that an instance of the super type cannot be a member…
Q: package go; package demo; public class Pokemon { import L; // import Pokemon class (#1) private int…
A: Please refer to the following step for the complete solution of the problem above.
Python
Step by step
Solved in 3 steps with 3 images
- (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.Any help would be greatly appreciated!! If you could attached screenshots of the code that would be very helpful!! Write code for the following: Write Python code that uses a loop to prompt the user for five floating point numbers and reports the sum of the floats when the loop ends. Write Python code that defines a void function named divide that takes two numbers as parameters and then prints the quotient accurate to 1 decimal place when the first parameter is divided by the second one. A file named txt is shown on the right. Write Python code that opens this file, reads only the first two lines, and prints “Penny is 19” Penny 19 Kenny 20 Benny 21 Jenny 20// In python // def compute_stats():"""Write a function compute_stats, such that given a string of grades as an input parameter,it calls the function get_new_grades (defined in theprevious question) and returns a tuple that containsthe average value of the initial grades andthe average value after running the get_new_grades function.""" pass
- //-In python-// def compute_stats():"""Write a function compute_stats, such that given a string of grades as an input parameter,it calls the function get_new_grades (defined in theprevious question) and returns a tuple that containsthe average value of the initial grades andthe average value after running the get_new_grades function.""" pass The code should aslo have if __name__ == "__main__" section.good stat ofl them ii days. You need to upload your solutions in a single python file (assl.py) to the link on MS Teams. Part 1 Add this comment: # Ass 1: Part 1 Write a program that declares a function called draw Star which receives an integer value as a parameter, and draws a number of stars equal to the received integer. Samplel: Please enter the number of stars: 5 The shape is: **** Sample2: Please enter the number of stars: 3 The shape 15 *** Part 2 Add this comment: Ass 1: Part 2 Write a program that summation of even ni "nd M then prints the 3.9 nclud d if were even of 3In C++ just do the problems in simple, not complicated code. Even if a problem does not directly tell you to use a function, you should aim to do so regardless. 1. Create a function that takes in a number n and outputs all the odd numbers from 1 to n. 2. Create a function that takes in a int number and outputs each of the digits backwards 3. Create a function that counts backwards from 100 to 1. 4. If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of all the multiples of 3 or 5 below 1000. Use a function to do this. Return the total to main.
- JAVA CODE PLEASE Functions With Parameters and Return Values Quiz by CodeChum Admin Create a function named oppCase that receives one character input that is an alphabet. Return the opposite case of that character. In the main function, write a program that asks for a character input and assign it to a character variable. Call the oppCase function by passing in the character variable and assign the returned value to a variable. On the next line, print the value assigned to the variable. Input 1. One line containing a character Output Enter·a·character:·A a***in python only*** use turtle function Define the concentricCircles function such that: It draws a series of concentric circles, where the first parameter specifies the radius of the outermost circle, and the second parameter specifies the number of circles to draw. The third and fourth parameters specify an outer color and an other color, respectively. The outer color is used for the largest (i.e., outermost) circle, and then every other circle out to the edge alternates between that color and the 'other' color. The difference between the radii of subsequent circles is always the same, and this difference is also equal to the radius of the smallest circle. Put another way: the distance between the inside and outside of each ring is the same. Define concentricCircles with 4 parameters Use def to define concentricCircles with 4 parameters Use any kind of loop Within the definition of concentricCircles with 4 parameters, use any kind of loop in at least one place. Call…Python Programming- Computer-Assisted Instruction Part 1: Computer-Assisted Instruction (CAI) refers to the use of computers in education. Write a script to help an elementary school student learn multiplication. Create a function that randomly generates and returns a tuple of two positive one-digit integers. Use that function's result in your script to prompt the user with a question, such as: How much is 6 times 7? For a correct answer, display the message "Very good!" and ask another multiplication question. For an incorrect answer, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. Part 2: Varying the computer's responses can help hold the student's attention. Modify the program so that various comments are displayed for each answer. Possible responses to a correct answer should include 'Very good!' , 'Nice work!' and 'Keep up the good work!' Possible responses to an incorrect answer shojld…
- Please answer it in Python Write a palindrome function that takes a word as an argument and returns a Boolean indicating whether the word is a palindrome. A palindrome is a word that remains the same when read from right to left instead of the usual order from left to right. Example: palindrome('here') is True but palindrome('go') is False. Write a function word_allows taking as an argument a word and a list of forbidden words, and returning True if the word is allowed, and False if the word is prohibited. Example: word_allows('fric', ['sous', 'fric', 'thune', 'ble']) is False word_allows('silver', ['sous', 'fric', 'thune', 'ble']) is true# Write a function called ex4() which implements a "Guess the number" game# 1. Generate a random number between 1 and 100# See https://docs.python.org/3/library/random.html for random number# generation details # 1. Prompt the user with the rules of the game ('q' to quit)# 2. Iterively prompt a user for a guess# 3. Let the user know whether their last guess was high or low# 4. Count the number of guesses# 5. Congratulate them upon success. Print the number of guesses# 6. Prompt to play again or quit# 7. Proceed as directed by user.# 8. Invoke ex4() and play a game to print resultsAssignment Write a program to calculate n! for a given number n and perform the simple calculator operations. The valid operations of the calculator are: + add - sub * mul I div The program must contain a function fact with one input parameter that returns the factorial of a number, a function add that performs the addition of two numbers, a function sub that performs the subtraction of two numbers, a function mul that performs the multiplication of two numbers, a function div that performs the division of two numbers. The program must also check for bad input data. Make sure when you pass parameters you pass the addresses (not the value). • All function return type must be of type void. • Take inputs in main function. • Pass the addresses of the operands and the address of the result to each function. Output must be displayed as follows: 1: Addition 2: Subtraction 3: Multiplication 4: Division 5: Factorial 6: Quit Enter the choice => 1 Enter two numbers => 2, 3 Sum => 5