I work 004 0C language

problem answer
This work belongs courses c language design 1
The operational requirements where https://edu.cnblogs.com/campus/zswxy/CST2019-4/homework/8657
My aim in this course is Familiar with the operation of the compiler
In particular aspects of the job which helped me achieve goals Basic language and format
references "Question the wisdom" "PTA system Frequently Asked Questions"

1.PTA lab assignments (20 points / questions)

1.1 1 topic name

  • This problem requires programming, calculates the sequence 1 + 1/3 + 1/5 + ... and the first N.

    1.1.1 Data Processing

  • Data are expressed: using the integer variable int, double double precision floating point variable.
  • Data treatment: the sum = sum + 1.0 / calculation expressions and odd minutes ago about one item and n i is the cycle program.
  • 1.1.3 build test data

    Input data Output Data Explanation
    20 2.479673 Greater than 0
    30 2.682377 Greater than 0
    40 2.826208 Greater than 0
    -10 0.000000 Less than 0

    1.1.4 PTA submit a list and description

  • Wrong Answer: This is mainly for the back of expression should be i + 2 I wrote i ++.
  • Some errors: This is mainly my carelessness should be i <= 2N, I have been i <= N.

    1.2 Question 2

  • This problem requires programming, calculates sequence - 1/4 + 1/7 - 1/10 + ... and the first N.

    1.2.1 Data Processing

  • Data are expressed: the use of double int integer variable and double precision floating point variable
  • Data processing: with the item = flag * 1.0 / de and item sum = sum + expression and cyclic structure associated therewith.

    1.2.2 Code Screenshot

  • 1.2.3 build test data

    Input data Output Data Explanation
    10 0.819 Greater than 0
    30 0.830 Greater than 0
    40 0.831 Greater than 0
    -10 0.000 Less than 0

    1.2.4 PTA submit a list and description

  • Compile Error: The i ++ written i + 3
  • Compile error: not to de assignment and flag

    2. Code peer assessment (5 minutes

  • Students Code Screenshot 1
  • Own Code Screenshot 1
  • This code and I compared his merits in a very clear and sum in order to i assigned a value makes it easy to understand
  • Students Code Screenshot 2
  • Own Code Screenshot 2
  • I compare this code and I feel my students even more user-friendly in terms of expression, that is, his more complex my simpler

    3. The study concluded (15 points)

    3.1 Learning progress bar (5 points)

    Week / Date This week the time spent Lines of code Learned knowledge Introduction Currently more confusing issues
    Seven /10.14-10.20 three hours 79 for recycling program On aspects related to the assignment is not very clear

    3.2 Cumulative lines and word blog (5 minutes)

3.3 Summary and perception of learning content (5 points)

3.3.1 learning content summary

  • This week I feel better than last week's simpler just to seize the calculation process for recycling program is very easy to do it.

    3.3.2 Learning Experience

  • This week has been a better understanding of the c language, I am now the problem is in terms of the assignment is not very clear, to spend more time in this area.

Guess you like

Origin www.cnblogs.com/Neptume/p/11693682.html