Search:

Type: Posts; User: mdthejericho

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,079

    Thanks, I went with this: #include...

    Thanks, I went with this:


    #include <iostream>
    using namespace std;

    double dCalcTotal ();
    double PrintTotal (double dTotal);
    int iCredits;
  2. Replies
    4
    Views
    1,079

    Question with Functions

    I'm working on a program that needs to calculate the total cost of tuition.

    Enter amount of credits -- multiply credits by 100.00 -- add 20.00 as student activity fee -- print final number.
    ...
  3. Replies
    17
    Views
    2,011

    Thanks! I'm going to work on this for a bit and...

    Thanks! I'm going to work on this for a bit and let you know when I come up with.
  4. Replies
    17
    Views
    2,011

    Thanks, Adak. I took out the return part at the...

    Thanks, Adak. I took out the return part at the end of the main program and it worked. Previously, it was giving me all these numbers.

    Looks good. I need to compute the median, mean, and sum now!...
  5. Replies
    17
    Views
    2,011

    Here is my main program and I keep getting the...

    Here is my main program and I keep getting the value 0.00 when I try to play around with displaying the array:


    int main(void)

    {
    int n;


    n = fillArray (x, SIZE);
  6. Replies
    17
    Views
    2,011

    Could anyone point me in the right direction?

    Could anyone point me in the right direction?
  7. Replies
    17
    Views
    2,011

    Okay, the code compiles and I can type in...

    Okay, the code compiles and I can type in numbers, but how do I display all the values in the main program? That's what I was trying to do with those "print" commands that didn't make sense. Here'...
  8. Replies
    17
    Views
    2,011

    THAT WAS IT!!! Yes. Now it compiles and I can try...

    THAT WAS IT!!! Yes. Now it compiles and I can try to get the rest of it working. Eventually, I need to write functions that compute the mean and sum.
  9. Replies
    17
    Views
    2,011

    Thanks, guys! I'm glad to be here and plan on...

    Thanks, guys! I'm glad to be here and plan on learning a lot. I'm going to review all the responses and try some out. I'll post what I come up with.


    Also, the biggest error I got was a constant...
  10. Replies
    17
    Views
    2,011

    Problem With Array

    I'm working on this code for an assignment:


    #include <stdio.h>
    #include <math.h>

    #define SIZE = 100
    double x[SIZE];
    #define SENTINEL -1
Results 1 to 10 of 10