what will be the output of the followint script? %List of sub areas AA=[10, 5, 5]; %List of centroid sub areas y= [5, 3, -2]; %Find the centroid cntrd= find_Centroid(AA, y); disp(cntrd)
Q: 6. Request Content-Type header fetch(url, { method: 'post', headers: { "Content-type": }, body:…
A: Request Content-Type header
Q: want create matrix multiplaction but my web-site calculate wrong. can you see where the error is,…
A: Web programming refers to the writing, markup and coding involved in Web development, which includes…
Q: Create an app that performs the required actions below. You may use the previous assignment files to…
A: insert-wish-form.php <!DOCTYPE html> <html lang="en"> <head> <title> Wish…
Q: Which statement about this error handling function is correct? function handleErrors(message,…
A: Error Handling alludes to how Express gets and processes blunders that happen both simultaneously…
Q: you help me I want to display and search at the table in the same time and fetch those results and…
A: It is defined as a open-source, interpreted, and object-oriented scripting language that can be…
Q: 5) Which command used to round the value toward + ∞o? a) ceil (X) b) floor (X) c) round (X) 6) Which…
A: We will solve the first three sub-parts for you. To get the remaining sub-parts solved please repost…
Q: Write the head and tail commands that swaps two chunks of 51 lines from file myfile and re-saves it…
A: head and tail to grab different sets of line from one file myfile . lines 1-51 and lines 52-102 and…
Q: In the interval 0<x< 2x using 100 data points. 1. Use the plot command to display these functions on…
A: Given:
Q: Find three patterns respositories for webapp patterns, select one patterns from each and present…
A: The repository pattern is intended to create an abstraction layer between the data access layer and…
Q: https://pastebin.com/raw/zpnrNqpJ Fix the Replace function in this C project and make sure it works…
A: We need to fix update function, if not working properly.
Q: In your Employee/Index.cshtml razor page you want to create a link to the Employee Controller, Add…
A: url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id…
Q: How many trainable parameters are included in the following three Layers? [keras.layers.Conv2D(64,…
A: The solution for the above given question is given below:
Q: element specifies the URL of the script on the web server that will be invoked to process the form’s…
A: The given question is a MCQ type question.
Q: Write the source code of a “self-calling/self-processing” PHP page. This page should ask a…
A: Begin Enter a word from HTML Create a submit button If the button has been clicked Display the…
Q: Consider the following source code, which was discussed in the midterm: (defun eww-detect-charset…
A: The functions you evaluate by typing keystrokes are called commands. The keystroke used for…
Q: What is the number of page faults if the page reference string is 4,5,4,5,4,5,5,4 using FCFS with 1…
A: Answer to the given question choice(b) is the right answer The explanation for the given answer is…
Q: Which shortcut command is used to open a new document? O a. Control N O b. Alt N O c. Alt O Od.…
A: Answer is option A
Q: Rewrite the code so it looks different but has the same output connect_error); $facultyQuery =…
A: There I discussed points to optimise the php code: 1.use native php functions. 2.use single Quotes,…
Q: BL0008, TLIMIT and TBALANCE get printed in what section of the report? Select one: a. TRAILER-2 b.…
A: It is defined as a document that presents information in an organized format for a specific audience…
Q: ________ element is required in a web application to operate the Server-Sent Events?
A: The given question is a fill in the blanks type question related to HTML5 - SSE (Server-Sent…
Q: Suppose you’re developing an application which stores a user’s browser history. Explain which…
A: STACK collection class will help to retrieve information of the last visited page.
Q: this is a package json { "name": "LiveEmbellishedAnimatronics", "version": "1.0.0", "description":…
A: ANSWER:-
Q: display and search at the table in the same time and fetch
A: ANSWER:
Q: Complete the Python program below to display the name of the most recently added dataset and collect…
A: 1. Complete the Python program below to display the name of the most recently added dataset and…
Q: Explain the difference between ls -l > mylisting.txt and ls -l >> mylisting.txt
A: Answer: ls -l > mylisting.txt This command will create the file "mylisting.txt" and fills it…
Q: Provide for a treatment and in case no value is entered for age
A: I have displayed the column name and age in the table format in HTML for the following conditions of…
Q: True or false? If server-side PHP code is correctly delimited and contains no syntax error, then the…
A: Given: To declare statement s true or false.
Q: Which of the following input values results in a successful INSERT of O’hara?a. ‘O^ hara’b. ‘O’…
A: Insertion of ‘O’‘hara’ data using “INSERT” statement will produce the result as O’hara. “2” single…
Q: Hard links need to reside on the same filesystem as the target, whereas symbolic linksneed not be on…
A: Links: In Linux, links act as pointers that point to a file or a directory. Links also facilitate…
Q: e
A: (i) Digital Fingerprinting Technology empowers the substance proprietor to practice control on their…
Q: reate a session variable called SProot and assign the generated positive root value to it in…
A: Create a session variable called SProot and assign the generated positive root value to it in…
Q: ould i fix this issue ? const express = require('express'); const exphbs =…
A: Hey there, I am writing the required solution of the above stated question.Please do find the…
Q: Task (4) Assume that the user made changes to the default data and then clicked the Save, Write PHP…
A: update code: [user made changes to default data means update of data] DATABASE_FILE.PHP <?php…
Q: Question 12 How do you change data field positions for a PivotTable? a) Rename a field to change the…
A: What is pivot table ----> when we have huge amount of data it is really difficult to handle and…
Q: Which one of the following attributes can be included in tag ? a. TARGET O b. ALT О с. АСTION O d.…
A: Form will have many attributes that can specify the various styles or actions that can be performed
Q: What is the below LDAP script used for? $strClass = "User" $strName = "CN=MyNewUser" $objADSI =…
A: LDAP (Lightweight Directory Access Protocol) is a software protocol that allows anybody to find data…
Q: Which of the below commands allows for accessing the first clement in a list L (assuming there is at…
A: Question:
Q: I am trying to scrape price and circulating supply for all the cryptocurrency listed on…
A: I would recommend you to use CoinMarketCap API to obtain the data. First 10K calls are for free. The…
Q: Do you have any plans to improve the security
A: Do you have any plans to improve the security of the following URLs (hyperlinks)? Answer: Following…
Q: 4. Write a PHP script task4.php that connects to the database and displays the results of the query…
A: 4.Step 1: Establishing connection with server using the command below: $connection =…
Q: Which command option for In is used to create a symbolic link?
A: ln is a command utility for making joins between records. As a matter of course, the ln order makes…
Q: Explain the difference between the commands below curl -s localhost curl -v localshot
A: curl is program (comes by default in unix/linux and is in path, so can be used as a command in bash…
Q: ARIES supports ___________ operations, which are physical in that the affected page is physically…
A: Answer is a. Physiological redo ARIES supports physiological redo operations, Which are physical in…
Q: Examine the following code. function getData() { var url = "ajaxdata/citStudents.txt"; var…
A: Given The answer is given below. Given code: function getData() { var url =…
Q: The first page is a static page and it is stored as "index.html" The second page is a dynamic page…
A: Note- as the question picture is multipart, as per our company guidelines, i can only answer the…
Q: Provide a function named getFromSessionStorage that will retrieve the object you put in session…
A: Added the ID and attributes on paragraphs and buttons in the HTML part…
Q: In a CURSOR FOR Iloop, which command is used to open the cursor? Answers: FETCH a. b. ОРEN FOR LOOP…
A: Given:
Q: priority anan holds items: 18, 47, 85 (front is 18). Where does Enqueue(numPQueue, 47) add an item?…
A: The given problem is related to data structure Queues. The requirement is to find the position where…
Q: Create a TRIGGER to ensure all new email address are lowercase
A: In MySQL, a trigger is created to respond to the events like insert, update, or delete performed on…
Matlab
Step by step
Solved in 2 steps
- A bracket is considered to be any one of the following characters: (, ), {, }, [, or ]. Two brackets are considered to be a matched pair if the an opening bracket (i.e., (, [, or {) occurs to the left of a closing bracket (i.e., ), ], or }) of the exact same type. There are three types of matched pairs of brackets: [], {},and (). A matching pair of brackets is not balanced if the set of brackets it encloses are not matched. For example, {[(])} is not balanced because the contents in between { and } are not balanced. Write a program that take string of bracket pairs from user and reply Yes or No after evaluate. Your program should working like This. {[()]} Yes {[(])} No {{[[(())]]}} Yesthello is a board game and you are expected to implement the move function for this game. Arguments passed to the function are - a symbol of the player making the move and x y coordinates of the cell at which the player wishes to make the move. The move function will be returning a boolean, false - if the move isn't feasible and true - if the move is feasible and this function will also make the move then i.e. make the required changes in the board. Input Format: Line 1: Integer n (Total number of moves) Line 2: Player 1 coordinates, x and y (Two integers separated by space) Line 3: Player 2 coordinates, x and y (Two integers separated by space) Note 1: Number of moves (i.e. n) is always even and Player 1 always starts the game. Note 2: If any player's coordinates are not valid, enter again till the right move. Main function is given for you reference. Sample Input: 2 24 15 25 Sample Output: 00000000 00000000 00001000 00011000 00021000 00000000 00000000 00000000 false 00000000 00000000…float theRealQuestion (int x, float y) { int z; if (x > 15) z = x; else z = y; return z; } Code the function prototype for the given function.
- Implement the quadratic_formula() function. The function takes 3 arguments, a, b, and c, and computes the two results of the quadratic formula: x1=−b+b2−4ac2a x2=−b−b2−4ac2a The quadratic_formula() function returns the tuple (x1, x2). Ex: When a = 1, b = -5, and c = 6, quadratic_formula() returns (3, 2). Code provided in main.py reads a single input line containing values for a, b, and c, separated by spaces. Each input is converted to a float and passed to the quadratic_formula() function. Ex: If the input is: 2 -3 -77 the output is: Solutions to 2x^2 + -3x + -77 = 0 x1 = 7 x2 = -5.50 code: # TODO: Import math module def quadratic_formula(a, b, c):# TODO: Compute the quadratic formula results in variables x1 and x2return (x1, x2) def print_number(number, prefix_str):if float(int(number)) == number:print("{}{:.0f}".format(prefix_str, number))else:print("{}{:.2f}".format(prefix_str, number)) if __name__ == "__main__":input_line = input()split_line = input_line.split(" ")a =…Explain Passing Two-Dimensional Arrays as Parameters to Functions.7. Convert this iterative function into recursive function. [s] int factorial (int num){ int answer=1; for(int t = 1; t>num; t++) { answer answer * (t); return (answer); }
- Write a function median : int * int * int -> int that returns the median value of the input. You may assume that no 2 numbers are equal. For example median (1,3,2) returns 2 IN SML ONLY and use pattern matching pleasefunction [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)Weighted Job Scheduling in C language only please Problem statement: You are given a list of jobs where each job has a start time, finish time, and the profit associated with that job, find the maximum profit subset of non-overlapping jobs. Problem description: The problem wants you to find the maximum profit that you can make after performing a certain number of jobs such that each job has a certain condition that you can start a job only if the start time of the current job is greater than the finish time of the previous job. You are required to develop some algorithm such that the job start time and the finish time does not coincide with other jobs. Output: (Attached photo)
- Weighted Job Scheduling in C language Problem statement: You are given a list of jobs where each job has a start time, finish time, and the profit associated with that job, find the maximum profit subset of non-overlapping jobs. Problem description: The problem wants you to find the maximum profit that you can make after performing a certain number of jobs such that each job has a certain condition that you can start a job only if the start time of the current job is greater than the finish time of the previous job. You are required to develop some algorithm such that the job start time and the finish time does not coincide with other jobs.Help with a lisp function (please post photos) A lisp function that generates a random day of the week, then displays a message saying that "Today is ... and tomorrow will be ...". For this purpose, create a global variable before the function containing the days of the week as a list. Then use the built-in function random first to generate a number between 0 and 6 (including). The expression (random) by itself generates a random integer. You can call it with one parameter to return a value within the range from 0 to the value of the parameter-1. For example, (random 10) will return a value between 0 and 9. Next, use the number generated at the previous step to retrieve the symbol for the day of the week from the list. Use the built-in elt function. We want the name of the day to appear capitalized. For this, extract the symbol-name of the day first, then apply the built-in function capitalize to it. Use the result in the princ function call, and do the same thing for the next day.…Question 11 Matlab problem write a function handle named func_handle that takes two input (x,y) and returns x^y.