1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Reading and looping (assignment)

  1. Jan 3, 2010 #1
    1. The problem statement, all variables and given/known data

    Hi everyone ,, I've got the following assignment and it's very hard for me ,, I couldn't understand half of it ,, that's if it's not all -_-

    The assignment is :






    2. Relevant equations



    3. The attempt at a solution

    OK ,, am at the first step which is making a read function ,, but my problem is that when I let it read a sensor text more than once it tell me to press any key to continue but I want it to continue until the user enters 10 sensors ... and the other problem is when the user press other than numbers the program goes up and down (due to while thing) and I don't know how to fix it ,, help please

    I need a code for while so when I press a word like (w) it won't repeat by at self at infinity
     

    Attached Files:

    Last edited: Jan 3, 2010
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?



Similar Discussions: Reading and looping (assignment)
Loading...