- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
i can't say mch abt myslf rili...cos i dn't enjy doinq dat. Anyway ful name is samson dadson jnr. kwesi, one thinq abt me is i dn't knw hw to qive up, dou its qud one shd knw whn to qive up and i'm lukinq 4wrd to sum1 who can teach me dat
15 Posted Topics
Re: Well you need to understand the if syntax. You probably mean to write `if matirial == 'math' or matirial == 'Math' ...`. I won't talk about the use of `in` since you're not using that in your code, but I'll advice you read on that. It's much cleaner and efficient. | |
Re: I'm sure it has nothing to do with the code pasted @Zzucker. Just check your use of tabs and spaces and make sure you've aligned everything right. Python is so particular about indentation (It's part of the syntax). | |
Re: to prevent future errors, total should be of type double, average should be of type double too.. and divide by 10.0 instead of 10. | |
Re: there should be no semi colon after the if expression. just after the statements. check that too. if(expression) statement; //not this way: if(expression); statement; | |
the problem I have here is: when I input an integer it works fine, but when i input any other thing, it doesn't give me a chance to input again when the loop iterates, it just keeps printing "error type the right thing" to the screen even though "cin var" … | |
Re: I can help you if you show me what you've done so far. Post your and lemme see if I can clear the mess :) | |
Re: I guess you're very lucky to have gotten that answer since you just pasted your question here | |
Re: you've done it right this time but you've assigned "true" to "isVowel.isVowelValid(letter)" rather than compare. Use "==" not "=" | |
Re: I think you should create a method that calculates the value of the inventory rather than calculating it in the main and also as an instance variable in your class pizza double totalInventoryValue(){ return poductInstock * productPrice; } then call this method in your main to get the value System.out.println(nf.format(totalInventoryValue())); | |
Re: i'm interested in solving this problem but I'm more interested in you being able to solve it and solve similar ones so try something, put what you know together and everyone here will be willing to help you make your code work | |
Re: at least open notepad and write "class class_name{ }" it'll go a long way to help you | |
Re: please read a little something about this platform before you ask for help. Like Ancient Dragon will say "we don't do your homework for you". Programming demands that you try, retry and think harder before you ask for help :) | |
Re: I prefer the first style :) the second style increases the lines of code. Also the second style makes it feel like the first line is separate from the ones that come after it | |
Re: I think you are in the wrong place. First learn something lil about java, try out something, and return here for help :) or try googling the source code if you're not interested in programming |
The End.