257 Posted Topics

Member Avatar for Ancient Dragon

[QUOTE=javaAddict;1025119] I know that like the rep points, anyone can give you whatever points they want, negative or positive, but I find it strange that someone decided to down vote a post that is 1 year old without a single explanation. At least with the reputation system you get to …

Member Avatar for VernonDozier
0
1K
Member Avatar for raigs

Initializing the variable means giving it a value. Declaring a variable means to create (i.e. it exists) As for your questions, look at the code. ;) If the variable hasn't been given a value, then it has not been initialized, it has only been declared.

Member Avatar for mrnutty
0
81
Member Avatar for jamesbrad288

In your while loop you will need to include a counter for both odd and even numbers. Also inclyde the if else statement in the while loop. For example: [code=cplusplus] while(number != 0) { //ask for and accept the number from the user if(number%2==0) //increment even counter else //increment odd …

Member Avatar for jamesbrad288
0
131
Member Avatar for agentgaurav007

In the Java programming language, every application must contain a main method whose signature is: [code=java] public static void main(String[] args) [/code] Taken from [URL="http://java.sun.com/docs/books/tutorial/getStarted/application/index.html"]http://java.sun.com/docs/books/tutorial/getStarted/application/index.html[/URL] Your main method violates this.

Member Avatar for quuba
0
105
Member Avatar for mirn27

[QUOTE=mirn27;1025269]how to program a program to calculate the area and the perimetre of a circle? pls answer me asap i need to know quickly thank you![/QUOTE] Then you better start showing some effort ASAP. Post your code and any problems you are facing.

Member Avatar for Grn Xtrm
0
196
Member Avatar for James19142

This question seemingly has nothing to do with c++. In the future dont post math related questions in the programming forums. As for your problem, what does the question ask you to do? Do you have to solve for the variable r?

Member Avatar for mrnutty
-1
221
Member Avatar for ki72

Test if the number is even or odd using the modulus operator. If the number % 2 equals 0, then the number is even. If the number % 2 equals 1, then the number is odd.

Member Avatar for Grn Xtrm
0
116
Member Avatar for uopgirl

[QUOTE=uopgirl;1023885]Anyone know what Algorithm Verification implies?:-/[/QUOTE] To make sure the algorithm is a valid solution to your problem. Type code based on your algorithm to see if the algorithm actually works in a real program. If it doesnt work, the algorithm is flawed and must be re-written.

Member Avatar for eggmatters
0
189
Member Avatar for xonxon

You cant end a program with an empty for loop. Either fill it with something or get rid of it. The compiler is expecting your for loop to have a body to it but it currently does not.

Member Avatar for Grn Xtrm
0
108
Member Avatar for ayaskant

[QUOTE=ayaskant;1024228]unary ++,and - operators for fraction class[/QUOTE] What about them? We're not her to write code for you. We are here to help you when you are stuck writing your program.

Member Avatar for Grn Xtrm
0
31
Member Avatar for gibson.nathan

I'm not a big expert in astronomy, so I can't really help you there, but obviously you will need to put something in the main method. Try calling the functions in the main method to see if they are working correctly.

Member Avatar for ieshoes
0
192
Member Avatar for saba_shakeri

I don't think you want to be printing "n" in the last prinf statement. I think you want to print the number which is just the variable n. Also please post your code using code tags so smiley faces dont show up in the middle of the code. ;) EDIT …

Member Avatar for Grn Xtrm
0
89
Member Avatar for Kimmelivim

You can prompt the user to enter either 1 or 2. Then use while loop to decide what to do with the input. [code=cplusplus] int choice; while(choice==1) { //enter customer number } [/code] The while loop will execute until the user enters a number other than 1. I was also …

Member Avatar for Kimmelivim
0
167
Member Avatar for poopynoob

Try putting [code=cplusplus] using namespace std; [/code] after your include statements. Also I'd put [code=cplusplus] return 0; [/code] before your last }

Member Avatar for Grn Xtrm
0
180
Member Avatar for iris88

[QUOTE=iris88;1023332]i dunno how to write the coding o.....i try to find it....i am very poor in programming coding ...[/QUOTE] Have you ever programmed in c++ before? You need to declare an array of size 10 and fill it using a for loop. Start trying to code this part, then you …

Member Avatar for Tom Gunn
0
122
Member Avatar for ebumark
Member Avatar for anbuninja

Perhaps I missed something, but I can't find where you are calling the processScore function. And this is where the number grade is converted to a letter grade. Please correct me if I am wrong.

Member Avatar for dgr231
0
166
Member Avatar for rechene

Why don't you try searching the forums? The whole point of keeping the code in previous threads is so people will be able to learn from them in the future. I've seen this question asked many times in the past few weeks. Or you can actually try doing it yourself …

Member Avatar for Unix*
-4
105
Member Avatar for neilsam

This forum is for game development. It is meant for people who are facing difficulties while making thier own games. If you are having a problem with your hardware post your question in the appropriate Hardware forum. Thanks.

Member Avatar for neilsam
0
94
Member Avatar for bruceaj

Can you please post your code so we can see the problem in context. Thanks. *Sorry BestJewSinceJC I didnt realize you already asked the same question until after I posted ;) *

Member Avatar for Mikeyp926
0
86
Member Avatar for new programer

It doesnt appear that you have sum declared anywhere, unless you included it in the part A of the code. Also, you are not telling the program to do anything after the loop takes place. Output the variable sum after the for loop to see if your program actually works. …

Member Avatar for Grn Xtrm
0
340
Member Avatar for AndreRet

[QUOTE=William Hemsworth;1018759]Sounds good :) I'll be starting piano lessons soon, expensive though. When I'm bored, I'll try something new, for example i've started getting into photography now, [URL="http://willasss.deviantart.com/gallery/#Devious-Folder"]here[/URL] are some I've taken fairly recently. [/QUOTE] William, great pictures. I especially like the Lighting up the Path pic. They look very …

Member Avatar for William Hemsworth
0
437
Member Avatar for csinquirer

C:/DOS C:/DOS/RUN RUN/DOS/RUN Funny little joke, I first saw on the tv show "The Simpsons".

Member Avatar for MosaicFuneral
0
93
Member Avatar for DumbGuy

This is a pretty simple task. For part one you need to use a for loop. For part two use an if statement to see which value is larger.

Member Avatar for Grn Xtrm
0
180
Member Avatar for geg13

Can you please tell me what you are trying to accomplish with this program? If all you are trying to do is print the string then you can use this [code=cplusplus] #include <iostream> using namespace std; #include <iomanip> #include <String> int main () { system("cls"); string Object; cout << "Enter …

Member Avatar for Phil++
0
109
Member Avatar for estefania
Member Avatar for snapppy
Re: Help

Your else if is a little flawed. Change it to. [code=cplusplus] if (Code_Home) { h = home + home1 * Num_Gallons ; } else if (Code_Commercial) { c = commercial; } else { i = ; // not sure what your trying to do here } [/code] When writing multiple …

Member Avatar for Grn Xtrm
0
111
Member Avatar for ravikumar.be09
Re: eof

EOF means End of File. This link will give you some examples of how it is used in C. [URL="http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1048865140&id=1043284351#"]http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1048865140&id=1043284351#[/URL]

Member Avatar for Grn Xtrm
0
35
Member Avatar for josephkamanzi

Read the first sticky thread in the c++ forum if your looking for some problems of ranging difficulty.

Member Avatar for Grn Xtrm
-1
46
Member Avatar for Chad W

Do you have a question about this code? Or were you just sharing a personal anecdote? Generally, the software development forums are reserved for people to ask questions to try to fix thier code. But yeah, sometimes the most obvious solution is the correct one. In fact that quote was …

Member Avatar for Grn Xtrm
0
153
Member Avatar for lilspeed500

Why don't take a shot at coding the program and report back with any problems you encounter. Don't just type your homework assignment up and expect someone to do it for you.

Member Avatar for Grn Xtrm
0
149
Member Avatar for needhelpe

Most things in programming shouldn't start with an uppercase letter (at least in C anyway) data types are lowercase and so is printf Also you have redeclaration of b. And you use b and B interchangeable which you can't do. This whole code is really a mess. You need to …

Member Avatar for Dave Sinkula
-1
197
Member Avatar for shakunni

This doesnt really have anything to do with Java or software development for that matter. Make sure your posting in the right forum next time you start a thread. This question is probably best suited for the computer science forum.

Member Avatar for BestJewSinceJC
0
90
Member Avatar for ehem011

Learning the basics of HTML is quite easy using a book or website. If all you need to do is create a basic web page, learn about tables and some of the more prevalent HTML tags. This should be enough to create a basic page. I think this is a …

Member Avatar for Grn Xtrm
0
89
Member Avatar for gpremkum

You can use Scanner objects to obtain user input for the values of x and y. Try: [code=java] Scanner inputx = new Scanner(System.in); Scanner inputy = new Scanner(System.in); int x = inputx.nextInt(); int y = inputy.nextInt(); [/code] This should allow you to include user input in your program. Is that …

Member Avatar for jonelynne
0
90
Member Avatar for restrictment

@OP Your teacher probably meant to use only one cout statement per shape. It doesn't seem possible to print 4 different figures with only one cout statement in the entire program. But, hey I can be wrong. You should send an email to your teacher to clarify the problem.

Member Avatar for restrictment
0
170
Member Avatar for Duncans Ghola

In your if statement use [code=cplusplus] if(denom==0) [/code] When using if statements you need to use the comparrison operator(==) not the assignment operator (=). See if that works for you. EDIT Looks like sfuo beat me to it by a few seconds. LOL. I'll also take this oppurtunity to suggest …

Member Avatar for Grn Xtrm
1
253
Member Avatar for vandna

If you don't show that you have actually tried by posting your code, no one in this community is going to help you. We can't debug your program and help you with errors if you don't show us what to help you with. EDIT: Looks like Tom Gunn is one …

Member Avatar for Grn Xtrm
-2
132
Member Avatar for The Mad Hatter

[QUOTE=The Mad Hatter;1006499]This is rather amusing. I posted a long, insightful write up on why I don't use Windows. And guess what - my reputation is instantly modded down. Now why would that be. Is it possible that [URL="http://crankyoldnutcase.blogspot.com/2009/06/trolls-and-linux.html"]Microsoft Trolls[/URL] hang out here? I think so.[/QUOTE] Maybe there are people …

Member Avatar for Evenbit
-5
2K
Member Avatar for shashanderson

[QUOTE=csurfer;1016585]Ok ... So ?[/QUOTE] He posted his code in the Geek's Lounge for some reason. Without code tags of course. ;)

Member Avatar for Phil++
-1
155
Member Avatar for shashanderson

Don't post your homework in the Geek's Lounge. I have already seen this same question posted in the c++ forum. Show some effort and look for your answers there.

Member Avatar for Phil++
-5
129
Member Avatar for bentlogic

I think it would be easier for us to help if you post the Student class as well. It would help if we can see how and where your methods are defined. Thanks

Member Avatar for peter_budo
0
347
Member Avatar for Austinjs0102

Your problem is here [code=java] System.out.print("Enter your first number "); Num1 = scan.nextInt(); { if (Num1 > 9 || Num1 < 0) System.out.println(" Must be a Number between 0 and 9"); } [/code] Why are you including this code in a block {}. Braces are not needed here. You make …

Member Avatar for Grn Xtrm
0
154
Member Avatar for Baseball400

Sorry about your teacher but we can't help you until you show some effort. We can't just do your homework for you. You won't learn anything that way. Post the code you have tried and we will be glad to help make corrections and suggestions. Remember to use code tags …

Member Avatar for Grn Xtrm
-1
111
Member Avatar for th3learner

You are missing an & in the third scanf. Try to make this correction. Also use code tags next time you post code. Thanks. EDIT You should also use int main() and set a return value of zero.

Member Avatar for Gaiety
0
111
Member Avatar for JavaOwnsMe

We really do want to help, but you have to show some effort before we do that. Post the code you have using code tags so we can make corrections and help guide you. We are not here to just do your homework for you.

Member Avatar for ejosiah
0
87
Member Avatar for shopnobhumi
Member Avatar for jjepoy

% is the modulus operator. Read this for more info. [URL="http://www.cprogramming.com/tutorial/modulus.html"]http://www.cprogramming.com/tutorial/modulus.html[/URL]

Member Avatar for Grn Xtrm
0
108
Member Avatar for vinodadi

No one's gonna send you code. Try to do it yourself and we will try to help you with your problems.

Member Avatar for Grn Xtrm
-2
38
Member Avatar for cgigandet

This line should be giving you a problem: [code=java] Scanner.out.println ("Enter larger number first : "); //request the input of the first interger [/code] Change Scanner to System. Also use code tags when posting code. Thanks Also when doing switch cases there is no need to enclose the case number …

Member Avatar for Grn Xtrm
0
90

The End.