Search:

Type: Posts; User: Niloc1

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,962

    Problems with child process creation

    I'm trying to modify the following code to:

    -display the process ID of the parent
    -fork 16 child processes from the parent, displaying their process
    IDs

    I know this is a simple problem, but...
  2. Replies
    1
    Views
    867

    *FILE program question

    I had to write a program that prompts a user for their name in lower case letters, transfers this input into a file, read the name in lower case letters from the file, transfer the name into upper...
  3. Replies
    1
    Views
    1,893

    problem with 2d array program.

    I'm having a problem with a 2d array program. I wrote the bulk of a program that takes the marks of three courses and provides an average. The output looks like this;

    Prgm Eng. Math Average

    0,0...
  4. Replies
    3
    Views
    11,125

    I know how to do it mathematically, but the code is eluding me...

    I have a good grasp of the mathematical concepts of finding a median, but I've been working for four days on this little bit of code. Nothing I do seems to work properly...

    Colin
  5. Replies
    3
    Views
    11,125

    Help with finding median with arrays.

    I've got a slight problem with the final part of a program I've been working on. It uses one-dimensional arrays, sorts the results in order, processes and prints the average of the numbers in the...
  6. Replies
    4
    Views
    914

    I've tried and tried, but I need help

    I've been working on this one for a while, and I can't figure out how to program the second function. The program calls for two user-defined functions: one that will print a line of *(stars) from one...
  7. Thanks again.

    Thanks again.
  8. Thanks!

    I've got it working, but I have one question. What is the += mean? I haven't seen that one yet.

    Colin
  9. Argh! Need help with program to get sum of integers between m and n inclusively

    The program will print the sum of the integers between m and n inclusive, where m and n are user input values.

    After writing the pseudocode, I went to work and have this as part of my source code:...
  10. Thanks people! The answer was simple but I just...

    Thanks people! The answer was simple but I just couldn't see it because I was thinking about it too much.

    Colin
  11. How to make program be able to tell whether a number is odd or even

    I'm writing a program in C and have encountered an obstacle. Here's my pseudocode:

    prompt for 1st number
    read 1st number
    ...
Results 1 to 11 of 11