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: List three different techniques in serial transmission and explain the differences.
A: In Serial transmission, data bits are sent one after another over a single channel. Three different…
Q: We have been thinking about computer programs as sequences of instruc-tions where the computer…
A: In a computer system, all the programs are basically instructions. These instructions are executed…
Q: Assuming a page size of 4 Kbytes and that a page table entry takes 4 bytes, how many levels of page…
A:
Q: Define baseline wandering and its effect on digital transmission.
A:
Q: How are OSI and ISO related to each other?
A: OSI model is an abstract representation of the process by which data is transmitted from one device…
Q: Prove that, among nonpreemptive scheduling algorithms, SPN provides the minimum average waiting time…
A:
Q: Suppose you are designing a sliding window protocol for a 1-Mbps point-to-point link to a stationary…
A:
Q: Describe the program structure in ABAP.
A: 1) ABAP stands for Advanced Business Application Programming. 2) ABAP is a programming language that…
Q: A function with no return statement returnsa) nothing b) its parameters c) its variables d) None
A: Let's see the situation
Q: The cook must participate in the presence before each class, i.e. call out the names of the students…
A: The first line of the input contains a single integer T denoting the number of test cases. The…
Q: Suppose we want to transmit the message 101100100100 1011 and protect it from errors using the CRC-8…
A: Given message = 1011 0010 0100 1011polynomial = (x8 + x2+ x1+ 1) which can be represented as…
Q: Suppose a computer sends a packet at the network layer to another computer somewhere in the…
A:
Q: b) Consider the following network. With the indicated link costs, use Dijkstra's shortest-path…
A: Answer is in next step
Q: Q: Suppose you were asked to develop a distributed application that would allow teachers to set up…
A: Answer the above question are as follows
Q: How to Implementing Switch Port Security?
A: There is a maximum number of MAC addresses that each switch can hold in the MAC address database.…
Q: In briefly. ?
A: As we know NAT is used to convert public IP to private IP and vice versa of it. So here we are given…
Q: If a function returns a value, it should generally be called froma) an expression b) a different…
A: Let's see the solution
Q: When a child process utilizes unnamed pipes to read the
A: The answer is
Q: Suppose a 128-Kbps point-to-point link is set up between Earth and a rover on Mars. The distance…
A: HELLO STUDENT PLEASE DO LIKE IF THIS SOLUTION WILL HELP YOU
Q: Using self-certifying communicating with a nonmalicious server? path names, is a client always…
A:
Q: NEED HELP PYTHON CODING: Create a program to calculate the following. Store the solution in a…
A: Introduction Python has a straightforward syntax that resembles that of English. Python's syntax…
Q: Explain why public key encryption is more useful for securing communi-cations on the Internet than…
A: Public key cryptography's main advantage is improved data and identity security at scale. The fact…
Q: Which of the following keywords mark the beginning of the class definition? Group of answer choices…
A: Question 1C: classdef, return, and class are all keywords, but class is the only keyword that marks…
Q: 1.You are synthesizing a chip composed of some logic with an average activity factor of 0.1. You are…
A: answer is
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: 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 one way to implement the idea behind the Shortest Remaining Path Time First algorithm.…
Q: Explain why transient synchronous communication has inherent scalability problems, and how these…
A:
Q: 2. Reading Files Create a class with a method that, given a string representing a file name,…
A: *As per the guideline I can only provide the solution for 1 question so adding the solution for the…
Q: Four channels, two with a bit rate of 200 kbps and two with a bit rate of 150 kbps, are to be…
A: Here is the solution:
Q: Formal and actual parameters are matched up bya) name b) position c) ID d) interests
A: Let's see the solution
Q: how to Encrypting Older IOS Passwords with service password-encryption?explain with commands.
A: Encrypting Older IOS Passwords with service password-encryption?explain with commands are given in…
Q: AC has a construction called a union, in which a field of a record (called a struct in C) can hold…
A: Union is a user defined data type which is the collection of different variables of different data…
Q: Define the process of Rearranging Loops to Increase Spatial Locality ?
A: Lets see the solution.
Q: ython3.
A: Here from the question, we have to develop python code to is to sort the frogs in the increasing…
Q: Consider a computer with N processors in a multiprocessor configuration. a. How many processes can…
A:
Q: Suppose a computer sends a packet at the network layer to another computer somewhere in the…
A: The answer is given below.
Q: A DMA module is transferring characters to main memory from an external device transmitting at 9600…
A:
Q: Describe the following terms as they are used in DevOps a. Maven packages
A: Let's learn about one of the most popular tool used in DevOps i.e. Maven
Q: Explain Full form of SATA hard disk?
A: Answer is in next step.
Q: A lapindrome is defined as a string that, when split in the middle, gives two halves with the same…
A: Input-Output Details: First line of input contains a single integer T, the number of test cases.Each…
Q: Which string method converts all the characters of a string to upper case?a) capitalize b) capwords…
A: Lets see the solution.
Q: time
A: public class Mat{ static int n=4;static int m=3; static void transpose(int arr[][] , int arr1[][]){…
Q: Write an insert module for a Binary Tree data structure. The module will take two parameters: a…
A: class Node: def __init__(self,key): self.left = None self.right = None self.value = key # A…
Q: i am not undestanding the above text
A: Here is the text given in the handwritten notes In some contexts, it is helpful to replace a…
Q: What we want to do next is write (x + jy)as Reje where R = √√(x² + y²) and tan-¹(0) = (²)
A:
Q: Three processes share four resource units that can be reserved and released only one at a time. Each…
A: NOTE: As per Bartleby guideline, we are allowed to solve first question only. Deadlock in Operating…
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 TT denoting the number of test cases. The…
Q: Suppose the current denial state of a file in NFS is WRITE. Is it possible that another client can…
A:
Q: Explain the following control structures available in ABAP.
A: Control structures arrange the statements within a processing block. These specify statement blocks…
Q: For example, 20 5 3 the output is: range (20, 5, 3) Sequence is empty. Start is greater than or same…
A: I give the code along with output and code screenshot
Step by step
Solved in 2 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.