C-II operations 06

This work belongs to the curriculum C Programming Language II
Where the job requires https://edu.cnblogs.com/campus/zswxy/SE2019-4/homework/9892
My aim in this course is C language proficiency using programmed for
This job helped me achieve that goal in terms of specific PTA operations, as well as skilled programmer to find errors
references https://zhidao.baidu.com/question/467715860.html

1.PTA lab assignments

1.1 Title: at the university campus, no bicycle, school work will be very easy but in fact, not everything is running a fast ride, because the rider always looking for the car, unlock, parking, lock your car, etc., this. Some delay time hypotheses to find the bicycle, car and bicycle lock time of 27 seconds;. car parking lock time 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.2 Data Processing

Data representation: the introduction of the integer variable n
Data processing: if else statements deal with the problem

1.3 Experimental Screenshot

1.4 Test Data

Input data Output Data Explanation
78 walk Walk fast
100 all As fast as
155 bike Fast cycling

1.2PTA submit a list of instructions


Compile error: missing a semicolon.

2. Title: Requirements write a program to calculate students' grade point average, and statistical pass (score of 60 points) number. Title ensure that the input and the output are within the range of integers.

2.1 Data Processing

Data processing: reference to the n, i, b variables, for loop

2.2 Experimental Screenshot

2.3 Test Data

Input data Output Data Explanation
15 23 29 54 98 average=43.8 count=1 The average number of people passing score 43.8 1
56 67 79 88 average=72.5 count=3 The average number of people passing score 72.5 3
19 65 87 average=57 count=2 The average number of people passing score 57 2

2.4PTA submit a list of instructions

3. Code peer assessment


3.1 Screenshot their own codes



Although different input variables, actually no different, mainly because I too much trouble

4. learning summary

4.1 learning progress bar

Week / Date This week the time spent Lines of code Digital blog
Sixth Week 15 hours 60 531
Seventh Week 18 hours 81 834 -
Eighth Week 20 hours 75 819
Week Nine 20 hours 103 1173
The tenth week 21 hours 79 796

4.2 Summary and perception of learning content

.while statement, loop statement, fact, int define a new function. ; Logical operators, and priority

Guess you like

Origin www.cnblogs.com/liuanyi/p/11779619.html