Problem 4 (Searching a list of Student objects) Write a function called find_by_ID(students, id) that takes a list of student objects (students) and an int (id) as parameters, and returns the student object in the list with the given id. If there is no student with the given id, it returns “NA”. See the sample output below. Looking for a student with ID = 123: Student: Alice, ID# 123 found Looking for a student with ID = 999: Student: Cathy, ID# 567 found Looking for a student with ID = 555: NA found
Q: company wants to make a simple application to keep track of trips and passengers. you got the…
A: The above application is a railway system that keeps track of trips and passengers. It has several…
Q: What kind of training is needed for a career in machine learning and Al?
A: Introduction Artificial intelligence (AI) is the capability of a computer system to replicate human…
Q: Linux's ability to utilize multiple processes at once is unique among OSes.
A: In software engineering, concurrency refers to a collection of techniques and processes that let a…
Q: The technical infrastructure that the Internet currently relies on is the result of the Internet's…
A: Introduction: The current objective is to outline the growth of the Internet. In 1965, two computers…
Q: Suppose that instead of removing line # 10, we altered line #8 so that the Dos class no longer…
A: Explanation: Suppose we removed Uno inheritance only from Dos line 8. The program does not throw…
Q: In analyzing a computer's motherboard, what two parts jump out as being the most crucial?
A: Explanation in Brief: The notification contains information about the meeting's date, time,…
Q: Where does symmetric encryption fall short, especially in terms of key management?
A: Introduction Key Management: All data security is based on key management. Because encryption keys…
Q: If 4 is stored in cell A1, 2 is stored in cell B1 and 6 is stored in cell C1; which one of the…
A: As, given in the question, values are:- A1 = 4 B1 = 2 C1 = 6 Then, Option a. ”=A1+(C1/B1)” = 4 + (…
Q: When compared to the light pen, the data tablet uses far less processing power while yet offering…
A: Explanation The data tablet device uses a lot less computer time than the light pen and has the same…
Q: The process of identifying deadlocks results in the release of waiting resources to the people who…
A: Introduction: A deadlock occurs when two computer programmes that share the same resource are…
Q: What does the term "security" mean in the context of information and communication technologies? In…
A: INTRODUCTION: The term "information and communications technology" (ICT) is an extension of the term…
Q: Can m-linked-lists be used to create a hash table? Why do we need a hash function, exactly? Provide…
A: To distinguish the specific object from a collection of related objects, hashing is used. Hash…
Q: You've just been gifted a shiny new monitor by your uncle. You are unable to connect the monitor…
A: LED and liquid crystal displays are the two fundamental types of displays. These identical screens…
Q: List and explain the internal (building) environment's information security risks, any…
A: Information technology risk management is a technique for dealing with dangers connected to using…
Q: Give an example of why an index wouldn't be useful if the values of the attribute didn't cover a…
A: Utilizing an index with a broad range of values An index is a table or other data structure used in…
Q: Please start from declare the variable Using SQL*Plus and SQL Developer tool, complete the…
A: Structured query language is a querying database perform query against given data
Q: What does it mean when someone talks about a "Access Point" in terms of WiFi technology? Can you…
A: "Access Point" as it relates to wifi: Said an access point is a location that offers wireless…
Q: Consider an online holiday booking system. The users can register and log in to book a holiday…
A: Let's see the answer
Q: When we speak of physical security, what precisely do we mean, and how does it stack up against…
A: Introduction: The study of computers and computing falls within the broad category of computer…
Q: Write a full c++ program to do the following:- 1- define an array (employeeSal) with 5 elements and…
A: 1) Below is C ++ Program to define and read array of employee salary and department id, then find…
Q: Please elaborate on the reason why LCD technology results in a flat screen on computer monitor.
A: Why is the screen of a computer's LCD flat? These monitors are lightweight and need less space.…
Q: Think the PDCA Cycle is useful? What are the permitted applications?
A: Electronic data transfer (EDI): EDI is the electronic exchange of business information in a standard…
Q: How have embedded computers and the IoT impacted your daily life? What additional uses can you see…
A: Dear Student, The answer to your question is given below -
Q: Can you tell me how modern network programs manage multiple connections?
A: Explain: When I started working as a consultant, my clients often asked me what kind of powerful…
Q: Describe in great detail the most likely cause (or causes) of my computer's slow boot time.
A: There are several reasons computers slow down, but most of them are related to how we use them.…
Q: is a complete 4-ary tree (rooted tree where every internal nonleaf vertex has 4 children. if x is…
A: Dear Student, The answer to your question is given below -
Q: What does the term "Access Point" mean when talking about WiFi networks? So, how does it work,…
A: "Access Point" as it relates to wifi Said an access point is a location that offers wireless…
Q: NAND2TETRIS HARDWARE SIMULATOR (HARDWARE DESCRIPTION LANGUAGE (HDL)) implement simplified Z80…
A: Here is the explanation regarding simplified Z80 Arithmetic and Logic Unit using skeleton program
Q: When turning on a computer for the first time, if no sounds such as a fan or disk spinning are heard…
A: Introduction Central Processing Unit, or CPU, is the term for the majority of the computer's…
Q: You must use this implementation. That means that you will have 5 data members, you won't have a…
A: Language: C++ Source code: // Sequence.h #ifndef SEQUENCE_H #define SEQUENCE_H #include…
Q: Pipelining improves CPU performance due to what exactly?
A:
Q: Examine the following code: aList = [10, 20, 30, 40, 50, 60, 70, 80] print(aList[2:5])…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: I need help understanding and solving this problem. In detail explain the code generated for…
A: For the above following code: the code is developed to print the sum of the values in a particular…
Q: Two competing approaches of security architecture need to be compared and contrasted.
A: While security architecture has several definitions, it's essentially a set of safety concepts,…
Q: List all elements of P(P({4})). 0 {{4}, {0}} 0 {{4}, 0, {{4}, {0}}} 0 {{4}, {0}, 4, 0} ○ {{{4}},…
A: Given that, P(P({4})) In this, it contains an element {4}.
Q: ethods in Java Write a program that accepts three strings: first name, last name, age, and…
A: A class is a group of objects which have common properties. It is a template or blueprint from which…
Q: the default
A: USING Microsoft studio SQL serve make a script that creates a user-defined role name FisionMike with…
Q: The industry currently favors connection-based protocols, so please provide a succinct explanation…
A: Introduction: All source-to-destination packets follow the same path. It's not required to use the…
Q: Describe the many positive outcomes that can result from installing physical firewalls in your…
A: Explanation: Your network firewall should be as strong as possible since it is your most crucial…
Q: There are two ways to cancel tasks and free up resources:
A: Given: There are two techniques for stopping processes and resolving impasses: There are two methods…
Q: Distinguish between an array and an arraylist and describe their primary distinctions.
A: 1) Array and ArrayList are important terms in Java 2) Arrays are linear data structures providing…
Q: Two competing models of security architecture should be compared and contrasted.
A: Introduction: Although security architecture has many different meanings, it ultimately refers to a…
Q: Consider an online holiday booking system. The users can register to book a holiday package. After…
A: Please find the answer below :
Q: To protect your computer from power surges, what precautions can you take? What does it mean when…
A: Within wifi, an "access point" is a device that enables Internet connectivity. In common parlance,…
Q: Which one of the following is not a Boolean Expression? Group of answer choices: a. X/Y b. X>Y c.…
A: Answer: Introduction: According to the given declaration, the boolean expression is simply an…
Q: Based on the data below, what would be the result of the AVG(PRICE) function on this data? Price…
A: SELECT AVG(price), FROM price
Q: When talking about Al, what exactly does the term "agent" refer to?
A: Please find the answer below :
Q: Problem 2 (Accessing Student Data) Write a method called compute_average() that returns the average…
A: The solution is given below for the above given question:
Q: ased on the names of the classes, which of these Derived Class - Base Class pairs makes the most…
A: Dear Student, The answer of your question with required explanation is given below -
Q: If consumption_expenditures is given for the official poverty line, how can we calculate the…
A: Here is the explanation:
Problem 4 (Searching a list of Student objects)
Write a function called find_by_ID(students, id) that takes a list of student objects
(students) and an int (id) as parameters, and returns the student object in the list with
the given id. If there is no student with the given id, it returns “NA”.
See the sample output below.
Looking for a student with ID = 555: NA found
Step by step
Solved in 2 steps with 1 images
- Python only* Use recursive function*. Define concentricCircles with 4 parameters Use def to define concentricCircles with 4 parameters here is the specification for concentricCircles function: 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. When viewed as nested rings, all rings should have the same thickness. The third and fourth parameters specify an outer color and an other color, respectively. The outer color is used for the outermost circle, and then every other circle in to the center alternates between that color and the other color. We will test both how many circles are drawn as well as whether the correct circles are drawn in the correct order. Hint: Each function call frame only needs to draw a single circle. Note that you must use the turtleBeads drawDot function to draw each circle Do not use any kind of loop Within the definition of…Python only* Use recursive function*. Define concentricCircles with 4 parameters Use def to define concentricCircles with 4 parameters here is the specification for concentricCircles function: 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. When viewed as nested rings, all rings should have the same thickness. The third and fourth parameters specify an outer color and an other color, respectively. The outer color is used for the outermost circle, and then every other circle in to the center alternates between that color and the other color. We will test both how many circles are drawn as well as whether the correct circles are drawn in the correct order. Hint: Each function call frame only needs to draw a single circle. Note that you must use the turtleBeads drawDot function to draw each circle Do not use any kind of loop Within the definition of…Part (a) Write a python function that computes the binomial coefficient ("). The function should return the correct answer for any positive integer n and k where k=m pass Part (c) Suppose that the number of people in the trial is 100. Then: • Plot a curve that shows how the probability of type 1 error changes with the choice of m, for m = 1,...n assuming that the null hypothesis holds (in red), • On the same picture, plot the probability of type 2 error vs the value of m in the case in which the new drug is effective with proability 0.68 (in blue). You can plot the two curves using matplotlib.pyplot. You can select the color by passing color='r' or color='b' to the plt.plot() function. [4]: n - 100 # your code here def plot_curve (): pass [5]: plot_curve() Part (d) Based on the picture above, what value of m do you think would be suitable to keep both type 1 and type 2 error small at the same time? (You may assume that the company claims the new drug has 68% accuracy) [6]: # your…
- For each function call below, indicate if it is correct. If a function call is correct, show what is returned. If wrong, explain the mistake and correct it: (a) (list 'x 'y 'z) (b) (cons 'x 'y 'z)It is required to implement a MATLAB program By using "user define function" that used to: • Read (100) diagnosis data shown in the table below from the key board. • Display all Patient's data who have a "High Risk "condition only "High Risk" are patient who have an age greater than or equal to 75 If there are no high risk patients the program should terminated with an appropriate message Diagnosis Data Sample No. Patient ID Name Ag Height (cm) Weight(kg) e 1 905792 K.M. Liam 50 166 90 126987 A.H. Noah 60 170 105 100 913376 L.S.Benjami 80 160 85***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- Write a function get_letter_grade, such that when given * a lab grade score and * a list of the grade cutoffsreturns the letter grade of that score.Note: Your function automatically returns A for the values that are >= to the first cutoff-value in the list, then A- for the second cutoff-value, B+ for the third and so on. The function returns None for anything that's below the score for B-. You test that get_letter_grade(97, [93, 90, 87, 83, 80]) correctly returns an A, and get_letter_grade(93, [97, 90, 87, 83, 80]) returns A-. DO NOT hard-code the cutoffs, since they can change! You can copy/paste the following template: def get_letter_grade(score, cutoffs): if score ... : return 'A' ...: return 'A-' ...: return 'B+' ...: return 'B' ...: return 'B-'function [P, A] = rect(L, W) P= 2 (L+ W); A =L*W; end Above function is defined to find perimeter and area of a rectangle. If a rectangle has length 10 mm and width 7 mm then the correct way to get perimeter and area of a given rectangle by executing this function is Select one: a. [A, B] = rect(10, 7) b. rect(7, 10) c. [A, B] = rect(7, 10) d. rect(10, 7)Write a C user defined function array and a value which you want to find in the array. (function may be needs more parameter to perform it) The function should check values of the array and if it find the same value in the array, it should return the position in the array (just first one). If there is no match, it should return "-1" Example: if array is {1,2,5, 3, 10, 5) and if the search term is "10" function must return 4, If the search term is "5" function must return 2, If the search term is "9" function must return -1,
- Problem Statement: Consider an input string PAL of letters ‘P’, ‘A’, and ‘L’. This string, which is given by the user, ends with ‘#’. It should be stored in a table (or array), called PAL_TAB. The number of each of these letters is unknown. We have a function, called SWAP(PAL, i, j), which places the ith letter in the jth entry of string PAL and the jth letter in the ith entry of PAL. Note that SWAP(PAL, i, j) is defined for all integers i and j between 0 and length(PAL) – 1, where length(PAL) is the number of letters of PAL. 1. Using our algorithmic language, write an algorithm, called Sort_PAL, which sorts the letters in the array PAL_TAB in a way that all P’s appear first, followed by all A’s, and followed by all L’s. The algorithm Sort_PAL should have one parameter: The array PAL_TAB. Also, your solution is correct only if the four constraints below are satisfied: - Constraint 1: Each letter (‘A’, ‘L’, or ‘P’) is evaluated only once. - Constraint 2: The function SWAP(PAL, i, j) is…C Program: An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to the number. For example, 6 is a perfect number because 6 = 1 + 2 + 3. I have written a function called isPerfect (see below), that determines whether parameter passed to the function is a perfect number. Use this function in a C program that determines and prints all the perfect numbers between 1 and 1000. Print the factors of each perfect number to confirm that the number is indeed perfect. // isPerfect returns true if value is perfect integer, // i.e., if value is equal to sum of its factors int isPerfect(int value) { int factorSum = 1; // current sum of factors // loop through possible factor values for (int i = 2; i <= value / 2; ++i) { // if i is factor if (value % i == 0) { factorSum += i; // add to sum } } // return true if value is equal to sum of factors if (factorSum == value) { return…Write and test the “digit” function: Function Prototype: int digit(int n,int k)This function returns the kth digit of the positive integer n. For example, if n is the integer 29,415 that is entered by user , then the call digit(n,0) would return the digit 2, and the call digit(n,2) would returnthe digit 4. do this only by using functions and loops. arrays are not allowed. example :Input: n = 29415 , k = 1 output: 9 Input: n = 2 , k = 1 output: index out of bound (return -1)