ChatGPT ‘Lobotomized’? Performance Crash Sees Users Leaving in Droves Community Center by Johannes C. … be used to tell ChatGPT avoid disclaimers, or to seek clarification instead of starting a task the wrong way. Not all… viable strategies. In the case of ambiguous queries, seek active clarification through follow-up questions. Prioritize correction over apology to maintain… Clarification of pseudocode. Programming Software Development by pivotcity … at quite a bit i am just looking for some clarification in my code to determine if it is correct to… Clarification regarding initialization block Programming Software Development by rajesh1158 public class Twisty { { index = 1; } //need clarification here int index; public static void main(String[] args) { new … Re: Clarification of "Fake Signatures" Definition. Community Center Meta DaniWeb by JRSofty Thanks for the clarification. Needs clarification about Serialization concepts Programming Software Development by parthiban … are serilizable"[/B] . [COLOR=Green] I just need a clarification on that statement[/COLOR] . To understand that concept I myself… Concept Clarification Programming Software Development by vddmanikanta Hai everyone I need a clarification on the following issue Why does C++ compiler doesn't allow, to initialize static member function inside a class And please do tell me about what is meant by initializing a function (member function) Please help me in getting it clear thank you Have a nice day Re: Concept Clarification Programming Software Development by JasonHippy [QUOTE=vddmanikanta;853715]Hai everyone I need a clarification on the following issue Why does C++ compiler doesn't … Pointers, references and scope clarification Programming Software Development by IMJS Hello, please can I have some clarification to check I am not doing something very stupid? It … Re: Clarification of pseudocode. Programming Software Development by rubberman I often use pseudo code to express clearly what I want to do. However, do try to be consistent. Example, in your IF/ELSE/ENDIF block you assign the calculated amount to the variable Deposit_Amount, but at the end you print Loan_Deposit, and not Deposit_Amount, which is what I think you were intending. Also, your initial read/if/endif block where … Re: Clarification of pseudocode. Programming Software Development by pivotcity Great, Thanks for your help there "rubberman" Deposit_Amount updated and ill change the code around to include the DO/WHILE loop, makes more sens that way too. Thanks Re: Clarification of pseudocode. Programming Software Development by mike_2000_17 Are you sure that this line: Calculate Deposit_Amount = (0.25*Loan_Amount) + $5,000 shouldn't be: Calculate Deposit_Amount = (0.25*(Loan_Amount - $50,000)) + $3,750 and similarly for the other ones. That would seem to make more sense to me (at least, that's how income tax is calculated). I mean, the deposit amount should be a continuous … Re: Clarification of pseudocode. Programming Software Development by pivotcity I see where your coming from but i dont think the question goes into that much detail. Loan Amount - Deposit < $25,000 = 5% of loan value $25,000 - $49,999 = $1250 + 10% of loan over $25,000 $50,000 - $100,000 = $5,000 + 25% of loan over $50,000 Unless i am reading it wrong, in that case thankyou. Re: Clarification regarding initialization block Programming Software Development by NormR1 What prints out if you put a println in the blocks? Re: Clarification regarding initialization block Programming Software Development by JamesCherrill Any static initialisers are executed in the order in which they are declared before the class is first used. Any non-static initialisers are executed in the order in which they are declared, and before the constructor, when an instance us created. The order in which variables are declared isn't important unless they are initialised in their … clarification Programming Software Development by Simes Guessing Game with functions, classes, methods, etc [CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random from operator import itemgetter def isint(x): try: int(x) … Re: clarification Programming Software Development by TrustyTony You have not function definations in second version, you have else instead of elif in some conditions and you have not taken out the self parameters. Re: clarification Programming Software Development by Simes I know there are no function definitions in the second version of the code as I am trying to do the same thing minus definitions. So by replacing else with elif in some conditions (which ones?) and removing the self parameters then in theory it should work? Re: clarification Programming Software Development by TrustyTony Considering that you 91 lines and I have round 20 (minus Python3 check) in [url]http://www.daniweb.com/code/snippet287950.html[/url], you should consider some additional clean up also (I also do error check of number input). This is how you define regular functions: [CODE]def func(a,b): return a+b a,b=23,45 print func(a, b) [/CODE] Re: clarification Programming Software Development by Simes I know how to define functions as that is what I was taught, I just don't really get writing code without them, seems backwards to me. Where using functions, methods, classes, etc are a logical step and should be done like that from the start. Re: clarification Programming Software Development by Simes [CODE=python]import random from operator import itemgetter isint(x) try: int(x) return True except: return False print "Invalid guess. " getGuessValidator(): while True: strInput = raw_input("Please enter your guess, between 1 and 42: ") if isint(strInput) == True: strInput = int(… Re: clarification Programming Software Development by TrustyTony you are missing def. Re: clarification Programming Software Development by Simes [URL="http://www.daniweb.com/forums/post1260173.html#post1260173"]http://www.daniweb.com/forums/post1260173.html#post1260173[/URL] As I said in the first post, I need it too work like the original code with function definitions, classes, etc without actually having them defined or in use. Re: clarification Programming Software Development by TrustyTony Then see my code snippet, it has no functions. Add any extra functionality or exchange your code instead of mine. You must put the function definition code inline where they are called replacing parameter names with actual calling values. Clarification Programming Computer Science by vani krishnan Hi! I'm trying to operate a pc using EEG signals, as my academic project. I mean, using our thoughts instead of input devices to handle the operations of a computer. I hav EEG signals which I can process in Matlab. But, after that I hav no idea of how to use the signal to do the intended operation. Do anyone know which language I hav to use to … Re: Clarification Programming Computer Science by ddanbe The first thing that pops up is FFT: [example](http://www.ni.com/white-paper/4278/en/) Re: Clarification Programming Computer Science by phorce What exactly do you want to do with these signals? How do you think an FFT algorithm would fit into this? It's a pretty hard question; when you give so little about what it is you're trying to do. Please expand more. Re: Clarification Programming Computer Science by vani krishnan Phorce, I'm trying to stop a song which is being played with the help of those signls. As ddanbe said, I hav to process the signal using FFT first. Later I hav to use the processded signal or manipulate it in a programming lang to do the intended task. Re: Clarification Programming Computer Science by phorce You have not given a clear indication of how you plan on doing this. I.e. what methods are you trying to extract from the signal which will allow for you to "stop playing a song". Thinking about it; to me, you will need to have a means of training or modeling a system based on some kind of feature extraction. But, does need to be in the… Clarification Required abt AMD 64 bit Hardware and Software Hardware by cheenu78 hi all I am planning to buy a pc. I am thinking whether to go for AMD 64 with linux. I will be using java 1.5, jboss and related softwares. I want to know whether AMD 64 will support this. I may also install windows as dual boot. Which version of windows support AMD 64? Thanks in advance Srinivas Re: Clarification Required abt AMD 64 bit Hardware and Software Hardware by Coconut Monkey The A64 series of processors will happily run 32-bit applications, so you don't need a special 64-bit OS. The only issues you may come across are finding Linux drivers for your other hardware.