20145301 "Java Programming" experimental report One: Java development environment Familiar course: Java programming experiment name: Java development Environment Familiar experiment purposes and requirements:
1. Students who do not have a Linux base are advised to start with the Linux basics (new version) Vim Editor course;
2. Complete the experiment, write the experiment Report, the experiment Report template see QQ Group, pay attention to the experiment report focus is the running result, encounter problem (tool find, install, use, program edit, Debug, run, etc.), solution (empty method such as "Check Network", "Ask classmate", "read book" Equal to 0 points) and analysis (from which can get what revelation, what harvest, lessons, etc.);
3. In the lab report, Count your PSP (Personal software Process) Time:
Experimental content:
Compile and run simple Java programs using the JDK and IDE
Practice topic: Implement arithmetic and Test.
Program Design Ideas: Demand analysis:
Need to run arithmetic, that is, add, subtract, multiply, except four kinds of operations.
Requires the user to have input, so call the Scanner instance, import Java.util.Scanner;
When the user needs to select a different operation, it is implemented with a switch and case statement.
Design
1. Enter a number defined as double-precision floating-point data, X.
2. Then choose the mode of operation, subtraction, through switch and case implementation.
3. Enter the second number defined as double-precision floating-point data, Y.
4. Directly output the corresponding calculation result by System.out.println ().
Program code
Test results
Other experiences
The test is the first Java test, get the topic is arithmetic, get the topic feel very simple, but really take to do when found to have encountered a lot of trouble, such as in the definition of scanner class, initially considered ill-conceived, can not pass, for this to ask the classmate, and then to modify to achieve. Programming to later, with the continuous deepening of thinking, found that their coding ability can not be followed by their own thinking, such as how to achieve scores, how to carry out repeated calculations, and so on. So this time only achieved two number of simple four kinds of operations, through the experiment, realized that the practice of knowledge, experience the lack of their own space and progress. Continue to work hard and hope that the next test will make new progress.
PSP (Personal software Process) Time:
Steps |
Time Consuming |
percentage |
Demand analysis |
15 minutes |
8.4% |
Design |
1 hours |
33.3% |
Code implementation |
50 minutes |
27.7% |
Test |
10 minutes |
5.6% |
Analysis Summary |
45 minutes |
25% |
Resources
- "Java Learning Notes"
- Learning Guide for Java Learning notes
- Experiment with familiarity with a Java development environment (Linux + Eclipse)
20145301 Java Programming Experiment report one: familiarity with the Java development environment