When I try to run the code in a scanner method, I type the number in but it doesn't show the number in words.
Type: Posts; User: Pettsa
When I try to run the code in a scanner method, I type the number in but it doesn't show the number in words.
Hello, I am trying to create a program that will convert any number from 1 to 999 from its digit representation to its word representation. But I cannot figure out how to display it after the user...
I changed the i = 0 to i = 1, it looked like it did it. Thank you so much for your help.
it runs:
computers
omputersc
mputersco
puterscom
uterscomp
terscompu
erscomput
rscompute
Then what?
I'm not sure, I am lost at what to do next. Do you think you can fix the code?
public class WordRectangle {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
//Declare variables
int count...
All I got it to work but... how would I loop it to make that word only have to right rows and columns for the specific word. Ex computers, 9 rows, 9 columns? Here is the code so far:
package...
On what line would I do that?
How would I add it to the end?
It outputs:
computers
omputers
mputers
puters
uters
And, no that is not what I want.
Ok I'm trying to figure this out......
Here is what I have so far.... can you show me an example of what to do?
package wordrectangle;
import javax.swing.JOptionPane;
import java.lang.String;...
I just don't know where they would go in my program.
Um, I am sorry, I understand the methods, really I do, this is all I have so far, could you please show me how to do it. My teacher doesn't teach us at all how to do these things and I am so stuck...
Um, I understand those methods but I don't know where to start.
When you enter a word it will display it as a regular word then shift a letter to the right, and it will be in rows and columns for the amount of letters the word has. Example:
COMPUTERS...
Hello, I was wondering how to create the code for a word rectangle in java?
Ok, I got the loop done but.... when I hit 1 the first time, it works well but when the program runs the second, I hit 1 to the second time and it exits the program. I don't know why.
Here is the...
Thanks, but what do i state if if they hit another number?
Sorry, I mean enter another word using the number 1.
Hello, I made a program called count vowels and I finished it but I want to ask the user to enter another number by pressing the number 1 and any other number entered would be invalid. I use...
All right, thank you for your help.
Well, I tried it again but I am outputting: "Therefore, x equals: 4992.333333333333." so I am close.
Here is the problem.
Two girls agree to go on a road trip together. They travel (x + 5)km on...
I tried to do it but it wouldn't print it out. Um, can you think of code that might work? Please?
All right I included it in x. Now where do i go from this code???
package fridaybonusquestion;
public class FridayBonusQuestion {
/**
* @param args the command line arguments
...