#C language blog I work 06

This work belongs to the curriculum C Programming Language II
Where the job requires [Job] ( https://edu.cnblogs.com/campus/zswxy/SE2019-1/homework/9889 )
My aim in this course is Learning to master branch structure, strengthening exercises.
This job helped me achieve that goal in terms of specific Basic programming exercises to strengthen my knowledge horizons.

1PTA jobs


1.1 calculate the train running time (15 minutes)
This question requires according to departure time and arrival time of the train, write a program to calculate the time used the whole trip.
First, experimental shots

1.1.2 PTA submit a list

Q1: b = == written in the
A1: no homework carefully, but later corrected to discover
Q2: added a minute later ";"
A2. After checking corrected.

1.1.3 build test data

Input data Output Data Explanation
1201 1530 03 :29 Sample
1320 1600 02:40 No error

1.1.4 Data processing and expression
data Expression: the problem in a two-shaping variables, a, b.
The data processing: a = a / 100 * 60 + a% 100; b = b / 100 * 60 + b% 100;

7-4 Statistics student grade point average and pass number (15 points)

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 integers in the range of
1.2.1 Experimental screenshot

submitted job 1.2.2

1.2.3 build test data

Input data Output Data Explanation
5 77 54 92 73 60 average = 71.2 count = 4 Sample
6 55 59 78 72 60 68 average = 65.3 count = 4 Correct

Description 1.2.3PTA
Q1: not enclosed by {} between the if else.
A1: behind the cause compile errors.
1.2.4 Data processing and expression
data representation: This question using the if else statements and branching structure.
Data processing: for (I = 0; I <n-; I ++)
{Scanf ( "% D", & Grade);
Total = Total + Grade;

2. Code peer assessment

One,
Ta

Me

Q1: his function can be more meaningful instead of having Ha hh, mm abstract data such.
A1: by hour, minuter more beautiful. At the same time striking.

3. learning summary

3.1 learning progress bar

week This week the time spent Lines of code Learned knowledge Introduction Currently more confusing issues
fifth week 8 hours Line 56 Constants, variables, data types, and no
Sixth Week 12 hours 125 line Formatting input function scanf (), for loop no
Week Seven 19 hours 286 line Branch structure no
Eighth Week 15 hours Line 338 Defining and calling functions No

3.2 Cumulative lines of code words and blog

time Lines of code Words blog
Sixth Week 130 850
Week Seven 190 1050
Eighth Week 250 1390
Week Nine 380 1670

3.3 Summary and perception of learning content

3.3.1 learning content summary
learn many types of functions, need lots of consolidating, strengthening exercises. quality improvement.
2. Maintain a study of heart. Persevere. Let yourself to do better.
3. Practice exercises every day, consolidate if-else, branching structure, use function calls.

Guess you like

Origin www.cnblogs.com/QQ709678842/p/11783616.html