C language I- blog park job 04

A. Header

This work belongs to the curriculum C language programming Ⅱ
Where the job requires https://edu.cnblogs.com/campus/zswxy/CST2019-4/homework/9772
My aim in this course is Proficiency in C language, and enhance professional competence
This job helped me achieve that goal in terms of specific Learn to use for loop
references C Programming Language

II. This week job

1.PTA lab assignments

1.1 topic name

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

1.1.1 Data Processing

Expression Data: Using N, i; double item, sum ; represents an integer N, i, double floating point
data processing: Application for loop, and treated with 1.0 / denominator represents the cumulative fraction is circulated, the denominator is incremented every 2

1.1.2 Screenshot experiment code

1.1.3 build test data

Input data Output Data Explanation
20 cost=2.479673 Less than 50
50 cost=2.937775 Equal to 50
70 cost=3.106007 More than 50

1.1.4PTA submit a list and description


Compile error: less defined variables.
Wrong Answer: Forget the variable assignment.

1.2 topic name

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

1.2.1 Data Processing

Data are expressed: The title using N, i and sum the three variables, where N is an integer variable, i and belonging to the sum of double precision floating point variable
data processing: The title using the assignment operators, relational operators.

1.2.2 Code Screenshot

1.2.3 build test data

Input data Output Data Explanation
23 sum = 2.549541 Sample topics
9 sum = 2.080624 Self-test data
50 sum = 2.937775 Self-test data
100 sum = 3.284342 Self-test data

1.2.4PTA submit a list and description


all right:. . .

2 Code peer assessment

My code

classmates code for

my code

classmates Code

Code Analysis

3 learning summary

3.1 learning progress bar

date This week the time spent Lines of code Learned knowledge Introduction
10.14-10.18 8 hours 110 for statement, specifying the number of cycles Programming

3.2 Cumulative lines of code words and blog

time Words blog The number of lines of code
the first week 1132 26
the second week 556 16
The third week 733 42
the fourth week 1560 85

3.3 Summary and perception of learning content

3.3.1 learning content summary

This week we learned Fahrenheit - Celsius temperature conversion and for loop structure. Brackets for loop structure which has three sections, including assignment, qualification and expressions. Some data processing loop for processing

3.3.2 Learning Experience

Gradually began to skillfully and slowly began to keep pace with the rhythm, but still feel there are some difficulties, there are still many who do not understand the need to continue to refuel, before class to do the preparation, after school to complete a good job seriously

Guess you like

Origin www.cnblogs.com/200618-ldq/p/11700088.html