C language I work 07

A week working head

This work belongs to the curriculum C Programming Language II
Where the job requires https://edu.cnblogs.com/campus/zswxy/CST2019-1/homework/9935
My aim in this course is Good proficiency in C language, develop their thinking skills, while accelerating the speed of the code knock.
This job helped me achieve that goal in terms of specific I help skilled master switch statement and layout capabilities
references Baidu Encyclopedia, CSDN blog, C language programming

Second, the work week

1.PTA lab assignments

1.1 student achievement statistics

1.1.1 Data Processing

Data are expressed: the use of N, percent, score = 0, I, A = 0, B = 0, C = 0, D = 0, E = 0; N represents a positive integer input, score represents student performance, percent represents a fraction the ten;
I represents a first loop; a represents 90-100 minutes person, B represents a 80-90 minute person, C represent 70-80 minutes people, D denotes 60-70 people, E is less than 60 minutes people. Type: int int belong.

Data processing: use a for loop and loop switch

1.1.2 Screenshot experiment code

1.1.3 build test data

Input data Output Data Explanation
N=3,score=100,score=100,score=100; A=3,B=0,C=0,D=0,E=0 A score greater than 90 belong to
N=3,score=60,score=60,score=60; A=0,B=0,C=0,D=3,E=0 Score equal to 60 belong to D
N=3,score=80,score=70,score=60; A=0,B=1,C=1,D=1,E=0 Results equal to 80 belong to B, results equal to 70 belong C, D belong results equal to 60

1.1.4 PTA submit a list and description

Description:

Partially correct: because the run-off on Dev, so only an error, this error is when I run regardless of how much to lose, are A = 0, B = 0, C = 0, D = 0, E = N; after his examination revealed the switch statement in the for loop
and in the beginning I used to braces for loops and switch statements separated.

1.2 integer sorting process

1.2.1 Data Processing

1.2.2 Code Screenshot

1.2.3 build test data

Input data Output Data Explanation

1.2.4 PTA submit a list and description

2. Code peer assessment

Own Code Students Code

difference:

Own Code Students Code

difference:

3. learning summary

3.1 learning progress bar

Week / Date This week the time spent Lines of code Learned knowledge Introduction
10/8-10/12 5h 224 if-else statement input and output formats
10/13-10/18 12h 263 for loop, how to calculate the cumulative title
10/19-10/26 15h 334 How to write custom functions and more familiar for loop
10/26-11/2 14h 355 How to use a logical expression and else-if statements
11/2-11/8 13h 284 How to use a switch statement

3.2 Cumulative lines of code words and blog

3.3 Summary and perception of learning content

3.3.1 learning content summary

3.3.2 Learning Experience

Guess you like

Origin www.cnblogs.com/zengzi123/p/11806184.html