Explore BrainMass


Reverse Polish to Infix

Convert the following formulas from reverse Polish to infix: a. AB + C + D x b. AB/CD/ + c. ABCDE + x x / d. ABCDE + F/ + G - H/x +

The Direction of Passing Parameters in C

Let the function fun be defined as: int fun(int *k) { *k += 4; return 3 * (*k) - 1; } Suppose fun is used in a program as follows: void main() { int I = 10, j = 10, sum1, sum2; sum1 = (I / 2) + fun(&i); sum2 - fun(&j) + (j / 2); } What are the values of sum1 and sum2? a. If the operands in the ex

Relations - Determinants - Dependencies

Consider the following relation definition and sample data: EmployeeName PeojectID TaskID Phone TotalHours Don 100A B-1 12345 12 Don 100A P-1 12345 12 Don 200B B-1 1345 12 Don 200B P-1 12345 12 Pam 100A C-1 67890 26 Pam 200A C-1 67890 26 Pam 200D C-1 67890 26 PROJECT-HOURS (EmployeeName, ProjectID, Tas

Deadlock with Three Processes and Three Resources

We have 3 reusable resources. A,B,C. We have 3 process X,Y,Z, and each one of them uses periodically 2 of these 3 resources. Proc. X takes A, then B and then uses both A,B and then releases them. Proc. Y takes B, then C and then uses both B,C and then releases them. Proc. Z takes C, then A and then uses both C,A and then rel

Information Technology & Business Multiple Choice

1. Some global enterprises engage in joint research projects to broaden their contacts. What is another reason? A) to reduce risk B) to ease barriers to entry C) to increase costs D) to decrease certainty E) to increase competitive complexity 2. Political factors in choosing a foreign manufacturing site i

Forking of new processes

[A] What happens when you run the following piece of code: main(int argc, char ** argv) { for(;;) fork(); } [B] Given the following piece of code: main(int argc, char ** argv) { int child = fork(); int c = 5; if(child == 0) {

Excel 2003 Multiple Choice

1. The primary object in a MS Access database for collecting and storing data is a: a. record b. field c. file d. table e. database 2. Each individual entry in a database is stored as a: a. field b. table c. record d. file e. page 3. Records are stored in a database file as a: a. row b. column c. s

Coding Time in C

For a certain program, 1% of the code accounts for 50% of the execution time. Compare the following strategies with respect to programming time and execution time. Assume that it would take 100 man-months to write it in C, and that assembly code is 10 times harder to write and four times more efficient. Also assume it would ta

CSCI Excel 2003 Multiple Choice

1. Which of the following enables you to calculate the input value required to yield a desired outcome result? a. Tools, Goal seek b. Insert, Goal seek c. Format, Goal seek d. Tools, Options, Goal seek e. Data, Goal seek Save Answer 2. Which of the following belong in the Goal Seek dialog box? a. By changing cell

MATLAB (Must be coded for MATLAB)

I need a detailed script in order to show this works in MATLAB. I need number 18 or the circle problem, and thank-you so much for your help.

MATLAB (Must be coded for MATLAB)

I need a detailed script in order to show this works in MATLAB. This problem. All I need is the circled #3 problem, but only required to do the top a) and b) graphs.

Automata and Computability Language

Let C be a language. Prove that C turing-recognizable if a decidable language D exists such that C = {x | y (x,y  D)}.

Efficient C Program to Compute Letter Grades

Write an efficient C program using arrays, that reads a file consisting of students test scores in the range of 0-100, and outputs the Letter Grades and the number of students having got it, as per the following criteria: F : 0-19 D : 20-39 C : 40-59 B : 60-79 A : 80-100

Program to produce a sales report

I need to write a program to produce a sales report similar to the one below that indicates individual percentage contribution by each employee. The program must allow the user to enter a user id number and sales amount for up to 10 employees, but must allow fewer to be entered if desired, stopping input when the user enters the

C program using functions, switch statements, if statements

I have a hard time getting started. The program is to help a student learn multiplication. I have to use the rand function to produce two positive one-digit integers. The program should type a question such as: How much is 6 times 7? The student will then type the answer. The program will then check the answer . If it i

Inverse Least Squares with Matlab

See the attached files. The data for these calculations are: knowns.xyz contains the spectra of twenty known samples, concentrations.xyz contains the concentrations of a target chemical T in each of the twenty samples, and unknowns.xyz gives the spectra of fifteen more samples whose concentrations of T you will predict. Conc

C project

In this project, you will build a program used by an admissions office to help process applicants for a graduate degree in engineering. Your program will read several database files containing applicant information and other information relevant to the applications process. Based on an admissions "formula," you will compute a

What value will be printed for c and d before the loop is executed?

In the following code snippet, what value will be printed for c and d before the loop is executed? What value will be printed afterward? Why do you feel that this will occur? (Code needed to make this a complete program intentionally left out.) int c = 99; int a[5]; int d = 12; printf("c = %dn",c); printf("d = %dn",

Miracle C code analysis

In the following code, what will be printed when run in Miracle C? Why? (Code needed to make this a complete program intentionally left out.) int j; while (j < 3) { printf("The value of j = %d",j); j = j + 1; } printf("Done! ";);

Database Design Questions

1. What function must a file management system perform? a. Create the file structure. b. Add data to the file. c. Delete data from the file. d. All of the above e.None of the above 2. In a network database each set is composed of two record types: an owner record and a _________________ record. a. root b. chil

Do you think that the following C code will compile?

Do you think that the following C code will compile? Why or why not? What will be printed by it? char c; c = '1'; switch (c) { case 1 : printf("It is 1n"); break; case 2 : printf("It is 2n"); break; case 49: printf("It is 49n"); }

Evaluation of Conditional Expressions in the C language

What will be printed by the following code? int a = 3; if (a <= 5) if (a < 2) printf("a is less than 2n"); else printf("a is greater than 5n"); printf("done"); Why does this occur? What if the initial value assigned to a is 13, not 3? What happens with this code and why does this occur? What does this tell

Creating a checkers board game in C.

In this project, you will build a program that allows two human players to play the game of checkers. Your program will graphically maintain the state of the game board and prompt the players for moves on the standard input/output. Your program will also know the rules of checkers, and will check the validity of moves to maintai