当前位置:网站首页>C language I blog assignment 05

C language I blog assignment 05

2020-11-20 23:20:08 N,c

Which course does this assignment belong to https://edu.cnblogs.com/campus/zswxy/SE2020-2
Where are the requirements for this assignment https://edu.cnblogs.com/campus/zswxy/SE2020-2/homework/11527
The goal of this assignment < Learned new data types , Yes if else The sentence has a deeper understanding >
Student number <20209120>

One 、 This week's content & The goal is

The first 3 Chapter Branching structure 3.1-3.2 Familiarize students with multi branch structure 、 Character data types and logical operators .

Two 、 This week's homework

Which course does this assignment belong to C Language programming II
Where are the requirements for this assignment https://edu.cnblogs.com/campus/zswxy/SE2020-2/homework/11527
My goal in this course is < Learn to use character type , Strengthen your logical ability >
This assignment helps me achieve my goal in that specific aspect < Know how to use character type to solve problems , Know how to use if else Embedding of >
reference <C Language programming >

3、 ... and 、 Homework this week

1.PTA Experiment assignment
2. Code reviews
3. Learning summary

Four 、 Assignment format

1.PTA Experiment assignment

1.1 Title 1

use if-else Statement programming , Based on the input of the 100 point score score( Integers ), To the corresponding five point system grade Post output .

When 90≤ score≤100 when , grade=A ;

When 80≤ score<90 when ,grade=B;

When 70≤ score<80 when , grade=C;

When 60≤ score<70 when ,grade=D;

When 0≤ score<60 when ,grade=E.

If you enter grades score<0 or score>100, The output “Input error!”.

1.1.1 Data processing

Data expression : Variables are used score, Type is plastic ,score Assignment comes .
Data processing : Use of the if else structure .

1.1.2 Screenshot of experimental code

1.1.3 Make test data

input data Output data explain
58 E 0<=score<60
67 D 60<=score<70
76 C 70<=score<80

1.1.4PTA Submit list and description

problem : There is a format error ,“Input error” There is no space in , This leads to incorrect answers .

resolvent : stay “Input” Add a space after .

1.2 Title 2

Read a from the keyboard 4 Integers of digits , How many bits in the number are 7?

1.2.1 Data processing

Data expression : Variables are used a,b,c,d, It belongs to character type , From your own assignment .
Data processing : Use of the if else structure .

1.2.2 Screenshot of experimental code

1.2.3 Make test data

input data Output data explain
3654 0 a!=7b!=c!=7d!=7
7777 4 a=7b=7c=7d=7

1.2.4PTA Submit list and description

problem :1. There was an error in the compilation .

2. The answer is partly correct .

resolvent :1. There's a letter that's not defined , Define the letter .

2. The character type is not typed “''”, The result is partly correct .

2. Code reviews

Screenshot of classmate code

Screenshot of my own code

Different :1. I've typed everything out , I didn't see the topic clearly , He is concise and clear, directly typing the code required by the title .

2. I separate boys and girls , And he said it together .

Screenshot of classmate code

Screenshot of my own code

Different :1. He used the method of finding the remainder , And I did it directly in the character type way .

2. I am using if else Structure to execute , He used it directly if Embedded to get .

3. Learning summary

3.1 Learning progress bar

Zhou / date Time spent this week Lines of code Brief introduction of the knowledge learned The confusing question at present
Week eight /10.19~10.25 21 Hours 123 Learned to type with code Hello World! nothing
Week 9 /10.26~11.1 18 Hours 389 Learned to use code to calculate addition and subtraction nothing
Week 10 /11.2~11.8 14 Hours 526 Learned to use for Loop statement The use of shaping and floating point types
Week 11 /11.9~11.15 18 Hours 638 Learned to use the calling function , Calculation n! Where to call a function
Week 12 /11.16~11.22 16 Hours 864 Learned to use character type ,if else structure How to convert character type to other data type

3.2 Accumulate lines of code and blog words

Time Blog words Lines of code
Week eight 172 123
Week 9 355 389
Week 10 658 526
Week 11 868 638
Week 12 946 864

3.3 Learning content summary and perception

3.3.1 Summary of learning content

3.3.2 Learning experience

Learning experience : Although the topic is not so difficult , But I always get stuck on certain topics for a long time , It's not that there is no way to solve the problem, but my own method. There are always some mistakes after submitting it , Sometimes it takes a long time to know that it's a symbol problem .

idea : Pay more attention to details in later exercises .

版权声明
本文为[N,c]所创,转载请带上原文链接,感谢

随机推荐