C language l- blog work 06

This work belongs courses C Programming Language II
Where the job requires https://edu.cnblogs.com/campus/zswxy/SE2019-3/homework/9891
My aim in this course is Become familiar with, the use of multi-branched structure and logical operators
In particular aspects of the job which place helped me achieve goals Better understanding and familiar with other programming operations
references C language textbook

1.PTA lab assignments

1.1 topic name

At the university campus, no bicycle, school work will be very convenient. But in fact, not everything is running a fast ride, because the rider always looking for the car, unlock, parking, lock your car and so on, some of it will be wasted, time is assumed to find a bicycle, car and bicycle lock time of 27 seconds; car parking lock time of 23 seconds; walking foot per second, 1.2 meters, 3.0 meters per second rider to walk. Please take a different judge distances to work, a fast ride or walk fast.

1.1.1 Data Processing

Data expression: Variable Bike Walk All
data processing: uses floating-point double, if else statements

1.1.2 Screenshot experiment Code

1.1.3 build test data

Input data Output Data Explanation
140 Bike Fast cycling
90 Bike Fast cycling
40 Walk Walk fast

1.1.4PTA submit a list and description


Description: forget to write the m input into the function scanf;
TIME1 = m / forget to write back. 3;
TIME1 and time2 wrong defined variables should be used double.

1.2 topic name

No. This question requires the preparation of the program, the students grade point average is calculated, and statistical pass (score of 60 points) a. Title ensure that the input and the output are within the range of integers.

1.2.1 Data Processing

Data representation: The N variable
data processing: uses floating-point double, as well as a variety of new expressions, there are total, average.

1.2.2 Screenshot Code

1.2.3 build test data

Input data Output Data Explanation
5 77 54 92 73 60 average=71.2 count=4 The average score of 71.2, there are four students pass
5 99 30 52 75 63 average=63.8 count=3 The average score of 63.8, three students failed
6 66 77 78 99 57 58 average=72.5 count=4 The average score of 72.5, there are four students pass

1.2.4PTA submit a list and description


Description: Forget the precise answer to one decimal place;
the left and right of the equal sign did not play spaces between the three expressions loop statement for;
the back did not play spaces.

2. Code peer assessment

2.1 Screenshot students Code

2.2 Screenshot their own codes


Description: The students of code looks longer than mine, but he's easier to understand than my code, because the code is separate from his definition of variables, allowing students easier to understand his code.

3. learning summary

3.1 learning progress bar

Week / Date This week the time spent Lines of code Learned Introduction Currently more confusing issues
7/2019.10.11 14 280 scanf, if else statements For scanf statement not particularly understand
8/2019.10.17 16 320 for the loop and the loop body Do not understand the operation of the loop body, and is not very familiar with the for loop statement
9/2019.10.25 20 430 Use custom functions and debugging code Not familiar with the process of debugging, debugging operations less skilled
10/2019.11.1 18 570 Multi-branch structure and logical operators Understanding of logical operators is not particularly clear, the multi-branched structure not familiar with

3.2 Cumulative lines of code words and blog

3.3 Summary and perception of learning content

3.3.1 learning content summary

Please use the form of the sort of mind map of what you have learned so far

3.3.2 summary

Although the process of doing their homework very well, especially at a time to submit written the code but display the wrong time, always feel a little puzzled, but at the same time very eager to have the correct answer, in the end want to know where is wrong or where an incorrect format. Written by someone else asking how they will feel easy, but when it will have to write a lot of mistakes, so the future still have to work harder and do more exercise.

Guess you like

Origin www.cnblogs.com/hsyzq/p/11782447.html