Search:

Type: Posts; User: whome

Search: Search took 0.09 seconds.

  1. Thread: Initializing

    by whome
    Replies
    4
    Views
    1,550

    Initializing

    Here is my code, with the following error that I get, I dunno why its trying to make me initialize a String:

    import java.util.Scanner;

    public class Lab7_Ex2
    {

    public static...
  2. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    Thanks for the site Staticity!

    I really enjoy programming, I just wish I understood it better. I will definitely watch the videos though.
  3. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    yea, I saw and yes it is for a school program, but using the second method was not allowed in my code, therefore irrelevant to what I was asking for.
  4. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    haha, yea I have read this several times. I am super new to programming and am not real good with using asterisks at all.
  5. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    clearly this is butchered, but I am thinking it should look something like this:

    System.out.println();
    System.out.println("SALES BAR CHART");
    for( char * = 100; int store1 = 0...
  6. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    Thanks for that!

    The asterisk is where I am stuck. Sales have to be in increments of $100 and declaring one to equal 100 is where I am having problems.... I am thinking a for loop?

    Or is it...
  7. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    This is what I have so far...... not sure how to print out the asterisks from this point

    int store1;
    int store2;
    int store3;
    int store4;
    int store5;
    char "*";
    ...
  8. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Re: Asterisks

    basically I have setup the code asking for the total sales for each store, and I know I need to use a loop to print out the asterisks, just not real sure how to do that for each $100 sold.
  9. Thread: Asterisks

    by whome
    Replies
    15
    Views
    1,946

    Asterisks

    I am trying to write code that prints out asterisks for a given number of sales. For instance, if a companies sales are $1,000 it prints out 10 asterisk, $500 and then 5 asterisks.

    I just not...
  10. Thread: Array

    by whome
    Replies
    3
    Views
    1,270

    Re: Array

    rookie mistake......but then again, I am a rookie!!

    Thx!
  11. Thread: Array

    by whome
    Replies
    3
    Views
    1,270

    Array

    import java.util.Scanner;

    public class Lab10_Ex3
    {

    public static void main (String [] args)
    {

    String [] strings = new String[4];
  12. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    that just makes it constantly run.....it needs a value to know what to do
  13. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    Getting there Norm.....now it just gives me one dollar sign ($) no matter what number I input
    int number;
    String symbol = "$";


    for...
  14. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    won't let me define it..... this is what I have so far, but its only giving me one dollar sign ($) no matter what number I enter

    for (number = 1; number <= 5;)
    {
    System.out.print("Enter...
  15. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    thats what I am doing.....it doesn't like the $ sign

    Lab7_Ex1.java:16: error: cannot find symbol
    for (number = 1; number>= 5; $++)
    ^
    symbol: variable $
    ...
  16. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    Just java right now....told you I was new :D
  17. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    Lab7_Ex1.java:16: error: cannot find symbol
    for (number = 1; number <= 5; $++)
    ^
    symbol: variable $
    location: class Lab7_Ex1
    1 error
  18. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    I don't think that'd work.....maybe i'm not explaining it correctly..... If the user enters 7 as the input, the output would be $$$$$$$. If the user enters 3 as the input, the output would be $$$....
  19. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    Sorry....i'm pretty new to programming......example?
  20. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Re: Working with $

    I don't need it to be $100....I would need 100 dollar signs..... as in the output would be. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

    lol
  21. Thread: Working with $

    by whome
    Replies
    20
    Views
    2,244

    Working with $

    I am writing a program and trying to multiply with $ if thats even possible.

    I am coding a program where the user enters a number, and the output is $$$ of the number entered. So if one is...
  22. Thread: char problems

    by whome
    Replies
    1
    Views
    1,083

    char problems

    Using java i am trying to assign letters certain values, but am getting no where. For example,

    char A = .-;
    char B = -...;

    any help?
    Thanks
Results 1 to 22 of 22