Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28

Thread: Need logic help

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need logic help

    && count>=.99 && count>=.10000000000000003)
    That does not make any sense. count >.99 is always > .1

    My pseudo code did NOT test for both boundaries at the same time.
    While incrementing >> check for the upper boundary
    while decrementing >> check for the lower boundary
    The code is incrementing when incrementCount is true
    The code is decrementing when incrementCount is false

    When the code reaches the upper boundary set incrementCount so it will start decrementing ie set it false
    When the code reaches the lower boundary do nothing and leave count's value at the lower value
    If you don't understand my answer, don't ignore it, ask a question.

  2. The Following User Says Thank You to Norm For This Useful Post:

    Rango (January 13th, 2021)

  3. #27
    Junior Member
    Join Date
    Oct 2020
    Posts
    17
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default Re: Need logic help

    I forgot to say thanks I got it all up and good thanks for the support it helped open my mind

  4. #28
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need logic help

    You are welcome. I'm glad you got it working.
    If you don't understand my answer, don't ignore it, ask a question.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: September 8th, 2020, 06:47 AM
  2. Replies: 1
    Last Post: April 11th, 2018, 01:50 PM
  3. Replies: 10
    Last Post: July 1st, 2014, 02:41 PM
  4. Column count doesn't match value count at row 1
    By Tyluur in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 30th, 2012, 01:31 AM
  5. How can i add a new count to this source code ?
    By mm2236 in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: January 30th, 2010, 10:21 PM