Search:

Type: Posts; User: khskenny

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,648

    That works. Thanks My instructor insisted that...

    That works. Thanks

    My instructor insisted that only one "%" was needed to make the symbol appear. Obviously two is the trick.
  2. Replies
    14
    Views
    1,648

    I've tried a few different ways to display these...

    I've tried a few different ways to display these computed fields as percentages with no luck. Any tricks?
  3. Replies
    14
    Views
    1,648

    Seems to work. I just had to sit and stare at it...

    Seems to work. I just had to sit and stare at it for a while. Just need to tweak a bit to get %



    #include<stdio.h>
    #include<stdlib.h>
    #include<time.h>
    #define SIZE 13

    int rollDice(void);
  4. Replies
    14
    Views
    1,648

    Actual is going to be the frequency of each sum /...

    Actual is going to be the frequency of each sum / 36000

    Expected is as stated above. The statistical chance of each pair of dice.
  5. Replies
    14
    Views
    1,648

    That is where I am having some trouble ;)

    That is where I am having some trouble ;)
  6. Replies
    14
    Views
    1,648

    Help with some array stuff

    Basically, 36000 rolls of the dice. I want to output the sum of the two dice (done) the frequency of each sum (done) and the expected along with actual. Both of the later should be in percentage. I...
  7. Replies
    9
    Views
    1,223

    Thanks for the help guys. Bummer it was a...

    Thanks for the help guys. Bummer it was a careless error this time, but it got fixed. This forum ftw!
  8. Replies
    9
    Views
    1,223

    When I ran it sans extra semi colon, it did what...

    When I ran it sans extra semi colon, it did what I wanted, just not formated in an appealing or logical pattern, which I will fix. It does seem to do the interest sets as it should...
  9. Replies
    9
    Views
    1,223

    HAH!

    HAH!
  10. Replies
    9
    Views
    1,223

    Hrmm, since I am not using any floats for year or...

    Hrmm, since I am not using any floats for year or rate, it should be ok right?

    Also, is principal not initialized at the top @ 1000?
  11. Replies
    9
    Views
    1,223

    Problems with a few "for" statements

    Have an issue with some for statements.

    I must be missing somew logic here. I'm trying to get this compound interest program going. I can get it to go through 10 years on one interest rate, but...
  12. Replies
    14
    Views
    1,840

    Thanks swoopy that's exactly what I was looking...

    Thanks swoopy that's exactly what I was looking for. So simple, don't know why I missed it.

    Could I just use all floats and keep things the way I have it?
  13. Replies
    14
    Views
    1,840

    Well, I think it works like the question in my...

    Well, I think it works like the question in my book states! Thanks for the help.

    However, I thought my teacher mentioned using:




    while(hrs != -1)
  14. Replies
    14
    Views
    1,840

    I may not have mentioned that it needs to loop as...

    I may not have mentioned that it needs to loop as many times as you want it to before putting in -1. If that is the case, do I still get rid of the while statement and just throw it in the if part?
  15. Replies
    14
    Views
    1,840

    Hah, I just saw that too. I'll fix it ;) I was...

    Hah, I just saw that too. I'll fix it ;) I was just throwing stuff together to get the overall thing to work and did not pay much attention to detail.

    Yeah, you can work for me. If you put in over...
  16. Replies
    14
    Views
    1,840

    Thanks for the advice, but I must use scanf for...

    Thanks for the advice, but I must use scanf for keyboard input due to class restrictions ATM. I will update the code above and put in %f in place of the %d

    Right now the program half ass works....
  17. Replies
    14
    Views
    1,840

    Problem with some "while" and float stuff

    I've been getting some strange problems with my code so far. You need to input hrs as an integer, rate as a float, and then compute salary as a float. If >40 hrs are eneterd it is time and a half....
Results 1 to 17 of 17