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: Define baseline wandering and its effect on digital transmission.
A:
Q: Determine the necessary and sufficient conditions for the existence of an Eulerian walk from S to T…
A: A connected graph is Eulerian if and only if every node has even degree. We know that if (u,v) is a…
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: w are OSI an
A: Introduction: ISO is an abbreviation for the International Organization for Standardization. This is…
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: In the VAX, user page tables are located at virtual addresses in the system space. What is the…
A: Given that, In the VAX, user page tables are located at virtual addresses in the system space. Page…
Q: time
A: public class Mat{ static int n=4;static int m=3; static void transpose(int arr[][] , int arr1[][]){…
Q: In a dual core processor, consider first four letters of your name coming as processes each having…
A: Answer is in next step.
Q: Java - How many recursive calls will be made if the following method is called with 6? void…
A: Java Java is a programming language that is employed by developers to develop apps for mobile…
Q: Write a Java program to find the sum of odd numbers till n. You have to take n from the user.
A: Required: Write a Java program to find the sum of odd numbers till n. You have to take n from the…
Q: You are assisting with the Investigation of a report of Bestiality, and have been accessed to…
A: According to the information given:- We have to follow the instruction to explain the Protections…
Q: (b) Either the food is good or the service is excellent. (c) Either the food is good and the service…
A: Let us understand about the negation. The negation in the logic is used for reversing the entire…
Q: Somebody tosses a fair coin and if the result is heads, you get nothing, otherwise you get $5. How…
A:
Q: and scans the metadata of an object and displays the o
A: Introduction: A meta data is information about information. It is due to the self-descriptive nature…
Q: Mass/kg 0 Winnower 300- 250- 200- 150- 100- 50- 0- STOP Sugar Temp/C 0 200 150 100- Milk Time/min 0…
A: The question is to explain the given diagram.
Q: The IBM System/370 architecture uses a two-level memory structure and refers to the two levels as…
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: Give the function header for each of the following functions.a) Function hypotenuse that takes two…
A: Lets see the solution.
Q: In virtually all systems that include DMA modules, DMA access to main memory is given higher…
A:
Q: Explain why transient synchronous communication has inherent scalability problems, and how these…
A: Transient communication A message is discarded by a communication server as soon as it cannot be…
Q: Define the process of Rearranging Loops to Increase Spatial Locality ?
A: Lets see the solution.
Q: Label the Recursion Requirements. int fact (int n) { int result; } if(n==1) return 1; result fact…
A: The following are the requirements for a successful recursion: Termination condition to break out…
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: you have two possibilities: You can fax a document, t image, or you can use an optical character…
A: Introduction: Images and diagrams can be difficult for OCR to recognise. OCR is ideal for documents…
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: Whether VRC error detection method is used for single bit error or burst error.
A: 1) VRC stands for Vertical Redundancy Check 2) It is also known as Parity Check. In this method, 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: There is an N of components, represented by the strings S1,S2, .... SN into the kitchen. The chef…
A: The java code is given below:
Q: What is a spike in noise term?...
A: When a train or ship is in the area, there may be an increase in the level of noise. The section of…
Q: A certain CS professor gives 100-point exams that are graded on the scale 90-100:A, 80-89:B,…
A: Since no programming language is mentioned, I am using python Algorithm: Start Read exam score If…
Q: The part of a program that uses a function is called thea) user b) caller c) callee d) statement
A: Function is block of statements to perform a particular task which can be used by simply calling it…
Q: Calculate the total time required to transfer a 1.5-MB file in the following cases, assuming an RTT…
A:
Q: Define FHSS and explain how it achieves bandwidth spreading.
A: Frequency Hopping Spread Spectrum (FHSS): Signal is broadcast over seemingly random series of radio…
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: 1. Q: We made a distinction between remote objects and distributed objects. What is the difference?
A:
Q: Suggest a service deployment model IT business should join, 1. Give 5 reasons for your choice. 2.…
A: A service deployment model IT business should join:
Q: Q: Suppose you were asked to develop a distributed application that would allow teachers to set up…
A: According to the information given:- We have to describe the development of a distributed…
Q: In virtually all systems that include DMA modules, DMA access to main memory is given higher…
A: The answer to the question is given below:
Q: Java
A: Answer in Step 2
Q: * Design Sequential Circuit Using SR Flip Flop
A:
Q: A lapindrome is defined as a string that, when split in the middle, gives two halves with the same…
A: The python code for the above lapindrome problem is given below:
Q: Draw a use case diagram on how to use a learning management system
A: INTRODUCTION Use case diagrams Behavior models or diagrams are also referred to as use case…
Q: Need Help Python programming: Create a program to print the following. Store some words in a…
A: Step-1: Start Step-2: Declare variable fName and take input from user Step-3: Declare variable lName…
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: A DMA module is transferring characters to main memory from an external device transmitting at 9600…
A: Given: DMA transfer speed = 9600 bpsCPU fetching speed= 1 million instruction per second To find:…
Q: With persistent communication, a receiver generally has its own local buffer where messages can be…
A: Background information A persistent communication server keeps a message for as long as it takes to…
Q: to 2-page example of a policy statement using Microsoft® Word. Complete the following in your…
A: Answer is in next step.
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: Suppose the current denial state of a file in NFS is WRITE. Is it possible that another client can…
A:
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…
in js only needed solution
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.