Consider the following Employee table: ID Name Hire Date Address Salary ... Isa Hamad Zahra Salman Hessa 15/5/2010 Isa Town 20/6/2012 Hamad Town 5/6/1989 Zahra Town 1/10/2005 Salman Town 17/5/2017 Hessa Town SA000.00 $3500.00 $6500.00 $9000.0 $4500.00 Write a PLUSQL program segment to retrieve the id, name, and Salary of the employees whose salaries greater than 4000 using an explicit cursor. Use the editor to format your answer 12345
Q: 4. Surveyed data results are shown below. Write a program using nested loop to calculate and display…
A: Initialize highest and lowest with first term and compare the other values and print final highest…
Q: Below is a table description and its data. The table is not in Third Normal Form (3NF). Explain why.…
A: Third normal form: A relation is said to be in third normal form only if the relation is already in…
Q: 1) Prompt the user for a title for data. Output the title. Ex: Enter a title for the data:…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: low = 0 high = len(list) = n mid = (low + high)//2 If high = 0, return None Else if low < high…
A: To implement the above-mentioned search function, a sorted list is needed. Initially, the list was…
Q: Doctor id Doctor_name Degree Join year Salary D550 Saleh Khalil DM 2001 1700 D551 Osama Ahmad DPM…
A: Given: To write a query to show the doctor name and degree in the following format; Example: Saleh…
Q: Create a program (using sQL strings) that willinsert one record, increase by 8 % the unit price of…
A: the answer is given below :
Q: The following procedure is intended to return the number of times the value val appears in the list…
A:
Q: 1) Prompt the user for a title for data. Output the title. Ex: Enter a title for the data:…
A: Data is nothing but a collection of facts, such as numbers, words, measurements, observations etc.
Q: Below is a table description and its data. The table is not in Third Normal Form (3NF). Explain why.…
A: A relation is said to be in the third normal form if only if the relation is in both first normal…
Q: USING MYSQL Create the DISPLAY_OWNER procedure which obtains the first name and last name of the…
A: Procedures in PL/SQL: Procedures are considered subprograms that are designed to manipulate the…
Q: (1) Prompt the user for a title for data. Output the title. Ex: Enter a title for the data: Number…
A: Answer 1:Source code#include <iostream>using namespace std;int main(){ string title;…
Q: write a function named test_square_root that prints a table like this:
A: you may have code to computer mysqrt. I'm assuming you have to implement mysqrt too. 1. function…
Q: (1) Prompt the user for a title for data. Output the title. Ex: Enter a title for the data: Number…
A: Answer:1.Program: #include <iostream>#include <string> using namespace std; int main(){…
Q: POSTGRESQL For this problem create a table called instructor_course_nums. Write a procedure that…
A: Brief Introduction: We have to create the instructor_course_num table using sql and the procedure…
Q: P Id LastName FirstName Address City Hansen Ola Timoteivn 10 Sandnes Sandnes Borgvn 23 Storgt 20…
A: 1. SELECT DISTINCT returns only unique values (without duplicates). DISTINCT operates on a single…
Q: The data in flat files has been provided: INVOICE TABLE INVOICE_NUM CUSTOMER_ID INVOICE_DATE…
A: Answer :-
Q: ISKier the SALEMAD NAME MUMERIC (8) WICHAR) wCHAR (16 DECMALD aSTOMERD MERC(S) CUT NAE CHR ( CITY…
A: The required query is given in step 2.
Q: Output the information in a formatted table. The title is right justified with a width of 33. Column…
A: To Check whether input is a valid number or not ,we verify it with regular expression [0-9] matches…
Q: What causes gaps in a sequence's values?
A: Please refer below for your reference: The cause of gaps in a sequence values is following:
Q: dataset in picture Use the given dataset to perform the following using python: Name of dataframe…
A: you can change variable name according to your requirement 2. #Name of dataframe (your…
Q: An auditor found an expense receipt for $208.94 without a name. Write a left table lookup function…
A: Note: Since your column name (A or B or C) is not visible we had provided solution in general . how…
Q: Retrieve the employee_id, First_name, Last Name as "Full Name", and net salary (salary + commission)…
A:
Q: Xn+1 = X + 0.25 Based on the relation above, write a code that calculates the values of Xn+1 for…
A: Program approach:- Import a package to standard I/O. Define a class. Define the main function.
Q: Create a function that will look up a US babyname based on the name and gender and return the count…
A: As no programming language is mentioned. So I am using Python to answer this question.
Q: Write a program to create a table for the result of the value Z=X/Y for the values of X from 1 to 2…
A: NOTE - I have used python programing language. Here I have created a loop to generate numbers from 1…
Q: A real Estate Company has in its poššession a long list of landlords and the rent cost of their two…
A:
Q: Suppose an application programmer was supposed to write a query select * from r natural left outer…
A: Consider the following values in the relation r. A B MARY 1 JOHN 2 SMITH 3 JONES 4…
Q: single output result (duplicates are allowed) Join the outpUE of the following two unrelated queries…
A: SQL stands for Structured Query Language. SQL commands are used to communicate with a database to…
Q: epartment DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo…
A: required: Function which takes input data (RollNo, Sname, Fname and DepartmentID) of student from…
Q: JFLAP: <untitied1 File Input Test View Convert Help Editor Multiple Run Table Text Size Input Result…
A: Step1:- Create a table for given NFA design Sr No. σ 0 1 1. ->q0 q2,q3 q1,q4 2. q1 q2 q1…
Q: Department DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo Sname…
A: Actually, given information: Department DepartmentID DName ContactNo 1 UIIT 0300-1234567 2 UIMS…
Q: Briefly explain the difference between a nested if statement and a lookup function using a lookup…
A: Given: Briefly explain the difference between a nested if statement and a lookup function using a…
Q: Construct the LR(0) parsing table for the given DFA. How many columns are there under the 'ACTION'…
A: LR(0) GRAMMER: The LR(0) grammer is a production of the grammar with exactly one dot on the right…
Q: 6. Suppose the following figure: hp lp cp X 10 20 30 40 Prev Data Next Prev Data Next Prev Data Nex…
A: Here is the explanation regarding doubly linked list:
Q: The image below shows an example of a COGAN X PROGRAM Ded JD ACADEMC ADVIBOR NONE ule Acam 12025…
A: Here, The image is given.
Q: Execute the following statements using MYSQL: 1. Create a Trigger "trigger_regno" for the salesman…
A: Answer: our instruction is answer the first three part from the first part and . I have given…
Q: What type of data is being stored into a list and identify the name of the list being processed.…
A: - We need to highlight the type of data being stored in the list and the list being processed.
Q: 17. Update the salary of the instructors by making it 50000 if it is less than 50000 and 90000 if it…
A: SQL query Information on integrity constraint
Q: Write a procedure in PL/I that gives information about undergraduate alumni for a university's…
A: This is a simple data processing routine which contains some interesting format specifications. In…
Q: Write a program to create a dictionary to store assets, liabilities and capital of a company. After…
A: assets = eval(input("Enter assets list : ")) #taking input from userliability = eval(input("Enter…
Q: The following code will #define N_ROW 10 #define N_COL 10 int row; double sum=0,…
A: Given the code if we have to execute choose which of the option is Correct .
Q: ere's a "users" table and "messages" table included in the image. Implement a SQL query to return…
A: The given problem is related to creating a database query where 2 given tables users and messages…
Q: Suppose you have monthly data for ten years stored in the column ‘timeframe’. They are stored as…
A: As we know, we have table data from past 10 years. the data stored in columb 'timeframe'. and data…
Q: In cell H2, get the unique Area values using UNIQUE(). In column I, use COUNTIF() to get the count…
A: We need to write excel commands for the given scenarios.
Q: Customer ID 1 2 3 4 5 6 7 8 9 10 Items of transaction {A,B,E,D} {A,C,D,E} {D,E,A} {E,B,A,C}…
A: please do upvote for my efforts ! answer:
Q: What is the output of the given anonymous block? Refer to the EMP table: EMP_ID DEPTID SALARY 101 10…
A: Here we have to find what's average salary for given query.
Q: a)+Listthe salesman id, rating and names of those 'salesmen who ʻgetrating from 3 to:5, sorted…
A: I am going to answer all the 3 parts and I am directly pasting queries here which you can directly…
Q: Q3) Plot the following functions on the same figure for x values from -n to r, (selecting spacing…
A:
Q: Write a procedure that will accept the same employee identification number, extract and display the…
A: Step 1:- Introduction:- To create the table, use the create command Create table…
Q: Execute the following statements using MYSQL: 1.Create a Trigger "trigger regno" for the salesman…
A: Answer 1) ---------------------------------(trigger) CREATE TRIGGER regno BEFORE INSERT ON salesman…
Step by step
Solved in 2 steps
- 123 4 5 6 7 8 A B Paper Type Name Letter Stock 65lb Cover Stock Premium White Copy Paper 2 Hole punch Letter Ultra-White Cardstock C Quantity 100 17 25 66 87 DE Discount 25% 5% 10% 15% 20% F Order Discounts G Minimum Quantity Discount 0 25 50 75 100 5% 10% 15% 20% 25% In the above spreadsheet, create a formula in cell D4 that uses the VLOOKUP function with the table array $F$4:$G$8. The formula will determine the applicable discount for each paper type order. You should be able to autofill this formula down through cells D4:D8.3. lookup_friends_heights This function takes a friends database (a list of dictionaries, like the previous functions) and a list of friends names, and it returns a list of heights for the specified friends. If a given friend's name is not present in the friends database, we put a None in the corresponding slot. We assume that there will be at most one friend with a given name in the list. You may want to use nested for-loops for this function. Sample calls should look like this. >>> lookup_friends_heights([{"name":"todd","height":170},{"name": "sarah", "height":165},{"name":"dweezil", "height":175}], ["dweezil", "sarah"]) [175, 165] >>> lookup_friends_heights([{"name": "todd","height":170},{"name": "sarah","height":165},{"name": "dweezil", "height":175}], %3D ["sarah", "elíza", "dweezil"]) [165, None, 175]3. lookup_friends_heights This function takes a friends database (a list of dictionaries, like the previous functions) and a list of friends names, and it returns a list of heights for the specified friends. If a given friend's name is not present in the friends database, we put a None in the corresponding slot. We assume that there will be at most one friend with a given name in the list. You may want to use nested for-loops for this function. Sample calls should look like this. >>> lookup_friends_heights([{"name":"todd","height":170},{"name": "sarah","height":165},{"name":"dweezil","height":175}], ["dweezil", "sarah"]) [175, 165] >>> lookup_friends_heights([{"name": "todd","height":170},{"name": "sarah","height":165},{"name": "dweezil", "height":175}], ["sarah", "elíza", "dweezil"]) [165, None, 175]
- 3. lookup_friends_heights This function takes a friends database (a list of dictionaries, like the previous functions) and a list of friends names, and it returns a list of heights for the specified friends. If a given friend's name is not present in the friends database, we put a None in the corresponding slot. We assume that there will be at most one friend with a given name in the list. You may want to use nested for-loops for this function. Sample calls should look like this. >>» lookup_friends_heights([{"name":"todd", "height":170},{"name":"sarah","height":165}, {"name":"dweezil","height":175}], ["dweezil", "sarah"]) [175, 165] >>> lookup_friends_heightsC[{"name":"todd","height":170},{"name":"sarah","height":165}, {"name":"dweezil","height":175}], ["sarah", "eliza", "dweezil"]) [165, None, 175] 4. class definition for Friend For the next version of the friends database (coming soon!), we want to use classes rather than dictionaries. Define a Friend class , where each Friend object…#The Iris Dataset import sklearn.datasetsimport matplotlib.pyplot as plt import numpy as np import scipy iris = sklearn.datasets.load_iris() Write a function that takes in an index i and prints out a verbose desciption of the species and measurements for data point i. For example:Data point 5 is of the species setosaIts sepal length (cm) is 5.4Its sepal width (cm) is 3.9Its petal length (cm) is 1.7Its petal width (cm) is 0.4Filename: runlength_decoder.py Starter code for data: hw4data.py Download hw4data.py Download hw4data.pyYou must provide a function named decode() that takes a list of RLE-encoded values as its single parameter, and returns a list containing the decoded values with the “runs” expanded. If we were to use Python annotations, the function signature would look similar to this:def decode(data : list) -> list: Run-length encoding (RLE) is a simple, “lossless” compression scheme in which “runs” of data. The same value in consecutive data elements are stored as a single occurrence of the data value, and a count of occurrences for the run. For example, using Python lists, the initial list: [‘P’,‘P’,‘P’,‘P’,‘P’,‘Y’,‘Y’,‘Y’,‘P’,‘G’,‘G’] would be encoded as: ['P', 5, 'Y', 3, ‘P’, 1, ‘G’, 2] So, instead of using 11 “units” of space (if we consider the space for a character/int 1 unit), we only use 8 “units”. In this small example, we don’t achieve much of a savings (and indeed the…
- An XHTML document that conforms to an XHTML specification is said to be valid. + + C D localhost8080/Form-Validation-Example/ Profile Employee First Name David Last Name waliams First Name nost be between 3 nd 25 charncters Lat Name must be between 3 and 25 characters Sex *Male OFemale Please select your gender Date of burth 2107/1992 Please unput date of buth javabycode@gmail.com Please input email USA Email County Please select your coustry Submt. Figure 1: Registration form (a) Develop XHTML document for all the form controls displayed in the same sequence as shown in Figure 1. (b) Once the applicant submit the application, your program must able to do data validation using JavaScript.Some rows of the STUGRADE table of a school are shown below: STU_CODE CLS_CODE GRADE YEAR 291 111 3.1 2010 938 101B 2.3 2011 931 M101 3.3 2040 291 M101 3.4 2018 190 111 2.0 2021 931 321 3.9 2003 Suppose that STU_CODE is the student code (foreign key) and CLS_CODE is the class code (foreign key). Which of the following computes the average for each year of the student with code 931? a. SELECT AVG(GRADE) FROM STUGRADE WHERE STU_CODE = 931 GROUP BY YEAR b. SELECT AVG(GRADE) FROM STUGRADE WHERE STU_CODE = 931. c. SELECT AVG(GRADE) FROM STUGRADE GROUP BY STU_CODE = 931 d. SELECT AVG(GRADE) FROM STUGRADE WHERE STU_CODE = 931 GROUP BY AVG(GRADE)in python Integer num_athletes is read from input, representing the number of athlete names to be read from input. List athletes_list contains the athlete names read from the remaining input. For each element in athletes_list, output: 'Athlete ' the element ' is at position ' the element's index in the list plus one
- Javascript Create a function named "getUser". This function needs to accept a "userID" parameter. Use Fetch with Async/Await to request the data for the requested user. The function should return JSON data.Create a c++ program that uses SQL Queue Containers. For the following program create a menu that uses commands: Add Next Previous Delete Order Size View list View the current order Use the SQL queue containers listed below: Each order will be put in the queue and will be called on a first come first-served basis. enQueue: Adds the order in the queue DeQueue: Deletes the order from the queue Peek: Returns the order that is top in the queue without removing it IsEmpty: checks do we have any orders in the queue Size: returns the number of orders that are in the queue List: returns the name of people that have placed an order in the queue While adding a new order in the queue, the program will be capable of collecting the following order information: Name for order Food description Total for food Tip givenFA2.4.1 Sequence to SQRT(2) (while loop based on convergence, scalar variables) My Solutions > Consider the sequence 3 17 defined by X1 = 1, x = (니 +2) 1or k= 2,3,4 N X-1 The sequence converges on v2 as N increases. The relative error, e, between the Nth term in the sequence and v2 is given by the formula: Note the vertical bars indicate an absolute value. Code has already been provided to define a function named sqrt2approx that accepts a single scalar input variable errorTol Add commands to use this input value for the error tolerance as the convergence criterion for the sequence. Use a while loop to generate sequence terms until the relative error, ɛ, is less than or equal to the value in the input tolerance variable errorTol. Assign values to the two output variables as follows. 1. Assign the value of the the last term generated to the variable lastTerm. 2. Count the number of terms needed to meet the tolerance and assign this value with 8-bit unsigned integer datatype to the…