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...
Type: Posts; User: whome
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...
Thanks for the site Staticity!
I really enjoy programming, I just wish I understood it better. I will definitely watch the videos though.
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.
haha, yea I have read this several times. I am super new to programming and am not real good with using asterisks at all.
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...
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...
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 "*";
...
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.
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...
rookie mistake......but then again, I am a rookie!!
Thx!
import java.util.Scanner;
public class Lab10_Ex3
{
public static void main (String [] args)
{
String [] strings = new String[4];
that just makes it constantly run.....it needs a value to know what to do
Getting there Norm.....now it just gives me one dollar sign ($) no matter what number I input
int number;
String symbol = "$";
for...
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...
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 $
...
Just java right now....told you I was new :D
Lab7_Ex1.java:16: error: cannot find symbol
for (number = 1; number <= 5; $++)
^
symbol: variable $
location: class Lab7_Ex1
1 error
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 $$$....
Sorry....i'm pretty new to programming......example?
I don't need it to be $100....I would need 100 dollar signs..... as in the output would be. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
lol
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...
Using java i am trying to assign letters certain values, but am getting no where. For example,
char A = .-;
char B = -...;
any help?
Thanks