First, the contents of the experiment
1. There are 5 students, each of whom has a test score of 3 courses in Chinese, maths and foreign languages. Programming statistics The total score and average scores of each student and the average score of all students in each section. Requires that the results be initialized in the program, and the result is output in tabular form.
2. seek the sum of the elements of each row, column, and diagonal of any square.
Additional Questions
1. Print the Yang Hui triangle in the following form (requires output 10 lines)
the Yang Hui triangle has the following characteristics: (1) The first column and the elements on the diagonal are all 1 (2) Except for the first column and the elements on the diagonal, the values of the other elements are the sum of the same column elements and the previous column elements on the previous line.
2. Monkey Choose King
A group of monkeys will choose the new Monkey King. The new Monkey King's choice is: Let n only the candidate monkeys in a circle, from a position from a sequence numbered 1~n. Starting from the 1th number, each round from 1 to report 3, where the report 3 of the monkeys are out of the circle, and then from the next close to a monkey start the same count. So constantly circulating, the last one left is chosen as the Monkey King. What is the original number of monkeys elected Monkey King?
Input Format: The input gives a positive integer n (≤1000) in a row.
output Format:
prints the number of the selected monkey in a row.
Input Sample:
11
Sample output:
7
This topic can be used in PTA Site registration Submission test. https://pta.patest.cn/pta/test/14/exam/4/question/808
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
- Experimental requirements: XXXXXXXXX
Code: (Use the Blog park's insert code function to insert the source code, do not, strictly in accordance with the standard format to write, learning to add the necessary comments)
Program Run Result:
Each experimental question is completed in the format described above.
Second, the experiment summary (the problem encountered in the experiment and the solution method)
1 、.......
2 、.......
........
Iv. Assessment of Operations:
Out of 10, wherein the program writing specification (indentation) and the results of 5 points, the program is not standard deduction 1 points, the program to complete a deduction of 2 points, the experimental summary 4 points, each class submitted the first 5 students 1 points. Bonus points: 1 points for homework review, 2 points for additional questions
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 tenth time job