Explore BrainMass
Share

Explore BrainMass

    C

    C++

    Write a program that asks students how many test they have taken so far in a course. The program should accept any number from 1 to 5, but reprompt the user if the entry is invalid. The user can then enter the appropriate number of test scores, which you store in an array. Pass the number of tests and the array of test scores

    Project Network and Slack Times

    Review the attached document. Problem: - Draw the project network based on the information given in the attached document. - Compute the early, late and slack times for the project network. - Which activities on the critical path have only the start or finish of the activity on the critical path?

    Files and Streams

    Information about computer terminals in a computer network is maintained in a file. The terminals are numbered 1 through 100, and information about the nth terminal is stored in the nth line of the file. This information consists of a terminal type (string), the building in which it is located (string), the transmission rate (

    Programming Problems (Selection)

    Write a function convertLength() that receives a real value and two strings inUnits and outUnits, then converts the value given in inUnits to the equivalent metric value in outUnits and displays this value. The function should carry out the following conversions: inUnits outUnits I c

    Using Classes is demonstrated.

    Revernd Zeller developed a formula for computing the day of the week on which a given date fell or will fall. Suppose that we let a, b, c, and d be integers defined as follows: a = the number of a month of the year, with March = 1, April = 2, and so on, with January and February being counted as months 11 and 12 of the preceed

    How to calculate the area and volume of a Cylinder using C

    Write a library Cylinder containing functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder. For a cylinder of radius r and height h, these can be calculated using: Total Surface Area = 2 x Pi r(r + h) Lateral Surface Area = 2 x Pi rh Volume = Pi r squared h Write a drive

    How to write C/C++ library functions for Time conversions?

    Construct a library Time that contains the time-conversion functions (given a number of seconds, returns the equivalent number of minutes; given the number of minutes, returns the equivalent number of hours; given the number of hours, returns the equivalent number of days; given the number of seconds, returns the equivalent numb

    Big O Problem is examined.

    Show that if: T(1) = a T(n) = T(n-1) + n^k, for n > 1 then T(n) is O(n^(k+1)). You may assume k>=0. Also, show that this is the tightest simple big-oh upper bound, that is, that T(n) is not O(n^m) if m < k+1. Hint: Expand T(n) in terms of T(n-i), for i = 1,2,..., to get the upper bound. For the lower bound, show that

    Example of a Flow Chart and Written Specification of a C Program

    I need an example of a flow chart and specification sheet of a C program. Here is an example of a C program: /*Currency conversion.*/ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <system.h> main () { /* Data Declaration statements*/ int Curr_type; float For_curr; float Equ_curr; pri

    developing a game program in c

    //Game specification is to write a program that plays a variant of the solitaire //game known as Klondike. The goal is to construct four sequences of cards. The //foundation piles, each sequence is formed by putting cards of the same suit //into the same pile ascending order beginning with the ace. The setup of the game

    Long integer linked list add function

    I am working on program assignment in structures (c language)after entering the required integers the add function will not compile.I receive error messages I am using a Microsoft c, c++ 6.0 compiler. The help required is to provide a working add function in c. Hopefully after that I will be be able to write similar functions to

    Definition of small O-notation

    See the attach file for problem. Please read R as R+ Question : Prove that ! ( ) n n ∈ο n by using the definition of the small o- notation. Definition: Let : N →R∪{0}, where ∫ N is the set of all non-negative integers: R is the set of all positive real numbers. f 0 0 o( f )={ g : N →R ∪{0}|∀c∈R,∃n

    C programming: parameter passing

    Need a C program that has a declaration in main () to store the following numbers into an array named rates:2.3,3.3,4.4,5.5,6.0. There should be a function call to show () that accepts rates in a parameter named rates and then displays the numbers using the pointer notation *(rates + i).

    C Code

    C programming: I need to compute an arithmetic mean(average), median, and mode for up to 50 test scores. The data are contained in a text file. The program should start with a function to read the data file and fill the array. There may be fewer than 50 scores. This will require that the read function retrun the index for the la

    C programming code

    C programming: I need to compute an arithmetic mean(average), median, and mode for up to 50 test scores. The data are contained in a text file. The program should start with a function to read the data file and fill the array. There may be fewer than 50 scores. This will require that the read function retrun the index for the

    C Programming

    I need to create a text file and then read it from my C program. I haven't a clue how to get started. The examples in my book do not work or either I'm doing something wrong.