Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2007, 02:10 AM
Member
 
Join Date: Nov 2007
Posts: 1
padutch is on a distinguished road
JAVA software solutions:For AP Comp. Science (Lewis,Loftus,Cocking)
Hello I am in my first year of java and currently I am in chapter 2 at my high school. I am stuck on some of the question programs and though if anyoen here can help me.

NOTE:I am using Netbeans

Here are some question programs:

1. Design and implement an application that reads a string from the user, then determines and prints how many of each lowercase vowel (a,e,i,o,u) appear in the string. Have a seperate counter for each vowel. Also count and print the number of constants,spaces, and punctuation marks.

2. Design and implement an application that simulates a simple slot machine in which three numbers between 0 and 9 are randomly selected and printed side by side. Print a statement saying all three of the numbers are the same, or any two of the numbers are the same, when this happens. Keep playing until the user chooses to stop.

3. Desing and implement an applet that draws the side view of stair steps from the lower left to the upper right,

Thanls Alot
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-27-2007, 05:07 AM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
Can anyone help please
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-27-2007, 07:27 PM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
please help
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-27-2007, 08:15 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
You should try a little bit. What is the code you have written so far? Did you try searching building blocks of you code like "reading string from user"? If we see your code, we can try helping. We can not write your homework for you. It is not good for you.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-28-2007, 01:59 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
public static void main(String[] args) { make a Scanner for/with System.in boolean your_boolean while(your_boolean) { ask user to enter text get user input with scanner.nextLine() process the line of input for your requirements ask user if they want more get user input with nextLine your_boolean = evaluate input
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply

« questions | sort »

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JOB: Lead / Senior Software Engineer (JAVA) - Lawson PSSC (Manila) monlacuna Jobs Offered 0 02-04-2008 01:36 PM
Help On Computer Science Final!!!! Java Program Help!!!! BSOS New To Java 1 12-11-2007 06:54 AM
java code for checking if a software is installed or not heggemony Advanced Java 1 07-31-2007 03:19 PM
Struts - Solutions for creating Wizards Larry Web Frameworks 1 07-11-2007 07:59 PM
SMS Solutions on GSM and SMPP smany Introductions 2 07-10-2007 04:22 PM


All times are GMT +3. The time now is 03:58 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org