Program - python Create an array of 10 integers and pre-populate it with 10 numbers. Then write a function called printit which will loop through the array and print the values out. Call the function to show it works. Now write another function called finditem and pass it the array and a number to find, call the function which should return a boolean if it's found or not. Test it out on the number 50. If the number fifty is in your array it should print True otherwise false.
Q: If you publish an answer from another site, you will be downvoted. Answer in your own tongue, not a…
A: A synchronisation tool is semaphore. A semaphore component synchronizes or regulates access to…
Q: If you publish an answer from another site, you will be downvoted. Answer in your own tongue, not a…
A: Introduction:- A synchronisation tool is semaphore. A component called a semaphore synchronizes or…
Q: In this part, we will examine how network services and applications may be hosted in a cloud…
A: This section will study how network services and applications are hosted in cloud environments.…
Q: To answer the question, why are watchdog clocks necessary in many embedded systems?
A: Introduction: Watchdog timers are crucial in embedded systems. The watchdog timer (WDT), which is a…
Q: 1a. What is the deference between the data and database administrator? b. What are the Factors…
A: let us see the answer:- A) What is the deference between the data and database administrator? The…
Q: If you publish an answer from another site, you will be downvoted. Answer in your own tongue, not a…
A: A semaphore is a synchronisation tool, so let's get started. A semaphore component synchronises or…
Q: Can you name the three broad types of procedural languages that exist? You should explain each in a…
A: There is no concept of class in procedural programming. It is possible to create a procedural…
Q: Explain what a computer's CPU does and how it works with the help of an illustration (CPU).
A: Introduction: Every personal computer, tablet, and laptop has a central processing unit (CPU). Your…
Q: true or false : please quickly thanks ! (b) TCP/IP protocol is a standard set of communications…
A: According to the information given:- We have to justify the mention statement is true or not.
Q: Assume that your database management system has failed. Explain the use of deferred-write and…
A: The answer to the question is given below:
Q: Take into account that the sender is aware of, and prepared for, a continuous roundtrip delay. Given…
A: Timer essential in protocol: In this case, the total delay caused by the roundtrip journey between…
Q: Can you describe the degree to which they share similarities and how they vary from one another? In…
A: Different Types Of Degrees: You're sure to see a jumbled alphabet soup of graduates with their names…
Q: Tere are four general states of a process: (1) ready, (2) running, (3) waiting, and (4) terminated.…
A: The process, a crucial component of today's operating system, is a programme that is being run.…
Q: Considerations on the pros and cons of having universal access in a cloud computing setting.
A: Cloud Computing: => Cloud computing is a word used to describe the distribution of…
Q: What procedures would you take to troubleshoot a computer error code?
A: Required: What steps would you take to troubleshoot a computer problem code? No operating system or…
Q: There are many distinct methods in which information may be generated and processed by a computer…
A: Data processing It is a method for compiling unreliable data and turning an interpretation into…
Q: What media features set an infrared network apart?
A: A wireless mobile technique called infrared (IR) is used for close-quarters device communication.…
Q: In computer engineering, what is the distinction between synchronous and nonsynchronous buses?
A: A communication system that moves data between the many components inside a computer is known as a…
Q: Characterize the graphs G for which Y(G) +Y, (G)=p+1. 8
A: Introduction: The word "graph" does not apply to data charts like line graphs or bar graphs when…
Q: Should a dataflow system's memory be associative or address-based in computer science? Explain.
A: To be determine:- Should the memory of a dataflow system be associative or address based? Explain
Q: SAS transmits data to SCSI hard drives through parallel cables. How truthful or incorrect is this…
A: In order to determine if the statement "SAS sends data to SCSI discs through parallel connections"
Q: Q: Which of the following instructions is used to compare the values of two registers in assembly…
A: Introduction A characteristic of low-level programming language called assembly language is intended…
Q: Kevin plans to use a Boolean operator to look for data on two different topics. In order to get the…
A: in order to look for the necessary information On two subjects for which the AND boolean operator is…
Q: Is there a good reason why virtual memory is not used more commonly in embedded systems?
A: The embedded system does not make advantage of virtual memory. A method of memory management known…
Q: Can you name the three broad types of procedural languages that exist? You should explain each in a…
A: Answer is There is no concept of class in procedural programming.
Q: Database management systems may be useful even for single-user programs with little data needs. Are…
A: Given: "It is usually wise to utilise a database management system, even for small applications with…
Q: How would you define clustering? How may it be used in the field of data mining?
A: A cluster is a collection of things that fall under a single class. For instance: There may be…
Q: What is PGP, exactly? What are the five primary services provided by PGP?
A: What is PGP, given? What are the top five services that PGP offers? The answer is PGP, which stands…
Q: There is a clear distinction between architecture and computer organization.
A: -> Computer organisation outlines how a computer works, whereas computer architecture specifies…
Q: The Rational Unified Process and the Traditional Waterfall approach will be compared and contrasted.
A: These question answer is as follows,
Q: The Waterfall Model: A Brief Explanation
A: We will comprehend the waterfall model. Software development use a paradigm called the waterfall.…
Q: There are many distinct methods in which information may be generated and processed by a computer…
A: The instructions provide the CPU direction while it runs the applications. To guarantee that the…
Q: the user is able to input grades and their weights, and calculates the overall final mark. The…
A: The user is able to input grades and their weights. The program should also output what you need to…
Q: When comparing software and hardware, what are the key differences?
A: A computer is a digital electronic machine that can be programmed to carry out sequences of…
Q: Is there a command that would tell you how many computers stand between yours and another?
A: Making a dedicated connection between the two computers using one cable is the traditional method of…
Q: Provide an explanation of the hosting infrastructure used by cloud-based services and applications.
A: Definition: Utilizing cloud resources to increase accessibility of services, websites, and apps is…
Q: The term "computer network" is used to describe any infrastructure that facilitates communication…
A: many components of computer networks and their objectives. Electronic networks Network interface…
Q: If it's true that a computer has numerous parts yet doesn't need electricity, how many parts does it…
A: Computer: One of the most essential functions of a contemporary computer is data storage and…
Q: How does quality assurance argue for the automation of items utilizing e-commerce domain native…
A: Considering the information provided: We need to talk about how QA advocates automating items from…
Q: 1) Give a Turing machine that recognizes the language L = {ai b³ ck | i≤j≤ k} .
A: Here we will see how to construct a Turing machine for the language. So this represents a kind of…
Q: Thoughts about the upsides and downs of becoming global in the cloud computing setting.
A: Introduction: With the use of this technology, businesses may provide their clients compute services…
Q: When we say "computer network," what do we mean exactly? What exactly are the parts of the network,…
A: Computer network: A computer network is a group of connected computers that exchange information…
Q: What are some of the most successful techniques of firewall management? Explain.’
A: - We need to talk about some successfull techniques of firewall management.
Q: Is there anything that may go wrong while implementing a B2C model? Explain.
A: The solution to the given question is: Yes there are a few potential issues that can arise when…
Q: What do you make of the worldwide adoption of the internet and its seemingly endless rate of growth?
A: Come on, I know there's a way out of this. Increased from 413 million in 2000 to over 3.4 billion in…
Q: Describe the steps needed in preparing a new computer for usage.
A: Introduction To start the utilization of a new computer, there are numerous things one should be…
Q: operation of Linux in Business
A: To be a successful Linux administrator, you need to be familiar with the concepts of adjusting…
Q: Isn't it better to just put this data into the instance of the currently active class? If not, why…
A: Given: What are the benefits of putting this in a method instead of the current class object?…
Q: Java! please explain clearly with the answer by hand-writing or typing Using merge sort to sort an…
A: Answer:
Q: To what extent do cloud-based infrastructures serve as hosts for various network services and…
A: Utilizing cloud resources to increase accessibility of services, websites, and apps is the core…
Program - python
Create an array of 10 integers and pre-populate it with 10 numbers. Then write a function called printit which will loop through the array and print the values out. Call the function to show it works. Now write another function called finditem and pass it the array and a number to find, call the function which should return a boolean if it's found or not. Test it out on the number 50. If the number fifty is in your array it should print True otherwise false.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Write a program for the following information: Year has 365 days. You create array for temperature of each day in a year. Assign random temp values range of 30-110. Using a function Search in the array do you have 100 degree and what days. Print how many days and what days. Also print the Temp array in nice format in a function. Sample outputWrite a program that will read the monthly salary of 10 employees and then calculates the income tax (i.e, 10% of the salary) and net salary. Hence you have to declare an array salary[10][3]. Your program should have 4 functions. The first function will be used to read monthly salary of 10 employees and put it in the first column of the array. The second function will be used to calculate the income tax for each employee and then store it in the second column of the array. The third function will be used to calculate the net salary of each employee and store it in the third column of the array. Finally, the fourth function will be used to display the gross salary, income tax and net salary for each employee. You must pass the array as reference in each function you used.Java Program - Functions with 2D Arrays Write a function named displayElements that takes a two-dimensional array, the size of its rows and columns, then prints every element of a two-dimensional array. Separate every row by a new line and every column by a space. In the main function, write a program that asks for integer input to be assigned on a 3 x 3 array and call the function displayElements to print the contents on the next line. Input 1. Multiple lines containing integer each line Output R1C1: 1 R1C2: 2 R1C3: 3 R2C1: 4 R2C2: 5 R2C3: 6 R3C1: 7 R3C2: 8 R3C3: 9 1 2 3 4 5 6 7 8 9
- In statistics the mode of a set of values is the value that occurs most often. Write a program that determines how many pieces of pie most people eat in a year. Set up an integer array that can hold responses from 30 people. For each person, enter the number of pieces they say they eat in a year. Then write a function that finds the mode of these 30 values. This will be the number of pie slices eaten by the most people. The function that finds and returns the mode should accept two arguments, an array of integers, and a value indicating how many elements are in the array.Write a program that reads 5 numbers from the user and store them in an array. Thenyou have to compute the square and cube of each number and store them in differentarrays. Having computed the square and cube of the numbers, print each number withits square and cube value.Your program should include a function called get_square_cube, which will computethe square and the cube values of the numbers and store each in a different array.1.Enter a positive integer value n (6 <= n < 30) and take n integers from the user as input and store them in array a. Then move the elements of this array one step to the left and make the first element of the array the last element of the array. Shift this array with a function. Display integer value n, the array elements in original order and the array elements in modified order (after shifting). For example, if the original order of the array a is like below : a: 33 45 67 89 12 7 After shifting one step to the left, you should get the following order of the array а: a: 45 67 89 12 7 33
- b. Problem 2. Again, create an array of 30 random numbers that range between 1 and 100. And again, write a function that will receive a number from the user and determine if that number exists in the array or not. Approach: This time, implement a method called findB(x,A), where x is the number we are looking for and A is an array. In the body of the function, compare x with the MIDDLE item that is in the array. If this item is equal to X, return true. If not, divide A into TWO lists as follows: Call the middle of index of the array mid. Place items at indices mid+1 to A.length-1 in one array and call it A1. Place items at indices 0 to mid (excluding mid) in an array called A2. Then, recursively call findB(x,Al) and findB(x,A2). If you call find on an empty list, you will want to return false. Writing any explicit loop in your code results a 0 for this question. Remember to provide pre- and post-conditions. How many recursive calls will you need to search the entire list? Do you think…You are designing a function that will manipulate an array of integers. It needs to work for arrays of any length. What is the minimum number of parameters your function will have?Write down a function that will take an array, its size and an integer M as parameters and return the summation of integers that are greater than M. Then write a main function that asks the user to enter an integer X and N integers. Store N integers in an array and use the above function to compute the summation of the integers that are greater than X and display the result
- Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following functions: Part a: Function getData: This function reads and stores data in the two- dimensional array. Part b: Function averageHigh: This function calculates and returns the aver- age high temperature for the year. Part c: Function averageLow: This function calculates and returns the average low temperature for the year. Part d: Function indexHighTemp: This function returns the index of the highest high temperature in the array. Part e: Function indexLowTemp: This function returns the index of the lowest low temperature in the array. (These functions must all have the appropriate parameters.) #include <iostream> using namespace std; const int NO_OF_MONTHS = 12; void getData(int twoDim[][2], int…Create a program that reads in an array of strings (AKA a 2D array of char ). The strings should be read through a function that reads a single string at a time, assuming the original array still has space. For example, given a 20 amay of char with size 4x 32 it can store up to 4 strings of length 31. When you first create the array, there are no strings Reading a string using the function should increase the number of strings by 1. If 4 strings have already been read the function should not try and read a new string Define the following function in a file named string_utils.c with its declaration in string_utils.h . In string_utils.h, define MAXSTRINGS = 4 and STASIZE = 32.write a Java program that works like this) passes an array to a function and performs a given operation (any operation) within that function. Loops (the array using iterative loops. Together) if statements