C word blog I work 08

A week teaching content & goals

  • Chapter 4 looping structures 4.1-4.2 familiar with while and do-while structure to solve the problem.

    Second, this week the head job

This work belongs to the curriculum C Programming Language II
Where the job requires Work requirements
My aim in this course is Proficient while and do-while structure to solve the problem
This job helped me achieve that goal in terms of specific For recycling while
references literature

Third, the work week

1.PTA lab assignments

 

 

1.1 Topic name: For a given positive integer N, the number of bits required it and the sum of the digits.

  • 1.1.1 Data processing
    data representation: definition of x, m, n integer
    data processing:
    int x, m, n
    Scanf (call N)
    m = 0
    n-0 =
    the while (! = 0 X)
    n-n-+ X = 10%
    x = x / 10
    x 1 plus
    output sum, the value of x
  • 1.1.2 Screenshot experiment code
  •  

     

  • 1.1.3 build test data
Entry Export
352 3 10
123456 6 21
  • 1.1.4 PTA submit a list and description

     

     

    1.2 Topic 2:

    A length of 1 inch worm, the bottom of an inch deep N well. The worm is known inch per minute to climb U, but must then rest for 1 minute to climb. During the break, the worm has dropped D inch. In this way, climb and glide repeated. I ask, how long it takes to climb out of worms well?

    Here requires less than 1 minute in 1 minutes, and assuming that as long as a particular climb during the worm's head reached the top of the well, then the worm to complete the task. Initially, the worm is lying at the bottom (i.e., the height of 0).

  • 1.2.1 Data processing
    data representation: definition of x, y, z, time, s
    Data processing:
    define time = 0, s = yz
  • Are there distance after while (x> 0) // subtract determined every two minutes
  • if (x> y) // x = xs // determined from two minutes rise time + 2 // plus two times the next two minutes will not reach the roof
  • else go directly to the last paragraph of time +1
  • Output time.
  • 1.2.2 Code Screenshot
  •  

     

  • 1.2.4 PTA submit a list and description

    •  

       

       

      Mistakes: forget to add &

    • Compile Error: No scoring numbers.
    • 1.2.3 build test data



    2. Code peer assessment

  • Students Code
  • I Code

    Review:

3. learning summary

3.1 learning progress bar

Week / Date This week the time spent Lines of code Learned knowledge Introduction Currently more confusing issues
10/9-10/12 Two days Line 87 Integer and floating-point, printf, scanf statements, operators, etc.  
10/16-10/18 one day Line 90 for loop  
10/23-10/25 20 hours Line 89 call function  
10/30-11/2 25 hours 120 Four application operations, character  
11/6-11/8 2 days 126 switch statement  
11.11-11.17 10 hours 190 Familiar with while and do-while structure to solve the problem  

3.2 Cumulative lines of code words and blog

 

 

3.3 Summary and perception of learning content

    • 3.3.1 learning content summary
      learning cycle structure while and do-while
    • My understanding 3.3.2
      A: None

Guess you like

Origin www.cnblogs.com/wuyongxunb/p/11870680.html