tru!!! i jus wanted to get past it
Type: Posts; User: LeeDD
tru!!! i jus wanted to get past it
yea but is on book.. i hav not placed it in any compiler.. its jus a general outline of how it should work.. i jus wan kno if these implementations will work as a circular structure
I Jus wanna Kno if my code is correct? if there is any errors please let me know
front = -1
rear = -1
size = 0
// Enqueue circular structure
ooooooh
Sum of them are for the headers.
oh aight.. i kno it as new line
--- Update ---
i loop thru the row with this
for( int row = 0; row < array.length; row++)
and apparently it keeps printing column header more than once....
ok then thanks.. i'll tell you whats up with it after im done
--- Update ---
Can i ask what exactly do u mean by end line.. i dont wanna be unsure
Salesp1 salesp2 salesp3 salesp4 Total
prod1 500 150 575 500 1725
prod2 200 700 175...
I Cant Seem To Figure Out Where To Put My Loop For Row Totals.. It Ends Up With Number Repetitions n errors.. the code in italics is supposed to represent row totals but i tried placing it every...
Thanks.. very helpful.. solved. i was reading wrong!!
aight thanks norm!! i was kinda close to this idea
--- Update ---
keeping track means just putting a limit on how much elements the array will use?
--- Update ---
is that what yu are...
i be tryna figure this thing out trying all kinds of things but still aint gettin it.. but thanks
using a loop
sorry but i still doont get it
im wondering if i hav to make numelt as a copy of the array and then assign it to all records functions? or do something completely different from what im suggesting i do
Modify the stats class created in the previous assignment to allow it to store and analyze data sets of different sizes. it should now have an array that holds 100 double values instead of 12. An...
still seem that it has a liltle prob can u figure it out
public static void main(String[] args)
{
int [] [] totals = { {500, 150, 575, 500},
...
i've tried all of these don't seem to work.. i was wondering if i need another control statement and where to put it
--- Update ---
ok thanks norm.. i tried adding new line somewhere i hadn't...
current ouput:
Overall Sales Distribution:
SalesP1 SalesP2 SalesP3 SalesP4 Total
Prod1 500 150 575 500Prod2 200 700 175 200Prod3 300 75 100 400Prod4 100 185 ...
*(Total Sales) Use a two-dimensional array to solve the following problem:
* A company has four salespeople (1 to 4) who sell five different products (1 to 5).
* Once a day, each salesperson...
setting up the loop i guess...
i tried new line characters every where wont work.
i've come to the conclusion now that i need a new loop or control statement
to go to new line after reading every...
SalesP1 SalesP2 SalesP3 SalesP4
prod1
prod2 and then the array numbers here to match row n columns
prod3
prod4
prod5
I'm really stuck right now..
like 2 hrs now, im tryna figure out a way to get this array in tabular format but its super difficult.
dont really like asking for help but im always grateful for it.....
ok then thanks.. i will send u the question and then my coding..
--- Update ---
thanks very much!! the tutorial is exactly what i had need..
does it need a constructor?