Search:

Type: Posts; User: wonderpoop

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,113

    array array and more arrays

    I want to print the following prices to screen:
    10.95 16.32 12.15
    8.22 15.98 26.22
    13.54 6.45 18.59

    here is the code


    #include <stdio.h>
    int main()
  2. Thread: final exams

    by wonderpoop
    Replies
    6
    Views
    3,421

    I got it, i needed to take the maxnum out of the...

    I got it, i needed to take the maxnum out of the printf and put in firstnum, secnum, thirdnum :)

    so actually everything above is corred, even the %d, %f, %d, just not the maxnum in my printf
  3. Thread: final exams

    by wonderpoop
    Replies
    6
    Views
    3,421

    I pretty much figured that, but when I pass my...

    I pretty much figured that, but when I pass my values, I don't get anything that makes sense, i've tried %d %f %f, still isn't giving me anything correct
  4. Thread: final exams

    by wonderpoop
    Replies
    6
    Views
    3,421

    final exams

    I'm studying for my finals.

    Write a function named check() that has three arguments. The first argument should accept a integer number, second a floating-point number, the third a...
  5. Replies
    13
    Views
    1,874

    Edited

    #include <stdio.h>
    #include "intgetnum.h"
    #define MAXNUM 2
    /* prototype */
    int getnum();
    int main()
    {
    int retval = 1;
    while (retval != NULL)
    {
  6. Replies
    13
    Views
    1,874

    Cool thanks, i'm almost there, now I know it's...

    Cool thanks, i'm almost there, now I know it's the null, I assigned 1 to null but now it just loops with no value hmmm
  7. Replies
    13
    Views
    1,874

    I fixed that part, it runs, it's just that my...

    I fixed that part, it runs, it's just that my value keeps coming back as 0
  8. Replies
    13
    Views
    1,874

    My instructor, did you test it? Also, ch != is...

    My instructor, did you test it?

    Also, ch != is not what i want, I want the user to enter a space and it will just ask the user for either the 1st number or the second number, whichever they...
  9. Replies
    13
    Views
    1,874

    It's suppose to just echo back the two numbers...

    It's suppose to just echo back the two numbers the user enters. For practice, and this is how I was told to do it, to put the functions into the header file.
  10. Replies
    13
    Views
    1,874

    Not sure where to begin

    This is what I have in my .c file


    #include <stdio.h>
    #include "intgetnum.h"
    #define MAXNUM 2
    /* prototype */
    int getnum();
    int main()
    {
  11. Replies
    26
    Views
    4,158

    i tried it to see, and all it did was scroll from...

    i tried it to see, and all it did was scroll from 4900 until forever. What i need to do is lets say you are a teacher, and you have a X number of students, you want a program that calculates the...
  12. Replies
    26
    Views
    4,158

    no, the way i have it is #include ...

    no, the way i have it is


    #include <stdio.h>
    #include <math.h>
    #define MAXCOUNT 5 <- I want this number to be chosen by the user
    int main ()
    {

    int calc;
  13. Replies
    2
    Views
    2,045

    you want to print the spaces like you are...

    you want to print the spaces like you are printing the stars.

    L /* number of lines */
    A /* number of astericks */
    S /* number of spaces */

    also, you don't need r=0. That is already defined...
  14. Replies
    26
    Views
    4,158

    prompt user for number of loops

    how do i prompt a user to choose the number of loops they want.

    for example, I know that if I set #define MAXCOUNT 100, it will loop 100 times. What would i put for the user to select the number...
  15. Replies
    13
    Views
    2,893

    Now what happens if the user types in R?

    Now what happens if the user types in R?
  16. Replies
    13
    Views
    2,893

    That's what the while statement is for. If i...

    That's what the while statement is for. If i type in the wrong letter, it goes back to the menu just fine. But i can't figure out how to get it to go back to that same menu each time the person...
  17. Replies
    13
    Views
    2,893

    It has to be a do while statement. I don't even...

    It has to be a do while statement. I don't even know anything about goto done yet. If you test the program you will see is no problem breaking the loop, since i can't get one to work yet anyways
  18. Replies
    13
    Views
    2,893

    this while statement is killing me, i tried it at...

    this while statement is killing me, i tried it at the end, but it doesn't work right still. I can't think of any other while statement to put at the end, because it works better at the beginning. I...
  19. Replies
    13
    Views
    2,893

    this is what he told us to use and how he said to...

    this is what he told us to use and how he said to use it
  20. Replies
    13
    Views
    2,893

    while statement

    THis almost works, but i'm stuck. It terminates, I want it after the user does a problem, returns to the top list.



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

    int main()
  21. Replies
    11
    Views
    2,764

    lol are you a teacher?

    lol are you a teacher?
  22. Replies
    15
    Views
    14,257

    Thanks, but we aren't there yet (next chapter). ...

    Thanks, but we aren't there yet (next chapter). I did a program with arrays, which is 3 chapters ahead and he told me to change it.
  23. Replies
    15
    Views
    14,257

    I think I tried that, a few differnet ways. I...

    I think I tried that, a few differnet ways. I still decrypts, just in a reverse order
  24. Replies
    15
    Views
    14,257

    decrypt/encrypt

    sum1 = ((num % 10) / 1);
    rm1 = ((sum1 + 7) % 10);
    sum2 = ((num % 100) / 10);
    rm2 = ((sum2 + 7) % 10);
    sum3 = ((num % 1000) / 100);
    rm3 = ((sum3 + 7) % 10);
    sum4 = ((num...
  25. Replies
    10
    Views
    1,829

    Changes

    I now did it this way, but the if isn't completely working. If i put in 12345 I get 1 2 3 4 5, if i put in 1112131415 I get the else statement, but if i put in 123456 I get 2 3 4 5 6.


    ...
Results 1 to 25 of 41
Page 1 of 2 1 2