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 :D