Write a program to generate 10 random numbers from -100 to 100. Save the randomly generate numbers in a list. Create a function to count how many odd numbers are in a list. Create a function to count how many even numbers are in the list. Create a function to sum up all the even numbers in the list as well.
Q: systen operating at an information rate of 36 kbps determine, Baud Minimum bandwidth
A: The Answer is in Below steps
Q: How does routing function and what precisely is it? Learn how to distinguish between two common rout...
A: Intro If you're deciding where to send your data, you're doing something called routing. For example...
Q: Why do we need cache memory, which is also transistor-based, if RAM (Random Access Memory) is a vola...
A: Ram is a kind of memory built into the motherboard where the computers data is temporarily kept.
Q: For Σ= {a, b, c, d, e, ..., z}, consider the set L of words w such that the last symbol of w is a fi...
A: For Σ= {a, b, c, d, e, ..., z}, consider the set L of words w such that the last symbol of w is a fi...
Q: PYTHON- Write a program that operates like a point of sale terminal for the purchase of three items ...
A: - We need to write a python program for the sales terminal.
Q: What would be the appropriate line of code to write the function f(x) = e* as an anonymous function?...
A: The correct option is 'D'. If you're using Python, you'll need to import the exp function from the m...
Q: Write an algorithm that returns the index of the first item that is less than its predecessor in an ...
A: Introduction Write an algorithm that returns the index of the first item that is less than its prede...
Q: 1. Write Lex Program check whether a given input is a word or not? 2- Write Lex Program to count the...
A: 1. code : Output :: Editable code : %{#include<stdio.h>#include<stdlib.h>%}%option...
Q: Give one benefit and one drawback of the Microkernel OS over the Monolithic OS. Provide evidence to ...
A: The answer is given below:
Q: Why not divide user research?
A: given - Why not divide the overall design into multiple user viewpoints when conducting user researc...
Q: Convert the binary number (base 2) 00110112 to decimal (base 10) Convert the binary number (base 2) ...
A: 1) Binary number : (0011011)2 Answer : (27) Explanation : For binary number with n digits: dn-1 ... ...
Q: A new architecture, with N layers, is proposed. User application at the top layer generates a messag...
A: Introduction: He addresses a vision articulated in his latest book Superminds a framework for reachi...
Q: Was there any impact on the Symbian, Android, and iPhone operating systems as a result of the file d...
A: Intro The mobile operating system Android is built on a modified version of the Linux kernel and oth...
Q: please use c++ and openGL and output :- implement line drawing by using Midpoint algorithm . ...
A: C++ programming is a general purpose, course of action computer programming language supporting stru...
Q: How is the output for frequency of a DDS changed?
A: INTRODUCTION: More and more wireless devices are being designed with complicated and variable wavefo...
Q: Which logical operators perform short-circuit evaluation? A. or, and B. not, and C. or...
A: The answer is
Q: PLEASE ENSURE TO USE THE FRAMEWORK PROVIDED IN THE IMAGES, AND THAT IT WORKS WITH THE TESTER CLASS. ...
A: CODE TEXT SO YOU DON'T HAVE TO TYPE :) public class Circuit { private int firstSwitchState; // 0 ...
Q: Use of Technology: You will be required provide a report that shows the different between Automated ...
A: VAPT stands for Vulnerability Assessment and Penetration Testing. Vulnerability Assessment is a way ...
Q: Was there any impact on the Symbian, Android, and iPhone operating systems as a result of the file d...
A: Was there any impact on the Symbian, Android, and iPhone operating systems as a result of the file d...
Q: • Define 3 variables: x, y, z as a float data type. Assign 4.0/3 to x, 98.543785 to y, and 1e3 to z....
A: 1) Since programming langauage was not specified, I ahve written program in C langauage 2) Below is ...
Q: What is the result of the following Boolean expression, given that x = 5, y = 3, and z = 8? x x ...
A: A Boolean expression is an logical expression or statement that could be either true or false. These...
Q: Explain skin smoothing and body modification with examples (photoshop)
A: Skin Smoothing : Step 1: Make A Copy Of The Image Step 2: Select The Spot Healing Brush Step 3: Set ...
Q: In the C programming language, write a program to input the radius of a sphere and display the diffe...
A: C program: #include <stdio.h>#define PI 3.14 int main(){ float radius, SurfaceArea, Area; /...
Q: techniques and equipment for data entry with a stylus What exactly does it mean to be a digitiser?
A: Introduction: The digitizer is a layer of glass in touchscreen devices that is meant to translate an...
Q: Using three iterations of the Bisection method to determine the zeros of the f(x) within the interva...
A: Here in this question we have asked to use bisection method to determine the zeros of function F(x)=...
Q: Make a list of some of the ac
A: Below a list of some of the advantages of learning assembly programming.
Q: How many times will the following code print "Welcome to Java"?
A: As per the answering guidelines solving the first question completely Q1) Here the initial value of ...
Q: Rewrite the program with alittle bit of changes in this code
A: C programming is a general purpose, course of action computer programming language supporting struct...
Q: An example of an unintended impact of technological innovation is increased product-to-landfills. Tr...
A: The new digital technologies they have the more and more of the dispense into the technical economy....
Q: Determine whether the two's complement binary addition, 111+110, would cause: the sign bit to be se...
A: Here in this question we have given two binary number in 2s complement form.111+110 and we have aske...
Q: Using basic arithmetic operators in pseudo code calculate the sum and average of three scores that w...
A: Let us use input variables as score 1, score2 and score3. The sum will be calculated in variable sum...
Q: What are the foundations for considering edge computing and cloud computing in an IoT system? What i...
A: - We need to talk about the ides of using edge and cloud computing in IOT system and the best locati...
Q: (JAVA Programming Language). Declare a constant of type float named PRICE initialized to 7.
A: I provide the code in Java as per your requirement along with output and code screenshot
Q: Exercise 2: 1. Add a new form to the project Lab2_week 4. 2. Design as shown below:
A: Given :- Set X1 and X2 textboxes as Read Only as True.4. On Form load eventa. Set Form Text proper...
Q: Function written in JavaScript Please thanks! Function 1: Password Checker function _one(pwd) Creat...
A: Create the first function using the function keyword and name it function_one and pass a parameter p...
Q: - 9. Use string methods to extract the website domain from an email, e.g., from the string "tomas.be...
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining ques...
Q: Will the given 8086 instruction execute? MOV A, #465H
A: Given an 8086 instruction MOV A, #465H and we have to whether the given instruction will execute or ...
Q: Consider a two-link network in which Host A has a 1 Mbps connection with a 10 ms propagation delay a...
A: Intro The question is about to Consider a two-link network in which Host A has a 1 Mbps connection w...
Q: What similarities and differences do real-time and non-real-time operating systems share? What advan...
A: A task that is time bound is referred to as a real-time task. An RTOS is designed to operate at extr...
Q: We have been working on a software where we use a class which can hold collections of valus of arbit...
A: Answer: I have done code and also I have attached code.
Q: Convert the following numbers to IEEE single precision format. Give the results as eight hexadecimal...
A: Step 1 Bit 31Sign Bit0 0: +1: -
Q: Variables
A: Given: What are Variables?
Q: malyze Relationships Having more or less decided on our core objects, we now want to analyze the rel...
A: Answer : Yes, Objects can be inherit from the other objects. Whenever, any objects is inherit from ...
Q: A method that has not been tried before is unsuccessful. Recognize the many testing methodologies th...
A: the answer is given below:-
Q: Show that the number of unique triples (3-item sets) that can be chosen from N items is precisely ?(...
A: Answer: Mathematical induction: is proofing techniques which involve two steps. Base step: Prove ...
Q: What was the breakdown of the assessment's usability and user experience goals?
A: Answer:
Q: If you're conducting user research, why not separate the overall design into multiple user viewpoint...
A: Introduction: If you're conducting user research, why not separate the overall design into multiple ...
Q: Look the following Bash code and determine what should be in the gap (_________)? function perform_...
A: Here we write in simple words to fill this gap. ======================== In base file we fill $input...
Q: public GenericCollection cut(int k) { //this method cuts the current //GenericCollection object such...
A: Program Plan: The value of count is initialized to 0 Initialize a temporary node (i,e) temp1 to firs...
Q: Write a program in Python to get basic salary, house rent allowance and transportation allowance fro...
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Python program to print random number between -100 to 100 an store in a list . Finding the count of odd and even number and calculating the sum of even number .
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
- In python, create a function wherein you transfer elements from a list into different lists. If a certain element has been encountered, continue the listing in a new list. Continue doing so until this certain element has been encountered two times. Disregard the succeeding elements after the second certain element. Once you have your 2 lists, return them both as a tuple. Example: element_stop = ‘a’ original_list = [‘b’, ‘c’, ‘d’, ‘d’, ‘f’, ‘a’, ‘e’, ‘t’, ‘d’, ‘g’, ‘f’, ‘t’, ‘a’, ‘b’, ‘e’] The output should be: ([‘b’, ‘c’, ‘d’, ‘d’, ‘f’], [‘e’, ‘t’, ‘d’, ‘g’, ‘f’, ‘t’])Write a function that takes in a list of numbers as arguments and returns the productof all the numbers in the list. Use a while loop to multiply each number in the list together.Implement a function void printAll(void) to print all the items of the list.
- Write a function that takes two arguments, a list L1 and a list L2. • If the length of the list L1 is greater than twice the length of the list L2, then append the first three values of L1 to the three last values of L2. E.g. if L1 = ‘(1 2 3 4 5 6 7) and L2 = ‘(8 9 10), then return ‘(1 2 3 8 9 10) Should be written in the Racket programming languageCreate a function that takes a list of numbers and returns a list where each number is the sum of itself + all previous numbers in the list. Example: cumulative_sum([1, 3, 4, 5]) → [1, 4, 8, 13] WRITE IN PYTHON AND SHOW OUTPUTWrite a function that will accept a list of integers and return the sum of the contents of the list(……if the list contains 1,2,3 it will return 6…..)
- program- python Write a function called “missing”. Ask the user for a series of integers from 1 to N. Send that list to missing and have it return the list of what numbers are missing. For example, if they enter 1 3 7 10, then you would call missing on that list which returns the list of missing numbers and then you can let them know by printing out the list that they are missing 2 4 5 6 8 9. Test it out on this and show it works. PLEASE USE SET SUBTRACTIONWrite a function swap that swaps the first and last elements of a list argument.Sample output with input: 'all,good,things,must,end,here'['here', 'good', 'things', 'must', 'end', 'all'] ''' Your solution goes here ''' values_list = input().split(',') # Program receives comma-separated values like 5,4,12,19swap(values_list) print(values_list)create an array of 30 random numbers that range between 1and 100. And yet again, write a function that will receive a number from the userand determine if that number exists in the array or not. But this time, start bySORTING your input list. After a sort, the list in problem 1 is as follows:[2, 2, 3, 5, 12, 14, 14, 15, 23, 36, 39, 41, 44, 44, 45, 48,49, 50, 52, 52, 59, 71, 81, 82, 88, 89, 89, 93, 96, 97] Approach: Implement a method called findC(x, A, i, j), where x is the number we arelooking for in array A, the first index of the array is i and the last index is j. We wantto determine whether x exists in A anywhere between index i and index j. Your firstcall to this method will therefore look like this: findC(x, A, 0, A.length-1). In the body of your function, compare x with the item that is in the middle of thearray, as you did before. As before, call the middle of index of the array mid. But thistime, if x<=a[mid], recursively call your function to search ONLY the first half of…
- Given the list: int x[] ={4,2,5,3,6,0,7,1}; Write a C function that finds the lowest two values in the list. This must work for any list. Can someone please go through this step by step for me? Thank you!Write python code 1) Write a function verifsort that accepts a list as a parameter, check if the list elements are sorted and returns: 1 - if the list is sorted in ascending order, 2 – if the list is sorted in descending order, and 0 – if the list is not sorted.In PYTHON, write a program that reads elements from a list, where each element from the list is a list with three values. Call the function defined in part 1 with the 3 values as arguments in order and print the returning value.Test your code with the list:"numbers=[[3, 5, 4], [7, 4, 3], [2, 3, 1]]" The functions defined in part 1 were: def greatest(a,b,c): if a>b: return c ifnot a>b and a>c: return b ifnot a>b andnot a>c: return a print(greatest(2,3,1))