20145301 Java Programming Lab report one: Familiarity with the Java development environment

Source: Internet
Author: User
Tags case statement

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.