Create a function that returns an Earned Run Average (ERA). An ERA is calculated by multiplying 9 by the quotient of Earned Runs Allowed er divided by ip Innings Pitched. In baseball statistics, innings are represented with a fractional part of .1 (1/3) or .2 (2/3) to represent the number of outs in an inning. A whole number or a number with a fractional part of .0 represents a full inning with three outs. Check the Resources tab for a deeper explanation. Examples era (22, 99)→ 2.00 era (23, 99.1) 2.08 era (24, 99.2) →2.17 →
Q: Compare and contrast a circuit-switched network and a packet- switched network.
A: Circuit switching networks are connection-oriented networks. A dedicated path is held open between…
Q: How are OSI and ISO related to each other?
A: ISO stands for International Standards Organization, a global organization attempting to standardize…
Q: 7. The effectiveness of the cache memory is based on the property of A.Locality of reference…
A: Answer: We need to write the about the operating system and based in this we will do some question…
Q: An I/O-bound program is one that, if run alone, would spena more time waiting for I/O than using the…
A:
Q: A Rajesh teaches a cooking class. The course is attended by NN students, numbered 11 to NN. The cook…
A: The first line of the input contains a single integer T denoting the number of test cases. The…
Q: Q: Suppose you were asked to develop a distributed application that would allow teachers to set up…
A: A distributed application consists of one or more local or remote clients that communicate with one…
Q: Find the attached problem, for a cache with a total size of 128 databytes.
A: Transposing a matrix By flipping rows into columns or columns into rows, you may find a matrix's…
Q: What type of job involves working at client locations and the ability to work with little direct…
A: Explanation: Office job: The positions are exclusively available in the company's headquarters…
Q: A DMA module is transferring characters to main memory from an external device transmitting at 9600…
A: The processor will be slowed down by a factor of 9600/1,000,000, or 0.0096. In other words, the…
Q: An I/O-bound program is one that, if run alone, would spena more time waiting for I/O than using the…
A: This is a method of putting the Shortest Remaining Path Time First algorithm's principle into…
Q: Give a brief description of each robot above, referring to concepts and topics discussed in the…
A: Space Robot 1: Sputnik 1 The first robot to leave space was Sputnik 1, sent by the Soviet Union on…
Q: We need to use synchronous TDM and combine 20 digital sources, each of 100 Kbps. Each output slot…
A:
Q: 1. Find Fourier series Coefficients for x(t) = cos(2t + 7) 2. Find Fourier series complex…
A:
Q: For the Linear Congruential method, assume the following parameters: Xo = 23,947, a = 2,902, c =…
A: Linear congruential methods are a class of pseudorandom number generator (PRNG) algorithms used to…
Q: What are the various types of comments used in ABAP programming?
A: Comments A comment is a clarification that is included in a program's source code to aid in…
Q: Suppose you want to design software for a restaurant. a. Give use cases for placing an order and…
A: Answer:
Q: An inverse relationship often exists between the time complexity and space complexity of an…
A: Time Complexity: The time intricacy of a calculation measures how much time taken by a calculation…
Q: Explain the Pros and Cons of layer design
A: Answer is in next step.
Q: Given the following grammar in BNF: →=→X | Y | Z →% |→? | → ( ) | a) Change the grammer rules so…
A: a) first answer in below image : -
Q: What are Set Associative Caches ?
A: In cache memory there are three types of mapping techniques that are: Direct cache Associative…
Q: Create a function that returns an Earned Run Average (ERA). An ERA is calculated by multiplying 9 by…
A: In this problem, we need to design the code in the java Script programming language. Input - Two…
Q: IN JS PROGRAMMING | Given a word, create an object that stores the indexes of each letter in an…
A: Input - String Output - Map logic - for (let i = 0; i < str.length; i++) { if…
Q: What are the benefits of modularization in a processing block?
A: answer is
Q: Write a function that diagonally orders numbers in a n x n matrix, depending on which of the four…
A: const diagonalize = (n, dir) => { let arr = Array(n).fill(Array(n).fill(0)).map((r, i) =>…
Q: Write and verify an HDL behavioral model of a D flip-flop having asynchronous reset.
A: Introduction to Verilog Verilog is a HARDWARE DESCRIPTION LANGUAGE (HDL) that is used to describe a…
Q: Explain Full form of SATA hard disk?
A:
Q: Find Electromagnetic Harvesters implementations over the internet and describe how they work and…
A: The question has been answered in step2
Q: Imagine you have two possibilities: You can fax a document, that is, send the image, or you can use…
A: The two possibilities are:
Q: If a client device (such as a Windows laptop) were present in a location where it is known that a…
A: The question has been answered in step2
Q: st practices for managing Microsoft Windows and managing applications vulnerabilities
A: Microsoft Windows is Operating System of Computer designed by Microsoft. Examples of various…
Q: Java - In hash tables, separate chaining requires less memory than open addressing. True or False?
A: Collision resolution is accomplished via open addressing. In Open Addressing, the hash table alone…
Q: A Rajesh teaches a cooking class. The course is attended by NN students, numbered 11 to NN. The cook…
A: Input-Output Details: The first line of the input contains a single integer T denoting the number…
Q: Maximize subject to 0≤x≤ 31. f(x)=x³60x² + 900x + 100, 14.3-7 (a) Use the first and second…
A: a) Differentiating wrt to x we get = f'(x) = 3 x^ 2 - 120 x + 900 Solving for x we get , (3x2 -…
Q: Assume you have a stack built with an array of doubles. There is a variable called log which gives…
A: BELOW COMPLETE SOLUTION REGARDING YOUR PROBLEM :
Q: We need to use synchronous TDM and combine 20 digital sources, each of 100 Kbps. Each output slot…
A: Given data: The total number of digital sources=20 Each frame output slot carries 1 bit from each…
Q: The TCP/IP model has one layer, application, that covers OSI layers 5-7. Why is this appropriate
A: Background Information A practical use of the OSI Model is the TCP/IP Model. Despite the fact that…
Q: A DMA module is transferring characters to main memory from an external device transmitting at 9600…
A: The answer of the question is given below
Q: Review the Stata do-file written below thatsimulates the omitted variable bias. 1. Discuss the…
A: This report assesses the quality of the birth history data in 192 DHS surveys conducted since 1990.…
Q: Q: Suppose that in a sensor network measured temperatures are not times- tamped by the sensor, but…
A:
Q: The IBM System/370 architecture uses a two-level memory structure and refers to the two levels as…
A: The answer to the question is given below:
Q: What we want to do next is write (x + jy)as Reje where R = √√(x² + y²) and tan-¹(0) = (²)
A:
Q: Describe How Tabu Search Escape from local minima(as one of the drawback of local search) and find…
A: Tabu Search
Q: Define FHSS and explain how it achieves bandwidth spreading.
A:
Q: * Design Sequential Circuit Using SR Flip Flop
A:
Q: Using SQL data definition language, write the SQL statements to change each of the following…
A: Here are all the Queries for all the tasks:
Q: Define baseline wandering and its effect on digital transmission.
A:
Q: Explain SATA hard disk.
A: Introduced in 2003, SATA (or Serial Advanced Technology Attachment) is the standard interface for…
Q: Mentioned all labeled trees on 4 vertices, and write their Prufer codes There should be a total of…
A: The question has been answered in step2
Q: How are OSI and ISO related to each other?
A: NOTE :- Below i explain the answer in my own words by which you understand it well ISO…
Q: A Rajesh teaches a cooking class. The course is attended by NN students, numbered 11 to NN. The cook…
A: Algorithm: The first line of the input contains a single integer T denoting the number of test…
Step by step
Solved in 4 steps with 2 images
- Write a function find_words_with_zz(text) that uses a regex to find the words in a given text that contain double 'zz'. The double 'zz' cannot be in the start and end of the word. Examples: >> find_words_with_zz("""Suddenly in the night, John woke up craving pizza and a sizzling piece of bacon topped with a drizzle of bbq sauce!""") ['pizza', 'sizzling', 'drizzle']Write a function find_phone_numbers(text, code='357') that uses a regex to find and extract all the Cypriot phone numbers in a given text sequence. A valid Cypriot phone number starts with either 00 or + followed by the country code 357 and afterwards, 8 numeric digits. Examples: >> find_phone_numbers("""dkdkkdldld +35799394903 dkdkfk 0035799802358 fkfkfld.\n dldld;s;sdd dkdk +30690040404 and +3579933040""") ['+35799394903', '0035799802358'] and also Write a function is_zip_code(zipcode) that uses a regex to test if a given string evaluates to a correct zip code. A correct zip code has a length of 6 characters with the 3 first being letters and followed by 3 digits. Examples: is_zip_code('ABC123') -> True is_zip_code('FYA598') -> True is_zip_code('wyz940') -> True is_zip_code('AB123') -> False is_zip_code('ABCD123') -> False is_zip_code('ABC12') -> FalseDefine a function called digits that accepts two integer numbers m and n , and that displays m rows of n columns using the following pattern of digits. The first row starts with 1, the second row with 2, and so on until the 10th row starts with 0. Then the counter returns to 1 for the 11th row, then to 2 for the 12th, etc. For columns, the numbers are always incremented by 1 from the previous column, Except for the 9 that goes to 0. For example, the call digits(4, 7) must produce: 1234567234567834567894567890and the call numbers(12, 23) must produce: 123456789012345678901232345678901234567890123434567890123456789012345456789012345678901234565678901234567890123456767890123456789012345678789012345678901234567898901234567890123456789090123456789012345678901012345678901234567890121234567890123456789012323456789012345678901234Note that your function should not return anything, only display at the console.
- //Write a function that loops through and console.log's the numbers from 1 to 100, except multiples of three, log (without quotes) "VERY GOOD" instead of the number, for the multiples of five, log (without quotes) "SUPER AWESOME". For numbers which are multiples of both three and five, log (without quotes) "VERY GOOD SUPER AWESOME" Console log out: 12VERY GOOD4SUPER AWESOMEVERY GOOD78VERY GOODSUPER AWESOME11VERY GOOD1314VERY GOOD SUPER AWESOME1617VERY GOOD19SUPER AWESOMEVERY GOOD2223VERY GOODSUPER AWESOME26VERY GOOD2829VERY GOOD SUPER AWESOMEWrite a function ConvertToFahrenheit which takes a Celsius temperature and return its equivalent in Fahrenheit. F = (C × 1.8) + 323. Find Relatively PrimeWrite a function to return a number that is relatively prime with the given number. /* return an integer that is relatively prime with n, and greater than 1i.e., the gcd of the returned int and n is 1 Note: Although gcd(n,n-1)=1, we don't want to return n-1*/int RelativelyPrime (int n)
- Write a program which will take marks of three quizzes as input, then call a function void ScaleUp(float q1, float q2, float q3) to check if the marks of any of the quiz ‘q’ is less than the average of rest of two quizzes ‘a’. If marks of any quiz is less than the average of the rest of two marks then add the difference between the average of the two quizzes and the quiz itself to q i.e., q = a - q, to scale up the quiz marks.For example, if q1 = 5, q2 = 8 and q3 = 9 then your function will change the marks of quiz 1 using the steps below:A = (q3 + q2 )/2 => (8+9)/2=> 8.5 Diff = A - q1 => 8.5 - 5 => 3.5 Q1 = Q1 + Diff => 5 + 3.5 => 8.5Note that the marks are input from the user, so there might be three cases I. if q1 < q2 + q3 orIi. if q2 < q1 + q3 orIii. if q3 < q1 + q2Write a function that converts a phrase into pig Latin. A word is convertedto pig Latin by removing the first character of the word, placing it at theback of the word, and adding the characters “ay” to the word. For example,“hello world” in pig Latin is “ellohay orldway.” Your function can assumethat each word consists of at least two letters and that each word is separatedby one space, with no punctuation marks.To translate a sentence into pig Latin, create a function. When a word is written in pig Latin, its first character is dropped, shifted to the word's tail, and the letters "ay" are added. For instance, "hello world" would be "ellohay orldway" in pig Latin. Your function can be written to presume that each word has at least two letters, that there is one space between each word, and that there are no punctuation marks.
- Write a function that takes a gross salary and calculates the net salary by deducting: • 7.65% for FICA • x for federal taxes • y for state taxes • z for local taxes Also, deduct $75 for parking fees and $22.50 for a gym membership. The federal tax rate must be between 10 and 37 percent. The state tax rate must be between 3.25 and 11.33 percent. The local tax rate may not be greater than 3%. If any of those values are outside the valid range, return INVALID_PERCENTAGE from your function. Federal, state, local taxes, and gym membership amounts should be passed in by value. FICA and parking should be a global constant. COMPUTER LANGUAGE IN CTo translate a sentence into pig Latin, create a function. When a word is written in pig Latin, its first character is dropped, shifted to the word's tail, and the letters "ay" are added. For instance, "hello world" would be "ellohay orldway" in pig Latin. Your function can be written to assume that each word has at least two characters, is separated by a space, and is free of punctuation.3. If you've ever visited Europe (or Canada) you'll know that they tend to measuretemperature in degree Celsius rather than Fahrenheit. Conversion is pretty simple: if f isthe temperature in degree Fahrenheit, then the temperature in degree Celsius isc = (f-32)*5/9.a. Write a function convert() that takes as an input degree Fahrenheit andreturns degree Celsius.>>> convert(32)0.0>>> convert(68)20.0b. Using your function from part a. write a function table() that prints aformatted look-up table that helps your European and Canadian friends figure outthe temperature in Chicago.>>> table()F C-22.0 -30.0-4.0 -20.014.0 -10.032.0 0.050.0 10.068.0 20.086.0 30.0104.0 40.0This question is about the formatting: make sure the temperatures are displayedwith the same precision as shown above and aligned as above.