zeroliken 79 Nearly a Posting Virtuoso
zeroliken 79 Nearly a Posting Virtuoso

i just need one like if a is greater than or equal to 70 it will stop ..

if you mean the condition at line 40 then it's because if any of the condition remains true then it will continue to loop (if any of the variables is less than or equal to 70)

zeroliken 79 Nearly a Posting Virtuoso

are you familiar with using a runnable interface so you can continuously repaint the object?

on a side note... it might be my laziness talking but if it were me I'd just use several images of pacman pertaining to a direction instead of writing code to draw the shapes. Then I'd call and paint a selected image depending on which key is triggered

zeroliken 79 Nearly a Posting Virtuoso

how about printing those first two numbers before entering the loop since they're static output for all fibonacci cases

zeroliken 79 Nearly a Posting Virtuoso

" optoin "
spell check

zeroliken 79 Nearly a Posting Virtuoso

*judging from recent posts

your array expects an integer and searchName is a String

zeroliken 79 Nearly a Posting Virtuoso

the first one checks for order if it's greater than, less than or equal to the object it is being compared with and returns a specified value given the result

the equals method checks for the equivalence of the objects with their values

the == works similarly as the equals method but it also checks wether the references to the object are equal

my opinion is since you only need to check if the list have duplicates the first option wouldn't be necessary
if the list contains elements that have primitive data types use '==' else use equals method
you can test each option and see for yourself which is appropriate, if you have doubts you can always check the API

zeroliken 79 Nearly a Posting Virtuoso

you haven't started the thread, add this on your start method

Thread th = new Thread (this);
th.start();
zeroliken 79 Nearly a Posting Virtuoso

The list probably contains the recent active members or members with high amount of posts/ reputation/solved threads from the forum your most active with

zeroliken 79 Nearly a Posting Virtuoso

your condition at line 27 is causing this, if your input is valid it will always pass the loop condition thus printing the menu again

zeroliken 79 Nearly a Posting Virtuoso

The error says it all,
the actual and formal parameter for printout() at line 70 at names is wrong as it is an array

zeroliken 79 Nearly a Posting Virtuoso

cout? why use a c++ standard output stream in a java program?
use System.out.println() instead

zeroliken 79 Nearly a Posting Virtuoso

try printing the new top of the stack and next input after every pop/push to have a general view of the problem and see if the current conditions would satisfy the current input and top of stack,

zeroliken 79 Nearly a Posting Virtuoso

did you try printing out the contents of the array to see if anything is off or increasing the size of the puzzle by either a column or a row or both by all sides of the puzzle to see if it makes a difference in the results
for example put a new line of text at the beginning so p from 'develop' will be found at the second row

you could also try to minimize the puzzle and print out the contents and results to scope out where the problem occurs

zeroliken 79 Nearly a Posting Virtuoso

I'm missing the middle part " "

print quotation marks before and after the loop/process that does the operation

zeroliken 79 Nearly a Posting Virtuoso

did you make sure caps lock isn't on or you have administrator privileges?

zeroliken 79 Nearly a Posting Virtuoso

but this does not address that issue of browser compatibility.

check the cross browser solution here http://html5doctor.com/native-audio-in-the-browser/

and a flash fallback for old browsers here http://www.html5tutorial.info/html5-audio.php at the end of the article

zeroliken 79 Nearly a Posting Virtuoso

shouldn't this be simple like using the <audio> tag or am I missing a point here?

zeroliken 79 Nearly a Posting Virtuoso

ok then same answer as before, put every element in a division
it'll look something like this

        <body>
            <div id = "main">
                <div id = "logo">...</div>
                <div id = "text">...</div>
                ...
            </div>
        <body>

where in its css the width of main is constant e.g. 900px

zeroliken 79 Nearly a Posting Virtuoso

Scanner console = new Scanner(System.in
Scanner console = new Scanner(System.in);

Declare this only once and before the loop or the first use of input
also post the complete code your working with

and if the book title is something like "animals" and if i type in animal it does not show up

the words are not equal since the first word has 1 more letter s at the end

and if the user enters something like "and" i want everything in all of my arrays that contain "and" to show up

check the substring method

im not sure if i should use arrays or a list or even vectors

arrays should be fine for this

zeroliken 79 Nearly a Posting Virtuoso

what I meant by fixed width is the width attribute of the division has a set value i.e. width:700px; which you can freely change or do you mean that it should have dynamic changes whenever the user zooms or scrolls?

zeroliken 79 Nearly a Posting Virtuoso

A simple solution would be to place all the elements inside a division that has a fixed width

zeroliken 79 Nearly a Posting Virtuoso

Do i have to start a new discussion whenever a question is solved?

yes

How is it?...

The for loops at the menu function is unnecessary, you could simply pass the value for the the stucture index from the main function

Now i'll go ahead and make the scan Buyer's items..any suggestions?

need more details about this, any specifications on what the program should do with the items? store them at a file,etc.?

zeroliken 79 Nearly a Posting Virtuoso
for(int i = 0; i < list1.size() - 1; i++){
        if(list1.get(i).compareTo(list2.get(i)) == 0){
            list1.remove(list2.get(i));
        }
    }

once an element is removed from either list their sizes will be different from the other. So you can't compare the remaining elements of a list with the others original position

You could use a nested loop to check if a value from a list is present with every element from the other

zeroliken 79 Nearly a Posting Virtuoso
for (int i = 3; i < range; i++ ){
    if (num % i == 0 ){
        prime = false;
        break;
    }
}

hint: for checking if the number is prime why does the condition here start with 3?

zeroliken 79 Nearly a Posting Virtuoso

post your code, problems, etc

zeroliken 79 Nearly a Posting Virtuoso

Could you give more details about the problem like any error messages or program output

also take note that printf function is part of the C stdio header

zeroliken 79 Nearly a Posting Virtuoso

Let's start with the basics then, you need to learn a few things first before you start coding
I suggest you head over over to the java tutorials and read about classes, to learn the gist of things, here's a link
http://docs.oracle.com/javase/tutorial/java/javaOO/index.html
Once you have a clear understanding we can start tackling the coding part, feel free to ask questions here if you get stuck somewhere

zeroliken 79 Nearly a Posting Virtuoso

Do you have an idea what classes and methods are and how should they work?

zeroliken 79 Nearly a Posting Virtuoso

I currently have a subject titled "Introduction to Computer Organization and Machine-Level Programming" which focuses on Assembly language on 32 bit systems with Nasm as the compiler and uses Intel style syntax.

Having studied first high level languages first like C and Java I struggled a bit with Assembly which requires a lot of instructions to perform simple tasks which only takes a few lines for high languages to perform. Despite this unlike the high level lang I get to actually view the compute's memory storage and allocation for the program which answers some of the questions I'd have during the first years of my CS course

Now for other OS, correct me if I'm wrong as I recall Windows was built using C and also in Assembly(but the latter's only minimal)

zeroliken 79 Nearly a Posting Virtuoso

your missing the starting bracket for main, next

if(timeout<17:00)

you can't use a time format for comparison

zeroliken 79 Nearly a Posting Virtuoso

What's your question

zeroliken 79 Nearly a Posting Virtuoso

how is matrix initialized? are you trying to allocate a single or a 2d array

zeroliken 79 Nearly a Posting Virtuoso

Is this suppose to be a game? 3125

zeroliken 79 Nearly a Posting Virtuoso

and i am using pointer 'root' in main() (as shown in code i have posted). but here i cant compare it to NULL

huh? you can compare it to NULL, the if condition in your code won't be met since you allocated memory to it... as explained before

in a bst comparing the node to null is only used to check if it is allocated successfully, I don't see a reason to force it to be NULL

zeroliken 79 Nearly a Posting Virtuoso

cout<<root->info;

shouldn't that be printf(), this is the C forum after all

zeroliken 79 Nearly a Posting Virtuoso

are you sure you posted in the right forum, the code is in C++ yet this is the C forum and you forgot to post the error messages
Now in a glance, 1 error I see is you should initialize the following variables inside the structure as follows

struct node *left; 
struct node *right
zeroliken 79 Nearly a Posting Virtuoso

now with arrays it will look something similar to this:

char GuessColor[10];
char color[10][10] = {"blue", "green", "red", ...};
for(i = 0; i < strlen(color[i]); i++)
    if(GeneratedNumber == i)
        strcpy(GuessColor,color[i]);

printf("%s", GuessColor);

simple

zeroliken 79 Nearly a Posting Virtuoso

by "assign" I mean it's more on conditions where a string variable color will get it's value from the generated number using if-else statements
example would look something like this:

if(numbergenerated == 1)
    color = "blue";
else if(numbergenerated == 2)
    color = "red";

but seriously take the array advice it's gonna lessen the code cluster

zeroliken 79 Nearly a Posting Virtuoso

you could (well not literally assign but the use of conditions),though that's gonna be a lot of if-else statements
using an array and looping through the indexes will simplify this

zeroliken 79 Nearly a Posting Virtuoso

even i will just use the colors? not the colors but the words red,blue,green,yellow,white,pink only

if those are the only words you'd need then it's more easy to store them in an array and using the rand() function to generate a number, check the word whose index matches the generated number and retrieve it

zeroliken 79 Nearly a Posting Virtuoso

but can it be used without using words from a file? just only using turbo c itself.

either create an array containing them or randomly choose letters to fill a string

zeroliken 79 Nearly a Posting Virtuoso

the only randomizing funtion for C I know is exclusive for integers only.
What you could do is create and store the words in an array or file then use the rand function to generate a number, the word whose index matches the number will be retrieved

zeroliken 79 Nearly a Posting Virtuoso

randomizing in words

still vague, can you tell if you meant
generate letters randomly to form a word,
retrieve words randomly from a file or array,
or something else??

zeroliken 79 Nearly a Posting Virtuoso

If at least one of those conditions is true it will pass on to the next set of statements
try using the && operator

zeroliken 79 Nearly a Posting Virtuoso

you could format the output similar to C like so:

System.out.printf("Farenheit %.2f = %.2f Celsius",farenheit,celsius);
zeroliken 79 Nearly a Posting Virtuoso

Sorry but we don't give away codes here the rule states Do provide evidence of having done some work yourself if posting questions from school or work assignments.
We can help you if you have specific questions on your code or if you need advice on what to do next

Anyway these are simple tasks where you only need to use the charAt method from the string class at the first index of your first application and a simple math equation for the second

zeroliken 79 Nearly a Posting Virtuoso

i just want to learn about using random functions in words

do you need help in retrieving words from a file or generating random strings

turbo c only.

wouldn't you rather use a modern compiler than this antique

zeroliken 79 Nearly a Posting Virtuoso

but isn't using notepad will be confusing? I mean no colors.

probably meant notepad++, a popular editor
also if you want to do it manually (terminal commands) use the javac command for compiling and java for running your programs

zeroliken 79 Nearly a Posting Virtuoso

@ line 23: use the == operator at the 2nd and 3rd condition, that's suppose to be ch == 'e' and ch == 'i'.
also did the program compiled without including the ctype and string libraries necessary for using tolower and strlen functions