C Language Programming second job

Source: Internet
Author: User

I. Contents of the study

    1. Mastering relational operators, logical operators, conditional operators
    2. Mastering the usage of common mathematical functions
    3. If statement (single branch, dual branch, and multi-branch)
    4. Using switch statements to implement multiple branches
    5. Understand multiple IF statements, if...else if ... Different scenarios for if nesting

Ii. contents of the experiment

    1. 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

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.