Search:

Type: Posts; User: mc74

Search: Search took 0.01 seconds.

  1. Thread: Date class.

    by mc74
    Replies
    13
    Views
    1,449

    Thanks :D

    Thanks :D
  2. Thread: Date class.

    by mc74
    Replies
    13
    Views
    1,449

    The assignment is for the default constructor to...

    The assignment is for the default constructor to automatically insert the date "01/01/2013" if no other date in input.
  3. Thread: Date class.

    by mc74
    Replies
    13
    Views
    1,449

    Mmm...no value in the first piece. Bear with...

    Mmm...no value in the first piece.

    Bear with me..I'm not good with programming, and I don't like it. Just gotta pass this C++ class...I try my best though :3
  4. Thread: Date class.

    by mc74
    Replies
    13
    Views
    1,449

    a has a value of 5...

    a has a value of 5...
  5. Thread: Date class.

    by mc74
    Replies
    13
    Views
    1,449

    Date class.

    Hello programmers,

    I am trying to write a simple class, with a default constructor to output a date. All it has to do, is output the date "01/01/2013" (MM/DD/YYYY format). I'm compiling, and...
  6. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    Here is my working code: #include...

    Here is my working code:



    #include <iostream>
    #include <cstdlib>

    using namespace std;

    double ConvertToMPH (int paceInMin, int paceInSec);
  7. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    root4, attempt 3 did compile but I got garbage...

    root4, attempt 3 did compile but I got garbage data.
  8. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    I figured it out! It works correctly now! Thanks...

    I figured it out! It works correctly now! Thanks for the nudges, fellas! Much appreciated!!

    :D
  9. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    I am taking a C++ class, but I pulled this out of...

    I am taking a C++ class, but I pulled this out of the book to try for some practice.

    Here is the actual question:
    You would like to know how fast you can run in Miles Per Hour. Your treadmill...
  10. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    Sorry man! Here is some code of things I have...

    Sorry man! Here is some code of things I have tried! :cool:



    #include <iostream>
    #include <cstdlib>

    using namespace std;

    double ConvertToMPH (int paceInMin, int paceInSec);
  11. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    I tried calling ConvertToMPH after each cin, and...

    I tried calling ConvertToMPH after each cin, and I got a lot of errors.

    I also tried to call it after the cout, cin block. Ran, but it only took the input and exited out of teh program.
  12. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    Ah, right. I have never been good with functions....

    Ah, right. I have never been good with functions. That's why I'm playing around with this for practice.

    I tried this, it runs, but I get automatic garbage data :/



    cout << "Please enter...
  13. Thread: Calculating pace.

    by mc74
    Replies
    13
    Views
    4,544

    Calculating pace.

    I'm trying to write a program to convert your pace in minutes and seconds to MPH. All the program is doing is taking in the input of minutes and seconds. What am I doing wrong?



    #include...
  14. Replies
    17
    Views
    10,953

    Got it: feetIn = feet * 12; totInch =...

    Got it:



    feetIn = feet * 12;
    totInch = feetIn + inches;
    inches = totInch - 60;
    ideal = inches * 5 + 110;
  15. Replies
    17
    Views
    10,953

    I have been thinking math. That's my problem. I...

    I have been thinking math. That's my problem. I just don't know what I am missing.
  16. Replies
    17
    Views
    10,953

    Do I need an "if" statement at all?

    Do I need an "if" statement at all?
  17. Replies
    17
    Views
    10,953

    This equation works for heights exceeding 5 feet,...

    This equation works for heights exceeding 5 feet, but not lower than 5 feet.



    ideal = 110 + (inches * 5) + 60;
  18. Replies
    17
    Views
    10,953

    Here's some up dated code: #include...

    Here's some up dated code:



    #include <iostream>
    using namespace std;

    int main( )
    {
    int feet;
  19. Replies
    17
    Views
    10,953

    I'm sorry...call me stupid...but none of this is...

    I'm sorry...call me stupid...but none of this is clicking for me...
  20. Replies
    17
    Views
    10,953

    Here's something.... ideal = 110 + 5 * inches...

    Here's something....

    ideal = 110 + 5 * inches = 5ft + 5 inches
  21. Replies
    17
    Views
    10,953

    I have. And I have gotten nowhere.

    I have. And I have gotten nowhere.
  22. Replies
    17
    Views
    10,953

    -thinks intently-... Sorry...I got nothin'......

    -thinks intently-...

    Sorry...I got nothin'...

    :(
  23. Replies
    17
    Views
    10,953

    Calculating body weight.

    Hello everyone! I hope someone can help me. I'm not very good with programming, so please bear with me, because I'm sure this is very simple for better programmers. But I digress. I am trying to...
Results 1 to 23 of 23