Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

code a sentinel controlled loop to repeatedly accept words from a use until they enter the word "exit"

sample run loop

  • Please log in to reply
2 replies to this topic

#1 Th3n


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts
  • Programming Language:Java, (Visual) Basic, JavaScript
  • Learning:Java

Posted 02 September 2012 - 11:39 AM

a sample run is given below:

Enter a word (type exit to finish):


Enter a word (type exit to finish):


Enter a word (type exit to finish):


Enter a word (type exit to finish):


Total number of lower case letters = 6
Total number of lower case letters = 5

anyone can give me some advices or sample code???

i got no idea where should i start..
  • 0

#2 BenW


    CC Devotee

  • Community Manager
  • 976 posts
  • Programming Language:ActionScript
  • Learning:ActionScript

Posted 02 September 2012 - 06:37 PM

This sounds like a homework assignment, so it would be great to see you doing your best to understand it yourself rather than anyone simply posting code up for you. Is there one specific part of it you aren't sure about that we could help with? Do you have any code written so far? :)
  • 0



#3 kernelcoder


    CC Devotee

  • Expert Member
  • PipPipPipPipPipPip
  • 990 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal

Posted 02 September 2012 - 11:41 PM

Welcome to CodeCall!

Is it your homework? Well, I have an idea where you can start: 1) First learn how to create a java project in the IDE you are working with (NetBeans or Eclipse). 2) Create a 'Hello Java' program where you can take input a word from user and the program can print it.
  • 0

Also tagged with one or more of these keywords: sample run, loop

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download