I. Contents of the study
- Mastering relational operators, logical operators, conditional operators
- Mastering the usage of common mathematical functions
- If statement (single branch, dual branch, and multi-branch)
- Using switch statements to implement multiple branches
- Understand multiple IF statements, if...else if ... Different scenarios for if nesting
Ii. contents of the experiment
- Judge the grade of grade.
Given a percentile grade, the grade of the output grade is required. 90 above is a,80-89 for b,70-79 for c,60-69 to d,60 and the following for E, input is greater than 100 or less than 0 o'clock output "input data error". Use if and switch statements respectively
- Determine the integer digits and reverse output.
Enter a positive integer with no more than 5 digits to determine the number of digits and reverse the output. Note the legitimacy of the validation data.
3. Palindrome number Problem
Given a 5-digit number, determine whether it is a palindrome number. For example: 12321 is a palindrome number. Palindrome number is characterized by the same bit and million, 10 bits and thousands of the same.
4. Calculate piecewise functions
y=-x+2.5 0 <= x < 5
y=2-1.5 (x-3) (x-3) 5 <= x < 10
y=x/2-1.5 <= x < 20
Enter the value of x (integer x), output y, and the result retains 3 decimal places.
Third, the experimental requirements
Job submissions must be written in the following format, not just the source code, or only the running results.
The format is as follows:
First, the contents of the experiment
1. Experimental Requirements: XXXXXXXXX
Code: (Copy the source code, do not, strictly in accordance with the standard format to write)
Program Run Result:
Each experimental question is completed in the format described above.
Ii. Summary of knowledge points in this course
1 、.....
2 、.....
........
Third, the experimental summary (the problems encountered in the experiment and solutions)
1 、.......
2 、.......
........
Job Evaluation:
Out of 10, of which the program writing specification (indentation) and the results of the correct 5 procedures, write not standard deduction 1 points, Knowledge points summary 2 points, the experiment summed up 2 points, each class submitted 5 students of the first 1.
Late hand assignment 0 points, a week later still did not hand in the work, 10 points upside down, found plagiarism, all the upside down 10 points. The grading of the work will be the main basis for the results and results of the final grade.
C Language Programming second job