Thursday, March 19, 2020

Artificial Intelligence Essays

Artificial Intelligence Essays Artificial Intelligence Essay Artificial Intelligence Essay What is Artificial Intelligence 1) o ARTIFICIAL INTELLIGENCE (AI) tools that exhibit human intelligence and behaviour including self-learning robots, expert systems, and voice recognition, natural and automated translation. * 1 o Computer programs developed to mimic human intelligence, such as reasoning, learning, problem-solving, and making decisions. Artificial intelligence programs enable computers to perform tasks such as playing chess, proving mathematical theorems, etc. * 2 o The use of programs to enable machines to perform tasks which humans perform using their intelligence. Early AI avoided human psychological models, but this orientation has been altered by the development of connectionism, which is based on theories of how the brain works. In connectionism, complex functions, including learning, involve the transmission of information along pathways formed among large arrays of simple elements. * 3 My own definition 2) An Artificial Intelligence is an computer program that performs a task that Human intelligence is capable of doing. Non Artificial Intelligence 3) Car manufacturing robots: these are kind of non artificial intelligence the for this is that they do not think or recognize things for example if there is not any door to be fixed the robots will do the action even if they are not carrying anything. Medical: Non Artificial systems are also used in medical field. Where they use it to help the patients and find diseases also use them for treatment. As I said before these machines dont have brains of their own, there has to be someone controlling these machines. MIS ; DSS System 4) MIS Management Information System are information that is computer based, which is used within the organization. An information system is comprised of all workings such as operate and disoperate data or information. It generally includes hardware and software people, communications system such as telephone lines and data are include things such as inputting data, processing data into information or storage of data, the output of this is called the management reports.**1 DSS Decision Support Systems is an interactive computer-based system which helps to make decision that use communications technologies, data, documents, knowledge to discover and solve problems, Decision Support System is a common name for any computer application that helps a persons ability to improve make decisions.**

Tuesday, March 3, 2020

Fix Common Runtime Errors in Java With Careful Debugging

Fix Common Runtime Errors in Java With Careful Debugging Consider the following segment of Java code, stored in a file called JollyMessage.java: // A jolly message is written to the screen! class Jollymessage {   Ã‚  Ã‚  public static void main(String[] args) {   Ã‚  Ã‚  Ã‚  Ã‚  //Write the message to the terminal window   Ã‚  Ã‚  Ã‚  Ã‚  System.out.println(Ho Ho Ho!);   Ã‚  Ã‚  } } At program execution, this code will produce a runtime error message. In other words, a mistake has been made somewhere, but the error won’t be identified when the program is compiled, only when it is run. Debugging In the example above, notice that the class is called â€Å"Jollymessage† whereas the filename is called JollyMessage.java. Java is case sensitive. The compiler won’t complain because technically there is nothing wrong with the code. It will create a class file that matches the class name exactly (i.e., Jollymessage.class). When you run the program called JollyMessage, youll receive an error message because there is no file called JollyMessage.class. The error you receive when you run a program with the wrong name is: Exception in thread â€Å"main† java.lang.NoClassDefFoundError: JollyMessage (wrong name: JollyMessage).. Common Runtime-Error Solutions If your program compiles successfully but fails at execution, review your code for common mistakes: Mismatched single and double quotesMissing quotes for stringsIncorrect comparison operators (e.g., not using double equal signs to indicate assignment)Referencing objects that dont exist, or dont exist using the capitalization supplied in the codeReferencing an object that has no properties Working within integrated development environments like Eclipse can help you avoid typo-style errors. To debug productionalized  Java programs, run your Web browsers debugger- you should see a hexadecimal error message that can assist in isolating the specific cause of the problem. In some situations, the problem may lie not in your code, but in your Java Virtual Machine. If the JVM is choking, it may kick out a runtime error despite the lack of a deficiency in the programs codebase. A browser debugger message will help isolate code-caused from JVM-caused errors.