print("Problem 9") Create a function named problem 9. Create a list of one hundred random numbers from -100 to 100. ● Print the number of odd numbers, the number even numbers and the number of zeros.
Q: "Provide a "nuts and bolts" description of three parts and their roles in accomplishing internet…
A: The internet has become an essential component of our daily life, linking billions of computers and…
Q: When would it be advantageous to keep data in traditional files?
A: Dear learner, hope you are doing well, I will try my best to answer this question. Thank You!!
Q: Draw an ER diagram for the following car sharing system: In the car sharing system, a CarMatch…
A: The question asks to create an Entity-Relationship (ER) diagram for a car sharing system. An ER…
Q: Which perspectives need to be taken into account while designing software system models?
A: While creating software system models, it's crucial to include the perspectives of all Project…
Q: Since there are so many devices connected to the ports, the system requires a way to communicate…
A: With the advancement of technology, the number of devices connected to the ports has increased…
Q: In what specific ways has the use of internet technology been crucial in the evolution of a certain…
A: Internet technology is very crucial in the evolution of a certain business function or operation.…
Q: What perspectives should be considered and how should they be managed when developing models for…
A: Developing models for software-intensive systems is a complex and challenging task that requires…
Q: Based on the provided graph following TCP Reno, what is the ssthresh for round 36? Initial ssthresh…
A: In TCP Reno, the Slow Start (SS) and Congestion Avoidance (CA) mechanisms are used to control the…
Q: You are working for a consultancy and receive data on gross domestic product (GDP) and foreing…
A: Create a list called "Caribbean" with the names of the countries, GDP and FDI data. Import Pandas…
Q: You have been given the assignment as an IT manager of managing the setup of a new network at a…
A: LANs link devices in a limited area, such as an office building, school, or house. LANs exchange…
Q: Explain Hobb's algorithm and centering algorithms in relation to the reference phenomena.
A: In social network analysis, both Hobb's algorithm and centering algorithms are applied in the…
Q: What is the most notable difference between having phone service and having access to th Internet?
A: Your answer is given below.
Q: What does it signify when a wireless network is in "infrastructure mode"? If the network is not…
A: Wireless network to be in infrastructure mode means that the devices are connected with each other…
Q: A case study that explains how the students attained their project's goals is a crucial component of…
A: A dissertation is a document that organises and arranges the results of a student's research in a…
Q: Where does greedy perimeter stateless routing originate from, and how does it work?
A: Greedy perimeter stateless routing (GPSR) is a routing protocol that is commonly used in wireless…
Q: Problem 8: Use Kruskal's Algorithm to find the minimum spanning trees for the following graphs. 2 5…
A: Let's first see about kruskal's algorithm. Kruskal algorithm Kruskal's algorithm are the simplest…
Q: Which of these gadgets is accountable for the safety of information during transmission across a…
A: Your answer is given below.
Q: How important are the advantages of object-oriented analysis and design in comparison to those of…
A: Structured Analysis and Object Oriented Analysis (OOA) are the two software development…
Q: Are there any specific problems that coders are worried about during the creation process?
A: Coding is the process of designing, writing, testing, and maintaining computer programs. While…
Q: What commands would you use and how would you go about debugging your fundamental network? What kind…
A: We have to explain what commands would we use and how would we go about debugging our fundamental…
Q: What are the main differences between a SLA and an HDD?
A: SLA stands for Service Level Agreement. It is a contract between a service provider and a customer…
Q: The utility function U(x, y) = x + y can be used to describe perfect substitutes preferences. For…
A: In this question we have to write a python code for the function which returns the demand of goods x…
Q: Write and combine h1, h2, h3 selectors in CSS syntax with font-weight: 500; and color: red; and…
A: The CSS code will apply the specified styles to all h1, h2, and h3 elements in your HTML document.…
Q: Which of these gadgets is in charge of managing the data on the network?
A: Network servers are the devices in charge of managing the data on a network.
Q: What is the point of separation between P-code and W-code?
A: P and W coding. A compiler generates intermediate code as a low-level representation of the…
Q: If you don't produce high-end, quick, and reasonably priced computers, your business will collapse.…
A: Manufacturing high-quality computers at an affordable price is a big challenge for computer makers.…
Q: You have the following options in Microsoft Excel. Provide a description of the purpose and…
A: Microsoft Excel is a powerful programme with a range of features to help users Manage, analyse, and…
Q: In the next section, we are going to talk about the primary difference that exists between data and…
A: Let's first look at the definition, classification, and functions of a microprocessor's bus. We have…
Q: What viewpoints ought to be taken into account when modeling software-intensive systems?
A: When modeling software-intensive systems, it is important to consider various assumptions to ensure…
Q: In what specific ways has the use of internet technology been crucial in the evolution of a certain…
A: The emergence of the internet has significantly affected how firms function in the modern world. The…
Q: In the realm of natural language, what are the top three most challenging specification problems?
A: NLP studies how computers and humans communicate. NLP helps computers comprehend, interpret, and…
Q: One helpful exercise is to weigh the merits of connection-based versus connectionless protocols…
A: There are two major categories of communication Protocols used in computer networks: Both…
Q: Where is the current state of Linux kernel development?
A: The current state of Linux kernel development is active and ongoing, with frequent releases and…
Q: Write a program that first gets a list of integers from input. The input begins with an integer…
A: In this task, we were required to write a Python program that prompts the user for a list of…
Q: Describe a few of the many advantages that come along with having an electronic government
A: Electronic administration. E-government uses information and communication technology (ICT) to offer…
Q: Architectural mapping is a common step in the software development process in software engineering
A: In software engineering, architectural mapping is an important process that involves creating a map…
Q: Consider the following doGet method code of a servlet: public void doGet(HttpServletRequest req,…
A: As per the given question, we need to find the correct option to remove all the attributes from the…
Q: What precisely is the process of the Service Oriented Architecture (SOA)?
A: Definition: According to the concepts of service-oriented architecture, software systems are…
Q: You work at Agate Construction Company Ltd. as the Information Systems (IS) Manager (ACCL). Your…
A: This is the response to the question raised above.
Q: Answer the given question with a proper explanation and step-by-step solution. 3. Draw the…
A: 3. In this question, we are given a recursive method called "sum" that takes an array and two…
Q: A list of test requirements differs from a set of test criteria in that each one must be satisfied…
A: Your answer is given below.
Q: Why do analysts use EDA, and how does it differ from hypothesis testing, while doing data mining?
A: The process of extracting patterns, correlations, and insights from sizable databases is known as…
Q: What are the two operating system core modes and purposes? What is the file system's primary…
A: Operating systems (OS) are software programs that manage computer hardware and provide an interface…
Q: What has changed since software systems and software systems engineering have utilized the internet…
A: Software system, also known as a software application or simply software, is a collection of…
Q: Why are languages with a low degree of complexity used? How different are they from one another?
A: Why the languages with the low degree of complexity are used ? While considering the programming…
Q: What distinguishes virtual circuit networks from datagram networks?
A: Virtual circuit networks and datagram networks are two types of packet switching networks. Both have…
Q: Lab 3 (Session 3): Calculating Free-Space Path Loss In this lab, you will use an online calculator…
A: Free-Space Path Loss (FSPL) refers to the loss of power that occurs as an electromagnetic wave…
Q: agent, you're Sharing of photos is prohibited. To send pictures of a listing to a rea emailing them.…
A: Sharing photos has become an essential aspect of communication, especially in the real estate…
Q: While choosing a solution for the protection of a physical network, what factors should be taken…
A: As technology advances and more devices connect to the internet, the importance of network security…
Q: What challenges do individuals have in comprehending the idea of text mining?
A: Text mining is a branch of computer science that focuses on identifying patterns and trends in…
Step by step
Solved in 4 steps with 3 images
- Python question Application: Python Fragment Formulation (Q1 – Q4) In this group of questions you are asked to produce short pieces of Python code. When you are asked to "write a Python expression" to complete a task, you can either give the expression in one line or break down the task into several lines. The last expression you write must represent the required task. Question 1 (Reduce parentheses) Give an equivalent version of this expression by removing as many redundant parentheses as possible, without expanding the brackets or simplifying. (x**(2**y))+(y*((z+x)**3)) Question 2 (Translate arithmetic concept into Python) You are given a list of numbers, named numbers, containing 3 integers. Write a python expression (one line) that evaluates to True if and only if the product of any two numbers in the given list is greater than the sum of all three numbers. Note: the product of two numbers, x and y is x*y. Question 3 (List/table access) You are given a table,…Flowchart, create. Writing Functions that Require Multiple Parameters in Python def calculateSum(num1,num2): #Function to calculate sum of two numbers result = num1 + num2 #saving the sum of two numbers into result print("The Sum of Two numbers is :",result) #printing the result def calculateDifference(num1,num2): #Function to calculate Difference of two numbers result = num1 - num2 #saving the difference of two numbers into result print("The Difference of Two numbers is :",result) #printing the result def calculateProduct(num1,num2): #Function to calculate product of two numbers result = num1 * num2 #saving the product of two numbers into result print("The Product of Two numbers is :",result) #printing the result if __name__ == "__main__": #main() number1 = int(input("Enter First Number:")) #Taking two numbers as input from the user number2 = int(input("Enter Second Number:")) calculateSum(number1,number2)…User defined Function: Void Function 3. Create a program that will add, subtract, multiply and divide two numbers. • Use user defined function for each operator • Any number divided by zero will result to undefined • Use int data type only for all variables declared Example Program Output: MENU MENU MENU (A) - addition subtraction [M] - mulțiplication division (X) - exit addition subtraction mulțiplication division exit addition subtraction multiplication division exit (A) (M) [D) IXI [M) [D] IX) Enter your choice: a Enter your choice: s Enter your choice: ADDITION Enter first number: 10 Enter second number: 20 The sum is 30 SUBTRACȚION Enter first number: 101 MULTIPLICATION Enter first number: 13 Enter second number: 3 The product is 39 Enter second number: 90 The difference is 11 MENU MENU MENU (A) addition IS) (A) - addition addition subtraction [M) - multiplication ID) division IXI - exit (A) [M) [D] subtraction multiplication division IX) IN) (DI (X) - exit subtraction…
- Python:Temperature Statistics Learning Objectives In this lab, you will Create a function to match the specifications Use the if/else statements to detect a range Use lists to store the results Instructions Sahara desert explorers call us for help! They want to know some statistics about the temperature in Sahara, but sometimes their thermometer fails to record the proper temperature. Help them to find which temperature is from correct recordings and which is broken and calculate statistics on given data. During the night, the temperature in Sahara varies from -4 to -10 С. During the day, the temperature varies from 20 to 50 C. Create a function check_input(temperature) that will return True if the temperature given as input can be from Sahara and False if it is from a broken thermometer (i.e., outside of the expected range). Steps Write a program to use the check_input to create a list of valid temperatures and compute their statistics: Create a list, where you will store the…Rest of code in image / This is a bad programming style since it is using goto. // This is an spagetti code and not working.// Use function to display menu, and display game rules,// Use different color for text display.// fix it so it works any way you like./*HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE); // Write 16 lines in 16 different colors. for (int color = 0; color < 16; color++) { SetConsoleTextAttribute (screen, color); cout << " Hello World!" << endl; Sleep(400); // Pause between lines to watch them appear } // Restore the normal text color) SetConsoleTextAttribute(screen, 7);*/#include <iostream>#include <windows.h>using namespace std;int main(){ //textbackground(WHITE); //textcolor(RED); system("cls"); char ch, a[20], ch2; int num = 100, rnum, guess, count, ch1, c = 0; cout << "**********************************************************"<<endl; cout << "*…Instructions The python "try" keyword is very powerful in that it can, among other things, prevent a program from ending abnormally because of invalid numeric input. Write a python program with two functions/modules that does the following: .main() accepts input and calls a function to test if the input is a number and displays a message regarding the result of that numeric test • numTest() is passed an input string, tests to see if the string is numeric and returns the necessary information to main() . a NULL input (just pressing the enter key) ends the program . DO NOT USE THE BUILTIN PYTHON FUNCTION FOR NUMERIC TESTING Be sure to use clear prompts/labeling for input and output.
- Code in Python: Your hangman game should be broken into appropriate functions, contain a main function, anddo the following:1. The program should randomly select a word from the list: kangaroo, capybara, wombat,koala, wallaby, quokka, platypus, dingo, kookaburra2. Repeatedly prompt the user to guess a letter.3. Validate the input4. All guessed letters should be stored in a two-dimensional list (from problem 2). If thenumber of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a differentletter. The hangman won’t update (grow) if the same incorrect letter is guessed multipletimes.5. The word should be printed where all correctly guessed letters are revealed, and allunguessed letters are replaced with underscores6. A hangman reflecting the number of incorrect guesses should be printed7. If all the letters in the word are guessed, then the user wins. If the hangman / number ofincorrect…*python coding Driver’s License ExamThe local driver’s license office has asked you to create an application that grades the written portion of thedriver’s license exam. The exam has 20 multiple-choice questions. Hereare the correct answers:1. B 6. A 11. B 16. C2. D 7. B 12. C 17. C3. A 8. A 13. D 18. B4. A 9. C 14. A 19. D5. C 10. D 15. D 20. AYour program should store these correct answers in a list. The program should read thestudent’s answers for each of the 20 questions from a text file and store the answers inanother list. (Create your own text file to test the application.) After the student’s answershave been read from the file, the program should display a message indicating whether thestudent passed or failed the exam. (A student must correctly answer 15 of the 20 questionsto pass the exam.) It should then display the total number of correctly answered questions,the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly…1 # Calculator.py - This program performs arithmetic, ( +. -, *. / ) on two numb 2 # Input: Interactive Summary 3 # Output: Result of arithmetic operation 4 In this lab, you complete a partially written Python program that includes a function that returns a 5 # Write performOperation function here value. The program is a simple calculator that prompts the user for two numbers and an operator ( +, -, *, or / ). 7 if -_name_- == '-_main__': numberOne = int(input("Enter the first number: ")) numberTwo = int(input("Enter the second number: ")) operation = input("Enter an operator (+ - * /): ") 8 The two numbers and the operator are passed to the function where the appropriate arithmetic 10 operation is performed. The result is then returned to where the arithmetic operation and result are 11 displayed. 12 # Call performOperation method here and store the value in "result" 13 For example, if the user enters 3, 4, and *, the following is displayed: 14 print(str(numberOne) + " " + operation +…
- python programming 1- You are ONLY allowed to use find() string method (YOU ARE NOT ALLOWED TO USE ANY OTHER FUNCTIONS) 2- To get the full name from the user, you can use input function as follow (fullName=input("Please enter your name: ")) Write a Python code to read user full name and prints the first, middle and last name as shown in the following run sample: Please enter your name: Jean Miller Johnson Your first name is: Jean Your second name is: Miller Your last name is: JohnsonPython task: Task OverviewYour task is to implement a variation of the classic word game Hangman, which involves playersguessing the letters in a word chosen at random with a finite number of guesses. While there arealternate versions such as category Hangman and Wheel of Fortune, which involve playersguessing idioms, places, names and so on, we will be sticking with the traditional version.If you are unfamiliar with the rules of the game, please read the following before starting:http://en.wikipedia.org/wiki/Hangman_(game). You can also play an online version here. Don’tbe intimidated - You’ll be given some skeleton code to get you started, it's easier than it looks! You will implement a function called main that allows users to play an interactive hangman gameagainst the computer. The computer should pick a word, and players should then try to guess lettersin the word until they win or run out of guesses.Here is the overarching behaviour we expect:1. The program should load a list of…Python, use function Write a program that provides simple math problems to quizzes a student's ability to perform addition and multiplication.Your program has the additional requirements The program shalldisplay a menu where the user can select the type of problems they want. For example 1) Addition problems only 2) Multiplication problems only 3) Random addition & multiplication problems 4)Exit program The program shalldisplay two randomnumbers from0 to 100 The program shall present the user with 10 questions of the type they selected.The problems will be formatted and presented to the user After the 10 problems are answered, the program shall displaythe number of questions answered correctly and the score as a percentage The program shall return to the menu after summary has been displayed.