Explore BrainMass

Explore BrainMass

    C

    BrainMass Solutions Available for Instant Download

    Writing a recursive algorithm

    The question of how many ways a committee of 4 people can be selected from a group of 10 is known as a combination. The notation in general for counting the number of ways of selecting r items from a group of n is C(n,r) = n! / r!(n-r)! Also, given that 0! = 1 by definition, we can show that C(n,0) = 1 = C(n,n) Also, C(n,r

    Programming: Gantt Chart

    Assume you have a project with seven activities Labeled A-G, as shown below. Derive the earliest completion time (or early finish time - EF), the latest completion time (or late finish - LF) and slack for each of the following tasks (begin at time =0). Which tasks are on the critical path? Draw a Gantt Chart for these tasks

    C-Sharp project to store information in electronic black book

    1. Create a C-Sharp project that stores personal information for a little electronic "black book". The fields in the file should include name, phone number, pager number, cell phone number, voice mail number, and e-mail address. Use text boxes to enter the data. 2. Create another C-Sharp project to load the names into a list

    Dijkstra's Algorithm

    Use Dijkstra's Algorithm to solve the attached question. Please provide a step by step explanation of your findings so that I may better understand this concept.

    How many elementary operations are used in the following algorithm?

    1) Use the method of Iteration to find a formula expressing S(n) as a function of n for the given recurrence relation and initial condition: S(n) = S(n-1) - 3, S(0)=5. 2) How many elementary operations are used in the following algorithm? The elementary operations are comparison operations (such as > and < ) and mathematical

    C++ secret message decoder program

    For each the following programs, ensure you use the file names identified, comment in an appropriate manner, format your code appropriately (vertical and horizontal whitespace... aka. blank lines and tabs), and use good/appropriate variable names. You should expect the user to always type appropriate input (e.g., not words when

    C Sharp programming keywords

    Explain, using examples, the following C Sharp programming keywords i. this ii. public iii. interface iv. namespace v. using Please see attachment file for more details

    Write a C program that displays the content of array passed as an argument.

    Write a C program that has a declaration in main function to store the following numbers into an array named channels: 2, 4, 5, 7, 9, 11, 13. There should be a function call to display function that accepts the channels as an argument named channels and then displays the numbers using the pointer notation *(channels + i). Mod

    CBC mode

    4)The cipher block chaining (CBC) mode has the property that it recovers from errors in cipher text blocks. Show that if an error occurs in the transmission of a block , but all the other blocks are transmitted correctly, then this affects only two blocks for decryption, which two blocks?

    C programming of a linked list

    Write a C program that initially presents a menu of choices for the user. The menu should consist of the following choices: Create an initial linked list of students and grades. Insert a new student into the linked list. Modify an existing student in the linked list. Delete an existing student from the linked list.

    Program that accepts input from keyboard a floating point number

    Write a C program that accepts as input from the keyboard a floating point number, an integer, and a character. Each of these inputs should be preceded by a prompt and stored using individual variable names. Have your program call a function that assembles the input data into a single string. Display the assembled string using t

    Determining Minimum and Shortest Paths: Example Problem

    Use the accompanying graph to determine minimum and shortest paths. For minimum path, give the total weight. For the shortest path, give the total path length. In each case, list a path providing the minimum value. See attached graph. (a). Shortest-path distance from C to D (b). Shortest-path distance from E to B (c).

    Graphical Characteristics

    Please see attached file. (a). List the vertices in graph A in the reverse order of their visit (finish) time for a depth-first search that starts at vertex A. Repeat the process, and produce a different list by assuming that the scan accesses neighbors in a different order. (b). List the vertices in graph B in the reverse

    Important information about C Programming Help

    It will be necessary for you to access Service Request: ¿SR-kf-008, Tax Calculator¿ from the Virtual Organizations portal. Complete Change Request #1. Insert comments in the program to document the program internally. Attach a design flow chart to a hard copy or email of the source code of the program. Service Request SR-kf

    Entering a condition equation in Excel

    In sheet number 4 in cell #I#3 I want to enter this equation: If the selected cell in $E$3 is Tloaders or Wloaders, then multiply $G$3 by $A$3. If the selected cell in $E$3 is Excavators, then multiply $G$3 by $C$3. Solution is attached in the Excel Sheet as well as explained in text document

    Explain the C code and rearrange part of it

    I have two questions about the attached code and then a slight modification needs to be made to the code. 1. Please explain exactly what this code is doing as it is written right now. 2. Where is the code following (textually) the "switch" block executed - in the parent process or in the child process? The first instructio

    Data Types Decimal Equivalents

    Q1.Write the decimal equivalents for these IEEE floating point numbers a. 0 10000000 00000000000000000000000 b. 1 10000011 00010000000000000000000 c. 0 11111111 00000000000000000000000 d. 1 10000000 10010000000000000000000 Q2. Add the following unsigned binary numbers then express the answer in decimal a. 01 + 101

    Write a C program that synchronizes a parent and a child process.

    Write a C program that synchronizes a parent and a child process in such a way that the output of the program will be: Child process, iteration: 1 Parent process, iteration: 1 Child process, iteration: 2 Parent process, iteration: 2 Child process, iteration: 3 Parent process, iteration: 3 Child process, iteration: 4 Pa

    Error in C Programming Code

    Below is the error message when trying to compile the code. In function `float totalSale(float, float, float)': 83 redeclaration of `float purchaseAmount' 83 `float purchaseAmount' previously declared here

    Write a C Program to Capitalize the Input File Name

    Have a C program prompt the user for a filename to open. Change every alphabetic character in the file name to a capital letter. Numbers and special characters should not be changed. Print the output to the screen.

    Topologies LAN

    Read questions 11, 12, and 13 Answer the multiple choice question for each, then explain your answer. Create a visual representation of your answer to each question by copying and pasting the shapes provided in Appendix D (such as a bus, ring, star, or mesh) into a Microsoft® Word document. Note that you will need to use

    In codeblocks (C not C++)

    Write a program that will read a list of student last names and three integer value scores in the range 0-100. The names and scores should be stored in an array of the following data structures: char[] - name int[] - three test scores double - student average After reading in the data, the program should calculate th

    Modify C program for loops

    Attached is my program. I have built it to ask the user which store location and amount. I am needing, I think, a loop, but unsure how to go about doing it. For example, The user enters $300 and selects store #1. The totals display for the user. Now I need to do this two more times (user selects Store #3 or store #2).

    You are developing a database of measured meteorological data for use in weather and climate research. Write a C program that inputs a file of site data records and determines the site with the greatest variation in temperature, and the site with the highest average wind speed for all the days in the file.

    You are developing a database of measured meteorological data for use in weather and climate research. Define a structure type measured_data_t with components site_id_num (a four-digit integer), wind_speed, day_of_month, and temperature. Each site measures its data daily, at noon local time. Write a C program that inputs a

    Manchester / Differential Manchester diagrams

    a) Draw a diagram of the signal at point C for the first three characters "NET" encoded as required in problem 3a using NRZ-I. b) Repeat Part A using Manchester encoding. c) Repeat Part A again using Differential Manchester.

    C program accepting keyboard inputs

    Write a C program that accepts as input from the keyboard a floating point number, an integer, and a character. Each of these inputs should be preceded by a prompt and stored using individual variable names. Have your program call a function that assembles the input data into a single string. Display the assembled string using t