Explore BrainMass


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.

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

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

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

Miracle C program Calculator + Flow Chart

1. What is the input of the problem? (Purchase Total of $125.00 for each store) ? Del Mar - 7.25% ? Encinitas - 7.5% ? La Jolla - 7.75% _____________________________________________________________________ 2. What is the output of the problem? The sales tax amount for each store of the 125.00 Purchase for each. ___

Network security questions

There are eight network security questions. I have answered the questions however, I am unclear if I am correct. Please review and if I am wrong, please provide the correct answer along with your explanation. 1. Which of the following pieces of information can be found in the IP header? a. Source address of the IP pac

C Programming Grocery Store Checkout System using Files

Please help with the following as it relates to the existing code (separate attachment) Instead of getting the product names and prices from the standard input, enhance the program to read it from a file instead. Do not hard-code the filename within the program; ask the user to enter it instead. Also, enhance the program to s

C Program that Prints the Days of a Month

Write a c program that prints the days of a month in "calender format." Th program should prompt the user for the day of the week that begins the month and the total numbers of days in the month."(days of the week should be entered as int from 0 to 6.(0 = Sunday 1 Monday 2 Tues. ... to Sat.))below is a sample output Enter a d

Miracle C program on a Grocery Shop

I need to modify the existing code (separate attachment) to be more orderly in its output appearance. Basically so that the displays are similar to what is below in the samples. Right now, I get this error when attempting to compile in Miracle C: c:program filesmiracle cnewweek4.c: line 18: wrong # args in function call '{

An Iterative GCD Program and Testing in C

Write program to test function then write and test an equivalent iterative function int gcd (int a, int b) { int r; if ((r=a%b)==0) return b else return gcd(b,r); }

C program for computing and printing the area and volume

Write a program that computes and prints the area and volume of a sphere given its radius. (write the program in C, not C++ and create a simple program (this is an introductory exercise in the textbook)- I want to compare it to the program I came up with) Use extensive comments so that I can fully understand what your co

C Programming Help

C Programming Problem. I need help writing a program in C that meets the following criteria: 1) There are 5 products for sale at a grocery store ( I want to use cucumbers, lettuce, grapes, apples and bananas) 2) The five products are all sold by weight (pounds). 3) Customers need to be prompted to enter the price (per pound)

Help With C Programming

C programming. Let us consider a simple grocery store with just 5 products. Assume that all items are sold by weight. Select 5 vegetables to use in the program. Prompt the user to enter the price (i.e. price per pound) for each of the vegetables. A customer walks-in with an unusual request: He wants to know the maximum amount o

Query on data dictionary views (classmate schema) in oracle

2. Write a query, based on data dictionary views, reporting a table's name, number of rows, average row length, column name (in order they appear in the table), the average column length, and the high and low values found in each column (the values are in hexadecimal format). When you are logged on as CLASSMATE, run the query. T

Multiple Choice, nine part question involving memory

Use the following to answer questions 1-1 and 1-2. Given the following memory values and a one-address machine with an accumulator, what values do the following instructions load into the accumulator? Word 20 contains 40. Word 30 contains 50. Word 40 contains 60. Word 60 contains 20. Register 1 contains 10. Register

Multiple choice, four part question involving binary computing

1-1 Binary code "000000000000000111111111100" represents A. 409910 B. 409310 C. 409410 D. 409210 E. none of the above is correct. 1-2 What is the 2's complement of F ? Wherein F = 2's complement of (2's complement of "11111101000001"): A. "100011110111110" B. "110110001000001" C. "0111000010000

Problem set

(See attached file for full problem description) --- 1. Analyze the following pseudocode. Whats the ansr's final value ? Num = 8 ansr =0 if num > 5 then if num < 20 then ansr =1 else ansr = 2 endif endif . A) 0 B) 1 C) 2 D) 7 2. Which piece of pseudocode represent the checking the loop condition A) rep = 1 (B) rep=r

Some exercises with Arrays

Arrays are collections of elements of the same type. The elements of the array can be accessed using their position (index) in the array. Arrays may have several dimensions: they can be similar to lists (1-dimension), matrices (2-dimensions), cubes (3-dimensions) etc. 1. The first exercise involves a 1-dimensional array of

Select (Medians and Order statistics)

Please review problem and verify the solution. problem --------- In the algorithm SELECT, the input elements are divided into groups of 5. Will the algorithm work in linear time if they are divided into groups of 7? Argue that SELECT does not run in linear time if groups of 3 are used. solution --------- Use groups o

Which of B, C, D can A reach?

Please see attached file for graph. Here is the question: A site is shown in Figure 4.57. R1 and R2 are routers; R2 connects to the outside world. Individual LANs are Ethernets. RB is a bridge router; it routes traffic addressed to it and acts as a bridge for other traffic. Subnetting is used inside the site; ARP is used on e