Search:

Type: Posts; User: JohnMayer

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,979

    would this be correct? : /* SEC6.3 EX7 ...

    would this be correct? :


    /* SEC6.3 EX7 */
    /* DATE: 08-09-02 */

    #include <stdio.h>

    int main()
    {
  2. Replies
    8
    Views
    1,979

    Questions ab an answer...

    i don't have an answer key or anything for this textbook, but did i get this correct?

    #7- Rearrange the square3.c program so that the FOR loop initializes 'i', tests 'i', and increments 'i'. Don't...
  3. Replies
    9
    Views
    2,075

    oooooh! thanks for the update (i've been posting...

    oooooh! thanks for the update (i've been posting codes for over 1 month and you are the 1st to correct me~!:)
  4. Replies
    9
    Views
    2,075

    >Come on JohnMayer, 42 posts and ya still...

    >Come on JohnMayer, 42 posts and ya still forgetting the code tags! Please use them next time.

    lol, well i'm a beginner to C programming (i only started about a month and a half ago... i got my...
  5. Replies
    6
    Views
    1,313

    i went to best buy today and got it fixed:o) (i...

    i went to best buy today and got it fixed:o)
    (i think i'm gonna wait until i get to college and after several months i'll attempt the dual operating system gig again... with the help of a 4th yr...
  6. Replies
    6
    Views
    1,313

    LINUX dilemma

    hey, i just installed linux and for some reason it didn't get on the partition i made ... so now WINDOWs XP doesn't boot up... how can i fix this (to get XP back on)
  7. Replies
    9
    Views
    2,075

    ***trouble with a loop***

    i'm having the most difficulty writing this program (perhaps it's due to my week long hiatus from programming to try to set up a dual boot config)... here is the question and my code pasted below:
    ...
  8. Thread: OUTput Q

    by JohnMayer
    Replies
    10
    Views
    1,231

    sorry, i mistyped the statement... it was: for...

    sorry, i mistyped the statement... it was:
    for (i = 5, j = i - 1; i > 0, j > 0; --i, j = i - 1)
    printf("%d", i);
  9. Thread: OUTput Q

    by JohnMayer
    Replies
    10
    Views
    1,231

    why is it an invalid for a loop?

    why is it an invalid for a loop?
  10. Replies
    9
    Views
    1,329

    statement equivalents

    i picked letter C for #10 and letter B for #11.... am i correct?

    10. Which is the following statements is not equivalent to the other two (assuming that the loop bodies are the same)?
    (A) for (i...
  11. Thread: OUTput Q

    by JohnMayer
    Replies
    10
    Views
    1,231

    OUTput Q

    I thought the answer for this prob was 5, but it's 5432... why is that?

    *9. What output does the following 'FOR' statement produce?

    for (i = 5, j = i - 1; j = i - 1; i > 0, j > 0; --i, j = i -...
  12. Replies
    3
    Views
    1,528

    big *LINUX* Q

    how can i obtain Linux on my comp without disk partioning? (i know ab DemoLinux ...but is that the best choice or are there other types that are just as easy... or should i just partion my comp ......
  13. Replies
    10
    Views
    1,501

    this is what the exercise in the book says: 1....

    this is what the exercise in the book says:
    1. Write a program that finds the largest in a series of numbers entered by the user. The program must prompt the user to enter numbers one by one. When...
  14. Replies
    10
    Views
    1,501

    awwww, thanx Cshot (that did the trick [do]~!!!...

    awwww, thanx Cshot (that did the trick [do]~!!! ... now i have another Q... this program can have either integer or non-integer values... i can't use either %d or %f... what should i use?~
    thanx a...
  15. Replies
    2
    Views
    877

    keyword: char

    if i use char would it be "%c" in scanf (or what?)
  16. Replies
    10
    Views
    1,501

    this is what i have *so* far~ /* SEC6.1 EX...

    this is what i have *so* far~

    /* SEC6.1 EX 1 */
    /* DATE: 07-25-02 */

    #include <stdio.h>

    int main()
    {
    float n, highest;
  17. Replies
    10
    Views
    1,501

    question ab an infinite loop...

    how could i possibly write an infinite loop that have to be terminated when the number = 0 (or below)?... & also have the program allow multiple number entries to find the highest # out of the...
  18. silly me (forgetting the break; part!)~!!!! thanx...

    silly me (forgetting the break; part!)~!!!! thanx Salem & Cshot~!!!! now i can finally move on to chapter 6 (loops) :)
  19. Question about a program fragment's product~ :o)

    i don't get why the output would be: "onetwo" (i thought it would just be "one")... can any1 explain the logic behind this loco Q?

    *16. What output does the following program fragment produce?...
  20. Replies
    2
    Views
    1,046

    thanx Govtcheez~!!! the braces did the trick :o)

    thanx Govtcheez~!!! the braces did the trick :o)
  21. Replies
    2
    Views
    1,046

    Quickie Q :o) (yea!!)

    i got this program to work (yea!!!!!!), but i have 1 error... for some reason the last else clause is an 'illegal else with an if'... i looked at the book a bajillion times and i'm doing exactly what...
  22. Replies
    1
    Views
    1,366

    Question ab 2 if statements...

    hmm... i don't know what i'm doing wrong here (with the 2 'if' statements... the 1st one works perfectly (Original Broker's Commission), but the 2nd doesn't (Rival Broker's Commission)

    /*broker's...
  23. Hammer- so you're done with undergrad and/or...

    Hammer-
    so you're done with undergrad and/or grad? (i'm guessing you have a comp sci related job then~!
  24. awwww, thanx Quzah~! you guys def made my day...

    awwww, thanx Quzah~! you guys def made my day with helping me find the problem with this program.... btw, what languages do you guys know (and what class(es) for comp sci are you guys enrolled at the...
  25. thanks hammer & cshot (cshot, your advice ab the...

    thanks hammer & cshot (cshot, your advice ab the && helped... i didn't know you had to write out number twice!!! but thanks so much you guys~!!!!
Results 1 to 25 of 48
Page 1 of 2 1 2