Which of the following option is correctly matched Name (p) \d (q) \D (r) \w (s) \s Equivalent pattern 1. [^ 0-9] 2.[0-9] 3. [\r\t\n\f] 4. [A-Z a-z_0-9] P-2, q-1, r-4, s-3 P-1, q-1, r-3, s-4 P-1, q-2, r-4, s-3 P-2, q-1, r-3, s-4 None of these
Q: 1. In a two-class problem, the likelihood ratio is p(x|C₁) p(x|C₂) Write the discriminant function…
A:
Q: 1. List your arguments in favor of this recommendation.
A: Software inspection is a control technique to ensure that the documentation produced in a particular…
Q: Assume you are a programmer in a company for developing applications. Most of your client needs…
A: SOLUTION: THE ANSWER IS GIVEN BELOW
Q: Create a function that returns the frequency distribution of an array. This function should return…
A: Algorithm - Take input from user. Now use the below logic - for (let el of arr) { if (out[el])…
Q: You are counting points for a basketball game, given the amount of 2-pointers scored and 3-pointers…
A: Algorithm - Take input from user.Now use the below logic -return (2 * twoPointers) + (3 *…
Q: A computer user finds that ransmits data at a rate of 7 second). Compare the average time with the…
A: Given No.of bits per second (n) = 75 Mbps = 75*220 bps = 7.86*107 bps c = d/t t = d/c d = 8x2 = 16…
Q: 1. What are the advantages and disadvantages of employing outsiders compared with insiders for a…
A: Advantages: 1) Free of all ties to the group. 2) It watches and analyses events and structures.…
Q: One can expect that in many cases, participants in an inspection session are able to suggest…
A: 1. It is recommended to avoid discussion about solutions during the inspection session. Because :…
Q: What is the difference between the ArrayList class and the Linked List class?
A:
Q: Question 3 The StarHub IT Solution Sdn. Bhd. is in the planning to explore new product and services…
A: ANS:
Q: I need help writing this code in C. It begins by making a struct that holds 2 other structs inside…
A: Hello student Please Please Please do like Because this is the accurate code I have written below
Q: What are the advantages and disadvantages of using a HashMap compared to a TreeMap?
A:
Q: Define the concept of a unified memory architecture.
A: In this question we need to explain concept of unified memory architecture.
Q: Performing a contract review raises many difficulties. 1. List the “built-in” difficulties to…
A: Introduction; A contract review is a contractual procedure used to identify and analyse an…
Q: Martin just finished his inspection coordinator course. After ob ment, he plans to add his personal…
A: Introduction: The report will provide management with an additional and earlier source of feedback,…
Q: In what important ways did the hypertext system of Berners-Lee differ from earlier hypertext…
A: Burner Lee System: The emphasis is primarily on portability and versatility, so the hypertext you…
Q: William Tucker is a well-known and currently he is cooking a big pizza in rectangle shape having…
A: code:
Q: Write a program using integers userNum and x as input, and output userNum divided by x three times.…
A: This problem can be solve by using for loop in which userNum is divided by x and note the quotient1…
Q: What is the difference between composition and aggregation?
A:
Q: a) How many strings of four different hexadecimal digits are there? b) How many of them start with a…
A:
Q: 1- What method can be used to create a new instance of an object? 2- Which is the most reliable…
A: According to the Bartleby guideline, we are supposed to answer only first 3 short question at a…
Q: Pressman's definition of quality requires the client to specify the software requirements because…
A:
Q: // Declare an instance variable call it a and give it a value. } public class Q extends P { //…
A: Here i give all the questions answer that is required. source code :- // completing the following…
Q: "MPT star" is a program for calculating the annual municipal property taxes, based on the…
A: The following is a definition of a suggested stratification: Properties not eligible for any…
Q: 5. Use Figure 1.2 (below) to answer the following questions. 1. In the table, how many records does…
A: 1. (a) Data:-Data can be defined as a raw facts or figure. It includes facts and statistics which…
Q: The programmers on this assignment might use their own Design Environment (IDE), or you could…
A: An integrated development environment (IDE) is a software suite that is used to write and test…
Q: A Circle and Two Squares Imagine a circle and two squares: a smaller and a bigger one. For the…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: RGB LED fading colors project. Write comments for the below C code explaining each line. Code is…
A: RG B LED fading colors project. The comments for the given code is given below:
Q: Model calibration and validation procedure involves FOUR different steps (eg data preparation, model…
A: 1) Pitman Model: The Pitman model is a simple conceptual model that can be used to estimate the…
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: Several approaches are possible, including:
Q: A contract review can be performed by "insiders" (members of the organization's proposal team or…
A: 1) The advantages of employing outsiders for a proposal draft review are The outsiders have more…
Q: A contract review can be performed by "insiders" (members of the organization's proposal team or…
A: Advantages: 1) Free of all ties to the group. 2) It watches and analyses events and structures.…
Q: A computer user finds that his wireless router transmits data at a rate of 75 Mbps (megabits per…
A: Introduction A wireless Wi-Fi router is a device that transmits data wirelessly to other devices,…
Q: William Tucker is a well-known and currently he is cooking a big pizza in rectangle shape having…
A: If you have a pizza with a grid of (X, Y), then there are X * Y possible sub-rectangles that we…
Q: Printing array elements separated by commas. Write a for loop to print all NUM_VALS elements of…
A: The given below program is in java
Q: A number is said to be Disarium if the sum of its digits raised to their respective positions is the…
A: import java.util.Scanner; public class Example11 { public static void main(String args[])…
Q: "Police Star 1000 System" is the new prestigious software system for recording all the verbal…
A:
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: There are several approaches are possible including these details:- • This project uses a printable…
Q: Create a Java program that will display the student's information. The program should perform the…
A: We need to write a Java code for the given scenario.
Q: Write a program that takes an integer list as input and sorts the list into descending order using…
A: BELOW ? STEP BY STEP COMPLETE SOLUTION REGARDING YOUR PROBLEM :
Q: Assume the development environment is Unix workstations, and the documentation team uses the…
A: The designers might use Frame Maker to create the design documentation and export it as a PDF file.…
Q: Your group has been given a programming assignment to create a company website that will include an…
A: Javascript JavaScript is a text-based computer language that can be used on both the client and…
Q: 1) What's the Time Build a Python script that tells you the current time. Create a new script called…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: Consider the data given in Table-1, and use the following Gradient Decent Methods to build the…
A: Gradient descent is a streamlining calculation which is ordinarily used to prepare AI models and…
Q: WHAT FACTORS ARE LIKELY TO DELAY THE WIDESPREAD USE OF VIDEO IN INTERFACES? WHAT APPLICATIONS COULD…
A: factors are likely to delay the widespread use of video in interfaces
Q: Chef and his little brother are playing with sticks. They have total N sticks. Length of ith stick…
A: Input-Output format The first line contains a single integer T denoting the number of test-cases. T…
Q: Write a function count_evens(nums) that takes a list of ints called nums and returns the number of…
A: NOTE - I have used python programing language to solve the question. Here I have defined the…
Q: Write a Java program to remove a specific element from an array.
A: Algorithm: Step-1: Start Step-2: Declare an array arr of values { 23, 12, 63, 74, 25 } Step-3:…
Q: Create a function that outputs the result of a math expression in words. Examples wordedMath ("One…
A: I have implemented the question according to the specification. Hope you find this useful. The code…
Q: 2. In a two-class problem, the log odds is defined as P(C₁|x) P(C₂|x) Write the discriminant…
A:
Step by step
Solved in 2 steps
- python:def ohno_twozero(placeholder, statement): """ Question 1 - Regex You are typing a personal statement but accidentally used the number 0 instead of the letter o (the two are very close on the keyboard). After realizing this, seeing the mistake once does not bother you, but you absolutely cannot tolerate seeing it twice in a row. Therefore, you will need to replace any WORD where '00' shows up at any point with the given placeholder. Do not replace any NUMBER where 00 shows up. (e.g. '100' should stay as '100' and not be replaced with the placeholder). You may assume that when '00' shows up in a word, there will be at least one letter preceding it. Return the output string after making these changes. THIS MUST BE DONE IN ONE LINE. Args: placeholder (str) statement (str) Returns: str >>> ohno_twozero('epic', "I am n0w l00king at 500 t0tal h0urs 0n Super Smash Br0s.") "I am n0w epic at 500 t0tal h0urs 0n Super Smash…Create a file in your project named employees.txt with the following data (you can simply create the file by hand rather than with Python code): 123 Bob Smith345 Anne Jones256 Carol Lee845 Steve Robert Anderson132 Jill Thompson From your program's main function, give the user the following options: lookup a name based on ID number, lookup an ID number based on name, and quit the program. OPTION 1: The user chooses to lookup a name based on ID number: Use a try/except and ask the user to enter an integer. If they don't enter an integer, print an error message. If they do enter an integer, call a function named lookup_employee which takes the id as a parameter. If an employee with the given id number is found, return the name. Otherwise, return the string “Employee not found” Back in main, print the return result. OPTION 2: The user chooses to lookup an ID based on name: Ask the user to enter the first and last name (don't ask for the middle name). Call a function named…A python function opens file data.csv, reads the data from the file and spits the data into three columns, x, y and z. The data is then printed out. Function: f = open("data.csv ", "r") print('x\ty\tz'.format()) for row in f: temp = row.split(',') for cell in temp: print(cell,end='\t') print() data.csv contains: 1.2,2.1,1.1 2.3,3.2,0.6 0.7,1.9,0.1 1.8,2.5,0.3 4.6,2.7,0.9
- PLEASE DO IT IN PYTHON Q3:Create a series called 'directors' that contains each director's name and his or her average rating. Print out the type of your variable. Q4:Select the non-USA movies made after 1960 by Hayao Miyazaki.Save the result in a DataFrame called 'miyazaki', then print it. Here are the steps:1. Query the data ('df' DataFrame) based on the following conditions:- Non-USA movies (country_id != 1)- Movies made after 1960 (title_year > 1960)- Movies made by director Hayao Miyazaki (director_id == 46)2. Save the filtered data in a DataFrame called 'miyazaki' and print it Q5:Create a Pivot Table that shows the median rating for each director, grouped by their respective countries. Name your variable'pivot_agg' Q6:How long did the movie Gladiator aim to keep your attention? Save the series with this informationin a variable called 'gladiator_duration', then print it. The fields below repeat for each customer: o Customer name (String)o Customer ID (numeric integer) o Bill balance (numeric)o EmailAddress (String)o Tax liability (numeric or String) The customers served by the office supply store are of two types: tax-exempt or non-tax- exempt. For a tax-exempt customer, the tax liability field on the file is the reason for the tax exemptions: education, non-profit, government, other (String). For a non-tax exempt customer, the tax liability field is the percent of tax that the customer will pay (numeric) based on the state where the customer’s business resides. Program requirements: From the information provided, write a solution that includes the following: A suitable inheritance hierarchy which represents the customers serviced by the office supply company. It is up to you how to design the inheritance hierarchy. I suggest a Customer class and appropriate subclasses.. For all classes include the following: o Instance variables o…Computer Science Using Java language Write a procedure that generates a regular heightfield in data-files/model/heightfield.off with elevation given by the grayscale values of an image file. Use a file dialog to select the file, a number box to scale the xx and zz integer coordinates by, and a number box to set the scale that 1.0 corresponds to for height. Make a button labelled “Generate” that launches the generator. Display a message on screen while generating and then flush the G3D::ArticulatedModel cache, and reload the current scene on completion.
- In python: The file contain the content in the form pet1,pet2,pet3 Output will return [[‘pet1’, ‘pet2’, ‘pet3’],[‘pet1’, ‘pet2’, ‘pet3’],…] or none if wrong format for example : PET.txt Cat, Dog, Turtle Hamster, Dog, Dog, , Turtle PETS = read_file(‘PET.txt’) len(PETS) Output: 3 PETS[1] Output: [‘Hamster’, ‘Dog’, None] PETS[2] Output:['Dog', None, 'Turtle'] Play.txt Hamster, Fish Crocodile Play = read_file("Play.txt") print (Play) Output : NoneAsapIn C++ (don't copy paste the same answer that is already on this site, post unique code) Structures A menu-driven program gives the user the option to find statistics about different baseball players. The program reads from a file and stores the data for ten baseball players, including player’s team, name of player, number of homeruns, batting average, and runs batted in. (You can make up your data, or get it online ) Write a program that declares a struct to store the data for a player. Declare an array of 10 components to store the data for 10 baseball players. The program prints out a menu (in a loop, so this can be done again and again) giving the user a choice to: print out all users and statistics print out the statistics for a specific player print out all data for a specific team update the data for a particular player (change one of the statistics) DO ALL WORK IN FUNCTIONS. USE A FUNCTION TO READ THE DATA, A FUNCTION TO PRINT THE MENU, and FUNCTIONS FOR EACH OF THE MENU…
- 3. Randomly generate a number in range [1, 12]. Map this number to a season: if the number is 3, 4, or 5, map it to “Spring", if the number is 6, 7, or 8, map it to "Summer", if the number is 9, 10, or 11, map it to "Fall", and if the number 12, 1, or 2, map it to "Winter". Display season namePython please: Given a text file named RandomTextFile.txt that contains newline characters, write a program that removes all the newline characters from the file. Your program should use the filename as input, and the output file should use the same filename as the original. Use the attached file RandomTextFile.txt to help you write and test your program. It contains the following text: Python is an interpreted language and the python interpreter is a computer program that executes code written in the python programming language. The python interactive interpreter is useful for simple operations or programs consisting of only a few lines. For more lines, a programmer can write Python code in a file, and then provide that file to the interpreter. For normal development a programmer installs python as an application on a local computer. Macintosh and Linux operating systems usually include python, while Windows does not. Programmers can download the latest version of python for free from…X609: Magic Date A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that figures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12, inclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false. Examples: magicDate(6, 10, 60) -> true magicDate(50, 12, 600) –> false