User Profile

Collapse

Profile Sidebar

Collapse
snhamilton
snhamilton
Last Activity: Mar 11 '07, 10:51 PM
Joined: Sep 18 '06
Location: Tuscaloosa, Alabama
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • snhamilton
    started a topic stop the loop
    in C

    stop the loop

    I kept creating an infinite loop...
    Intro level problem; should be easy




    Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0.
    See more | Go to post

  • snhamilton
    started a topic I don't even know where to start
    in C

    I don't even know where to start

    Intro level problem; should be easy



    Given an int variable k that has already been declared, use a while loop to print a single line consisting of 97 asterisks. Use no variables other than k .
    See more | Go to post

  • snhamilton
    started a topic what does it want me to do?
    in C

    what does it want me to do?

    Given the char variable c , write an expression that is true if and only if c does not contain a blank.
    See more | Go to post

  • snhamilton
    started a topic evaluates to true
    in C

    evaluates to true

    how do I write this out? If I type the word "true" it keeps rejecting it.... ??
    Once again, this is intro level so it should be very easy



    Write an expression that evaluates to true if and only if the value of the boolean variable workedOvertime is true.
    See more | Go to post

  • snhamilton
    started a topic toggles the value?
    in C

    toggles the value?

    How do I do this? This is a basic computer programming question, so it should be very easy.


    Write a statement that toggles the value of onOffSwitch . That is, if onOffSwitch is false, its value is changed to true; if onOffSwitch is true, its value is changed to false.
    See more | Go to post
No activity results to display
Show More
Working...