Web development and programming
191828 questions • Page 269 / 3837
1. Write a recursive method that counts the number of nonoverlapping occurrences
1. Write a recursive method that counts the number of nonoverlapping occurrences of a substring in a given string 2. You have been offered a one month job that pays as follows: On…
1. Write a regular expression for each of the following languages: (a) Given an
1. Write a regular expression for each of the following languages: (a) Given an alphabet = {0, 1}, L is the set of all strings of alternating pairs of 0s and pairs of 1s. (b) Give…
1. Write a regular expression to grep the file /courses/cop3353m-w/quiz2/message
1. Write a regular expression to grep the file /courses/cop3353m-w/quiz2/messages.out Match all lines that have the word "Connect" in it but not any other series of letters that i…
1. Write a relational algebra query to return all rows (tuples) of Vehicle table
1. Write a relational algebra query to return all rows (tuples) of Vehicle table in which Ma = ‘Suzuki’ 2. Write a relational algebra query to return only the Ma and Mo of Vehicle…
1. Write a routine that forks. The child asks for input and the parent returns t
1. Write a routine that forks. The child asks for input and the parent returns the input string in upper case. Use a pipe to communicate among parent and child. 2. Write two main …
1. Write a routine that forks. The child asks for input and the parent returns t
1. Write a routine that forks. The child asks for input and the parent returns the input string in upper case. Use a pipe to communicate among parent and child. 2. Write two main …
1. Write a routine that forks. The child asks for input and the parent returns t
1. Write a routine that forks. The child asks for input and the parent returns the input string in upper case. Use a pipe to communicate among parent and child. 3. Write a socket …
1. Write a script in Bourne Shell that prints out the following table. Use a whi
1. Write a script in Bourne Shell that prints out the following table. Use a while loop to do so. can be used with echo to create a tab space. 2. Write a Bourne Shell script that …
1. Write a script in Bourne shell that presents a user with a menu as follows: A
1. Write a script in Bourne shell that presents a user with a menu as follows: Add the numbers (enter a or A) Subtract the numbers (enter s or S) Multiply the numbers (enter m or …
1. Write a script that adds an index to the MyGuitarShop database for the zip co
1. Write a script that adds an index to the MyGuitarShop database for the zip code field in the Customers table. 2. Write a script that implements the following design in a databa…
1. Write a script that creates a user-defined database role named OrderEntry in
1. Write a script that creates a user-defined database role named OrderEntry in the MyGuitarShop database. Give INSERT and UPDATE permission to the new role for the Orders an…
1. Write a script that creates a user-defined database role named PaymentEntry i
1. Write a script that creates a user-defined database role named PaymentEntry in the AP database. Give UPDATE permission to the new role for the Invoices table, UPDATE and INSERT…
1. Write a script that creates and calls a stored procedure named spInsertCatego
1. Write a script that creates and calls a stored procedure named spInsertCategory. First, code a statement that creates a procedure that adds a new row to the Categories table. T…
1. Write a script that generates two random numbers between 1 and 10 and if the
1. Write a script that generates two random numbers between 1 and 10 and if the numbers match then prints “Match Found” else prints “Different Numbers”. You can use $RANDOM to gen…
1. Write a script that generates two random numbers between 1 and 10 and if the
1. Write a script that generates two random numbers between 1 and 10 and if the numbers match then prints “Match Found” else prints “Different Numbers”. You can use $RANDOM to gen…
1. Write a script that implements the following design: users downloads product
1. Write a script that implements the following design: users downloads product product id product name user id email address first name last name download id user id download dat…
1. Write a script that includes these statements coded as a transaction: INSERT
1. Write a script that includes these statements coded as a transaction: INSERT Orders VALUES (3, GETDATE(), '10.00', '0.00', NULL, 4, 'American Express', '378282246310005', …
1. Write a script that inserts a new row into the Customers table for each custo
1. Write a script that inserts a new row into the Customers table for each customer stored in the NewCustomers.xml file below. <NewCustomers> <Customer EmailAddress=…
1. Write a script to declare and use a cursor for the following SELECT statement
1. Write a script to declare and use a cursor for the following SELECT statement. Use a WHILE loop to fetch each row in the result set. Omit the INTO clause to fetch directly to t…
1. Write a script to help users calculate compressed file size. Prompt the user
1. Write a script to help users calculate compressed file size. Prompt the user to enter the original size of a file (in bytes) from the keyboard. Then use the following rules for…
1. Write a script “ between ” to display the files whose sizes are in a specific
1. Write a script “between” to display the files whose sizes are in a specific range. This script takes two arguments as the lower bound and upper bound of the file size, and prin…
1. Write a section of code that attempts to open file foo.txt for input and, if
1. Write a section of code that attempts to open file foo.txt for input and, if the file does not exist, generates an error message and aborts the program 2. What could happen if …
1. Write a segment of C++ code for an array declaration that is named myNums of
1. Write a segment of C++ code for an array declaration that is named myNums of integer data type that has 15 elements. Write a for loop which initializes every element of myNums …
1. Write a select statement that returns the customer_id, and one column from th
1. Write a select statement that returns the customer_id, and one column from the customers table named full_name that combines the last name, and the first name of each customer …
1. Write a select statement to display the total amount invoiced for each Accoun
1. Write a select statement to display the total amount invoiced for each AccountNo using the WITH ROLLUP operator to include a row showing the grand total. 2. Display only the to…
1. Write a sequence of instructions that would implement the following IF-THEN-E
1. Write a sequence of instructions that would implement the following IF-THEN-ELSE structure. IF (9000H) is even THEN (9001H) 22H ELSE (9001H) 99H 2. You are given an array of 50…
1. Write a sequence of instructions that would implement the following IF-THEN-E
1. Write a sequence of instructions that would implement the following IF-THEN-ELSE structure. IF (9000H) is even THEN (9001H) 22H ELSE (9001H) 99H 2. You are given an array of 50…
1. Write a set of instructions which will prompt the user and input 3 int values
1. Write a set of instructions which will prompt the user and input 3 int values, compute the average and output the result as a double, formatted so that exactly 1 digit appears …
1. Write a shell script that displays the following menu items, prompt the user
1. Write a shell script that displays the following menu items, prompt the user to enter a selection, and then executes the command associated with that menu item. If required, pr…
1. Write a short note on struct and union data types. Give examples and mention
1. Write a short note on struct and union data types. Give examples and mention their usage. 2. Consider the following C code fragment segment. Answer the following questions stru…
1. Write a short note on struct and union data types. Give examples and mention
1. Write a short note on struct and union data types. Give examples and mention their usage. 2. Consider the following C code fragment segment. Answer the following questions stru…
1. Write a specification file for the Period class that has a private field that
1. Write a specification file for the Period class that has a private field that is an enumeration type, representing the names of the periods. It should have functions that : o r…
1. Write a specification file for the Period class that has a private field that
1. Write a specification file for the Period class that has a private field that is an enumeration type, representing the names of the periods. It should have functions that : o r…
1. Write a statement to multiply diameter by 3.14159 and assign the result to ci
1. Write a statement to multiply diameter by 3.14159 and assign the result to circumference. (The variables have already been declared and diameter has already been initialized.) …
1. Write a static method that takes an array of integers as a parameter and retu
1. Write a static method that takes an array of integers as a parameter and returns true if the count of strictly positive values is larger than the count of strictly negative val…
1. Write a static method that takes an array of integers as a parameter and retu
1. Write a static method that takes an array of integers as a parameter and returns true if the count of strictly positive values is larger than the count of strictly negative val…
1. Write a subroutine to do the following: The inputs to the subroutine are a po
1. Write a subroutine to do the following: The inputs to the subroutine are a pointer in register Y and an 8-bit number in register B. Starting at the address in register Y, clear…
1. Write a void function that will populate an array by prompting the user for v
1. Write a void function that will populate an array by prompting the user for values, and storing them in the array. 2. Write an int function that will find the minimum value in …
1. Write a void function this passed three integers by reference. The function s
1. Write a void function this passed three integers by reference. The function should rearrange the parameter values so that the first parameter will get the smallest value; the s…
1. Write an ALTER TABLE statement that adds two new check constraints to the Inv
1. Write an ALTER TABLE statement that adds two new check constraints to the Invoices table of the AP schema. The first should allow (1) payment_date to be null only if payment_to…
1. Write an Arduino program that controls a DC MotorMust include a function that
1. Write an Arduino program that controls a DC MotorMust include a function that sets the direction of the motor and speed Input Arguments: int Direction, int Speed Program should…
1. Write an HTML document that looks similar to Investment Calculatc x (--> 9 fi
1. Write an HTML document that looks similar to Investment Calculatc x (--> 9 file:///C/Users/rab29/Dropbox/book QtE Investment Calculator Amount invested (principal) Annual ra…
1. Write an IF statement that prints the message “ The number is valid ” if the
1. Write an IF statement that prints the message “The number is valid” if the variable temperature is within the range -50 through 150 (inclusive) 2. Convert the following IF – EL…
1. Write an INSERT statement that adds this row to the invoices table: invoice_i
1. Write an INSERT statement that adds this row to the invoices table: invoice_id --> The next id in sequence ( find out what it should be ) which is 115 vendor_id --> 32 i…
1. Write an LC-3 assembly language program that counts the number of 1s in the v
1. Write an LC-3 assembly language program that counts the number of 1s in the value stored in R0 and stores the result in R1. For example, if R0 contains 0001001101110000, then R…
1. Write an SQL command to display the order number, customer number, order date
1. Write an SQL command to display the order number, customer number, order date, and items ordered for order number 1001. 2. Write an SQL command to display each item ordered for…
1. Write an SQL query that returns the bookid and title of books that have 3 or
1. Write an SQL query that returns the bookid and title of books that have 3 or more available copies. 2. Write an SQL query which returns course id and title of the course(s) tha…
1. Write an SQL query that returns the facultyid and name of any faculty that do
1. Write an SQL query that returns the facultyid and name of any faculty that does not teach any course but has a salary that is higher than 80,000. 2. Write an SQL query that ret…
1. Write an SQL query that returns the studentid and name of students who have c
1. Write an SQL query that returns the studentid and name of students who have checked out books that are worth more than $100 in total. 2. Write an SQL query that returns the stu…
1. Write an SQL query that returns the studentid and name of students who have o
1. Write an SQL query that returns the studentid and name of students who have overdue books (assume a book is due after 30 days), use construct CURRENT_DATE to access the current…
Subject
Web development and programming
Use Browse or pick another subject.