Explore BrainMass


CLS on heads or tails program

I also need to fill in the missing part of the code In MS-DOS, the command to clear the screen is cls; in UNIX, it is clear. Try the command so that you understand its effect. Modify the heads_or_tails program so that the screen is cleared at the beginning of the program. Use the function call system ("cls") or system ("clear")

Algorithms - Design and Analysis Fundamentals

A. Design a recursive algorithm whose input is a decimal integer and whose output is the binary representation of the input. b. Design a recursive algorithm that computes the reverse of the result in (a) - that is, converts a binary integer to its decimal equivalent.

Rows in a Query

If you had two tables, each with 3 items: Table_Mike: ITEM: Bread Milk Eggs Table_Kristy: ITEM: Cereal Butter Eggs And performed a UNION, how many rows would the resulting query have?


Probabilities 1.) A taxicab was involved in a fatal hit-and-run accident at night. Two cab companies, The Green and The Blue, operate in the city. You are told that: ? 85% of the cabs in the city are Green and 15% are Blue ? A witness identified the cab as Blue The court tested the reliability of the witness under the same c

Dijkstra?s Shortest Path Algorithm

Consider the following network. a) With the indicated link costs, use Dijkstra?s shortest path algorithm to compute the shortest path from E to all network nodes. Show how the algorithm works by computing a table. b) Eliminate node A, and redo the problem starting from node B. Please refer to the attachment to view the

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_


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


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