C Language Programming 3rd Homework

Source: Internet
Author: User
Tags mathematical functions square root

The deadline of the 3rd time operation:? 2016-09-29 23:00pm

    1. The main contents of this course study:
    • Common mathematical functions
    • Mastering the For statement
    • Two branch structures, multi-branch structures, and ELSE-IF statements in a branching structure
    • Mastering input and output of character data and logic operation by four operation program
    • Further understanding of the characteristics and applications of data types and operators through a simple program.
    1. Experimental content:

1. Calculate the square root sequence √?1??? +√?2??? +√?3??? +? the sum of the first n items. You can include the header file math.h, and call the sqrt function to find the square root.

2. The subject asks to write the procedure, computes the staggered sequence 1-2/3+3/5-4/7+5/9-6/11+ ... The sum of the first n items.

3. The subject requires the preparation of procedures to calculate the students ' average performance and to count the number of persons passing (not less than 60). The title guarantees that both the input and output are within the integral type range.

Input format:

The input gives a non-negative integer n in the first row, which is the number of students. The second line gives n nonnegative integers, which are the scores of the N students, separated by a space.

4. Enter 10 characters to count the number of letters, spaces or carriage returns, numeric characters, and other characters.

5. Output All leap year years from 21st century to a year. Note: A leap year is a criterion that can be divisible by 4 but not divisible by 100, or divisible by 400.

6. Complete the classroom arrangement in the P38 exercises 2-13

Third, the experimental requirements:

1. Deadline of the operation:? 2016-09-29 23:00pm

2. Based on the assignment of the last lesson, upload the code of the experiment content to the https://coding.net/website.

3. Write an essay, divided into four parts:

(1) Experience: Write this lesson to learn the knowledge and experience, the length of study, the learning process encountered problems, problem solving methods and doubts and so on.

(2) The next lesson pre-Homework preview: Preview nested IF statement and switch statement to achieve multi-branch structure programming, complete the textbook P55 example 3-8, and in the next class with a U disk copy come in class spot checks. In this essay to write the preview of how much time, the preview process mastered what content, and what do not understand.

The format of the essay is as follows:

Title: experiment three-- For Statement and branch structure else-if

    1. The knowledge points learned in this lesson:

???? (1) .....

???? (2) .....

??? ? ...........

2. Problems encountered during the experiment and solutions:

????? (1)

????? (2)

??????? .......

3. Experiment Experience

?????? .........

4. Preview Summary

?????? .........

Iv. Additional Questions

for any integer N , Symbolic functions Sign (n) is defined as follows:

Write a program that calculates the value of the function on any of the input integers.

Five, the operation evaluation method:

Total 10 points: of which, the timely submission of 5 points, according to the requirements to complete the workload of 2 points, according to the contents of the work as appropriate points (including the experimental steps, format, comments, the correctness of the results, etc., the first job is now only the correctness of the request), delay a day deduction of 2 points, until 10 points, If you want to take back this time of 10 points, you need to decorate additional work to compensate, such as additional questions, according to the completion of the situation given not more than 10 points.

C Language Programming 3rd Homework

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.