Share
Explore BrainMass

Algorithms

Output for values

4. Consider the following program in Pascal with static scope: program main (input, output); var i, j, k, m: integer; procedure Q (var i: integer; m: integer); begin i := j + 1; m := k + 1; writeln (i, j, k, m); end procedure P(var i: integer; j: integer); var k: integer; procedure S(i: integer) begin i := k + 3; m

Primary and Foreign Keys

Please tell me which one is primary key and which one is foreign key in each situation (1-1, 1-many, many-1). In () are keys but I need to know which one is primary and foreign keys. If there's no foreign keys, pls. give one foreign key each for the situation. Thank you in advance. 1. One-to-One: Man (man_name, man_age, man_

Threads

C program that creates three pthreads, each of which executes a different slave process. The first slave prompts the user for two integers x and n and the uses a loop to calculate xn and outputs the result. The second slave outputs the phrase "Hello from slave 2" ten times inside the nested for loops For(I=0; i<10

DB: Using Word, Travel Tips 3

You will use the Travel Tips 3 document and add a table, a bulleted list, and a page border. To view these instructions while you work in Word, do either of the following: Print this page of instructions. Move back and forth between this page and Word by clicking each application's button on the Windows taskbar. Open the

Testcase Creation (Example: Vending Machine)

Derive test cases from the following informal specifications for a simple vending machine: Program CoinBox accepts quarters and distributes coffee. Users may: - insert a quarter - ask for a cup of coffee - ask for quarters to be returned Coffee costs 2 quarters. The test cases should cover each transition of the fin

Trigger in Oracle

Trigger for comparing an employee's salary with that his or her supervisor. Explain why this Trigger is not work. CREATE TRIGGER INFORM_SUPERVISOR1 BEFORE INSERT OR UPDATE OF SALARY, SUPERVISOR_SSN ON EMPLOYEE FOR EACH ROW WHEN (NEW.SALARY > (SELECT SALARY FROM EMPLOYEE WHERE SSN=NEW.SUPERVISOR_SSN))

Bugs in program

The following program tries to copy words from the address in register $a0 to the address in register $a1, counting the number of words copied in register $v0. The program stops copying when it finds a word equal to 0. You do not have to preserve the contents of registers $v1, $a0, and $a1. This terminating word should be copie

8080/8085 family

Write an assembly program for the following 8080/8085 family. Include comments. 1. Set the stack pointer address to 4B24h and then call a subroutine. This subroutine will give you a delay of your choice. Start the program at address 1500h. 2. Add the unsigned binary numbers 67h and 23h. 3. Load A with 10011001 and mas

Microsoft excel

Select the worksheet function that will return the largest number in a specified range of cells, the function should ignore text and logical values. Select the worksheet function that will return the smallest number (including numbers, logical values, and text,) in a specified range of cells These are the functions to pic

ASP Page

Write an ASP page that has a form taking a user's name as input. Store this name in a permanent cookie that expires in 4 days, and whenever the page is opened again, default the name field to the cookie's content.

Variable, prompts, and output of Test Score

This program completes a Loop Until Counter = 10 START Declare Counter, Num as integer Write "Please enter a number" INPUT Num FOR Counter = 0 Step 1 To 10 Write Num * Counter End FOR Write "Enter your Test Score and Your Grade will be Displayed" FOR STOP 1. List variables. Declare Counter, Num as integer 2.

Communication Networks Problem

1) SONET ring with four stations. Suppose tributaries established between each pair of stations to produce logical topology. Find capacity required in each hop of SONET ring in following three cases assuming first ring is unidirectional and then that ring is bidirectional a) Traffic between each pair of stations is STS-1 2

Converting hexadecimal numbers

1. Consider the following hexadecimal number C0A00000 H a. Assuming this number was read as a real number (IEEE Floating Point Standard 754), what would be equivalent decimal? Please show all the steps that you used to convert the number. b. If this number were to be interpreted as a signed integer, what would be its decimal

Communication Networks

Hi I'm stuck on 2 questions. I've looked through the examples in the text book, but cannot apply them to the questions. Any assistance on how to approach these questions would be appreciated. 1) Analog tv signal is low-pass signal with bandwidth of 4 MHz. What bit rate required if we quantize signal and require SNR of 6

Write a object oriented program to test a Triangle given its sides

Write a program that reads three real numbers for the three sides of a triangle., assigns the appropriate boolean value to the following boolean variables, and displays the associated values. Triangle: true if the real numbers can represent lengths of the sides of a triangle (the sum of any two of the numbrs must be greater

Nesting Tables

Go to the Web and find a good example of a nesting table, write the URL for the web page at the beginning of your response so I can locate it. Briefly describe why you believe this is a good example, most argue against using nesting tables, does your example convince you otherwise? Explain your rationale.

Operations and Expressions

Write a program that reads three real numbers, assigns the appropriate boolean value to the following boolean variables, and displays the associated values. Triangel: true if the real numbers can represent lengths of the sides of a triangle (the sum of any two of the numbrs must be greater than the third); false otherwise.

User Defined Functions

Write a value-returning function, isVowel, that returns the value true if a given character is a vowel and otherwise returns false. This is what I have so far with no luck compiling the program. Any help would be greatly appreciated. #include <iostream> using namespace std; char isVowel(); int main() { char c

Please complete the following

Within the zip folder you'll find a line in the "Process Action" section of code (Look near the very bottom) the line reads something like: MSGBOX(strDisplayResult) this needs to be changed to: 1) before displaying the results, add a question at the end of the string (strDisplayResult) that reads "Do you wish to q

Order of Complexity

The algorithm has the order of complexity shown, and takes the indicated time for a problem of size 50.0. Fill in the amount of time for the algorithm will take for the other sizes shown. Function Size 50 Size 51 Size 60 O(N ^ N) 1 second ______ ________