Salcedo in partial fulfillment of the requirements for the bachelor's degree in computer science has been examined and recommended for admission. Accepted and approved as partial fulfillment of the requirements for the bachelor's degree in computer science. Mathematics and computer science unit Department of Physical Sciences Department of Physical Sciences and and Mathematics.
Novice Assistance in Java Introduction is an extension developed for BlueJ that helps new programmers get acquainted with Java debugging. The compile errors currently generated by the compiler bug do not necessarily point novice programmers in the right direction. Using NAJI, these compile errors are processed to get a more detailed output such as background, root cause and example.
INTRODUCTION
Background of the Study
Statement of the Problem
Shneiderman pointed out that "phrasing of error messages or diagnostic warning is critical" and "can significantly impact user performance and satisfaction". Although certain compilers can correctly flag some of the most common errors, more often than not these Java error messages are so cryptic to new language learners that they have a hard time identifying the errors, let alone applying fixes. While compilers detect the obvious syntax errors, their error messages do not necessarily point students in the right direction needed to correct the code.[7]
Research into compiler design and construction seems to have neglected the area of compiler error messages. A side effect of poorly designed error messages is that they lead programmers to take action in the form of editing the source code in an attempt to fix it without actually trying to understand the case. On the other hand, well-formed error messages help programmers take corrective action while helping them understand the cause.
This way the errors are clearly described, real causes are revealed and better error messages are generated. Compiling error messages helps students clarify concepts and misconceptions or improve their mental models.
Objectives of the Study
Significance of the Study
Error messages and analysis could be used to improve debugging in other similar languages.
Scope and Limitations
Assumptions
REVIEW OF RELATED LITERATURE
They have developed debugging training that will identify and correct any misconceptions programmers may have and improve their debugging skills. It is used in the creation of test cases, since testing is the dominant method of detecting errors. A programmer can apply the tool to newly written code, review condition reports that indicate potential crashes, and possibly update the code if an error condition is possible. This article introduces the PlanAni software animation system based on the concept of variable roles.
However, a prerequisite for a successful learning process with the environment is a motivational introduction that describes both the system and the main idea of the algorithm being learned. A key feature of Jeliot is fully or semi-automatic display of data and control flows. The development process of the Jeliot was research-oriented, meaning that all the different versions had their own research agenda, derived from the design of the previous version and their empirical evaluations.
In this paper, we explain the model of the system and introduce the functions of the user interface and the visualization engine. Furthermore, we have developed an intermediate language used to decouple the interpretation of the program from its visualization.
THEORETICAL FRAMEWORK
Various software metrics can also be applied, such as measuring the complexity of the code. Display all integers between lowerLimit and upperLimit in ascending order.” The student receives an almost complete program that already handles the input. Furthermore, its implementation can only handle compilable programs, which is not very useful given the nature of the research.
The code that caused the error is "appleSauce == apple sauce;" This error is a semantic error in which the student. This is a strategy in which the start in the parse tree is at the highest level and then down using the rewriting rules of a formal grammar. It tries to find the derivation for the input string, starting from the starting symbol.
This happens when the value assigned to a variable is not of the same type. Most of the functionality in other environments like Eclipse and Jbuilder is not in BlueJ.
DESIGN AND IMPLEMENTATION
Context Diagram
Use-Case Diagram
If it does not fall within the five, the unhandled error in NAJI will be displayed instead. Description The plugin checks the root cause of the error determined when the code was compiled. If it falls within the five subcases we solved, the NAJI error message shows.
Data Flow Diagram
Swimlane Flowchart
If it is one of the five errors, NAJI analyzes the error and outputs a clearer reason for the error and some examples of how to fix it.
Class Diagram
Technical Requirements
RESULTS
The novice programmer can see the more specific error message in the NAJI window that contains the root cause of the problem, suggestion and examples on how to fix it. If the novice programmer adds some illegal characters to name the class, the expected error is thrown by BlueJ. Brace expected error is also thrown when a throw statement is added in the class declaration.
When an opening parenthesis is used to begin a block of code, an expected parenthesis error is returned. The expected semicolon is a compile error caused by BlueJ when there is an extra parenthesis in a class method call. If a colon was used to end the sentence instead of a semicolon, the expected semicolon error is thrown.
Another cause of expected semicolon error is when a comma is used instead of a period to call a method of a class. New programmers also make the mistake of using x to multiply, which throws an expected semicolon error. When an additional equal sign is entered in the method call, this causes the cannot find symbol error.
Cannot find symbol An error is thrown when a variable is used but not declared in the code. Another error that causes the symbol to fail to compile is when a primitive data type is misspelled in the code. When a return type is added when declaring a void method, the compiler throws an expected error in parentheses.
If the returned value differs from the declared data type in the method declaration, it causes an incompatible types error.
DISCUSSION
CONCLUSION
RECOMMENDATION
BIBLIOGRAPHY
In ICSE '05: Proceedings of the 27th International Conference on Software Engineering (New York, NY, USA, 2005), ACM, pp. Retrieved April 14, 2016, from http://www.cs.engr.uky.edu/ ~lewis/essays/compilers/rec-des.html. Retrieved May 1, 2016, from http://www.cs.engr.uky.edu/~lewis/essays/compilers/rec-des.html.
APPENDIX
It is used at the end of a statement to help identify the compiler when the statement ends." + newline + newline. 34;When the class you are using is in a package, accessing the class requires a package import ." + new line. 34;Unless installed as a package and imported correctly, the files for the classes used in the program should be available in the same folder." + newline + newline.
34;Tells the program to execute a given section of code only if the condition evaluates to true." + newline. 34;To have a return value you can set, the return type must be changed to the same data type of the return value". 34;To have a return value that you can assign, the return type must be changed to the same data type as the return value." + new line.
Assigning null to it means that the object's data is null, that is, unassigned." + newline. 34;An assignment statement in Java uses the assignment operator (=) to assign the result of an expression to a variable ." + new line.
ACKNOWLEDGEMENT