C language seventh week job

problem answer
This work belongs courses c programming language
Where this requirement in the job https://edu.cnblogs.com/campus/zswxy/CST2019-3/homework/9933
My aim in this course is Learn to use a switch statement, skilled use of C language.
This job helped me to achieve specific goals in terms of what The switch statement written procedures for mind mapping summarized.
references Primer Plus C language programming

A PTA lab assignments
1.1 Topic Description: Calculate the number of days
this question requires the preparation of program calculates a certain period of a day is the day of the mid-year.
1.1.1 Data processing
data representation: Using mathematical functions math
data processing: using nested if-else statements and switch statements.
1.1.2 Experiment code theme
Uploading-Image-174175.png
Uploading Image-991852.png-
1.1.3-made test data
input data | Output Data | Description
- |: -: |: -: | -:
2000/03/02 | 62 | no
2001/04/16 | 106 | no
1998/10/17 | 290 | no
1.1.4 PTA submit a list and description
Uploading-Image-614379.png
Q1: compile error: punctuation did not use the proper use of Chinese symbols
A1: counseling students, reading Plus Primer
Q2: scanf statement% forget fought
A2: renumbered fight

2.1 title description;
this question requires the preparation of program reads N percentile scores of students, the statistical distribution of a five-point performance. Conversion rule fifth percentile scores to the score system:
2.1.1 Data processing
data representation: ABCDE defined variables is 0,
the data processing: Using the scanf, using the if statement, the flow structure is a branched structure.
2.1.2 Experiment code theme
Uploading-Image-349864.png
Uploading Image-205249.png-
2.1.3-made test data
input data | Output Data | Description
- |: -: |: -: | -:
. 8
. 5. 6. 7. 8 1 3 10 9 | 9 3 6.5
2.1.4 PTA submit a list and description
Uploading-Image-113045.png
Q1: did not distinguish int variables, redefined after the read textbooks, resolved
A1: to re-examine the topic is resolved

II. Code peer assessment
of my code
Uploading-Image-174175.png
Uploading-Image-991852.png
students Code
uploading-image-444252.png

Compare:
His code more attention than my code more structured format of
four study summary
4.1

4.2 Cumulative lines of code words and blog

4.3 learning content summary
to learn more about some of the logical operators, and more skilled master basic functions. for between loops and nested if-else statements, as well as nested if statements;
learning perception
learning content more complex, but we are always moving forward, walk uphill. At the same time can not learn to forget behind the front, also we need to play the code because we can not decline.

Guess you like

Origin www.cnblogs.com/410869179ZCQ/p/11822291.html