This week the job header
This work belongs to the curriculum | C Programming Language II |
---|---|
Where the job requires | Job Link |
My aim in this course is | The use of the C programming language to solve some simple math problems |
This job helped me achieve that goal in terms of specific | Learn if else statements, etc. |
references | Article link |
This week work
1.PTA lab assignments
1.1 Question 1
Description Title : To promote residents to conserve electricity, power companies performing province "price ladder", a mounting table of a residential user tariff is divided into two "step": May consumption 50 kwh (containing 50 kwh ) or less, the price is 0.53 yuan / kWh; over 50 kwh, the excess portion of the electricity price increase 0.05 yuan / kWh. Write a program to calculate electricity.
1.1.1 Screenshot experiment code
1.1.2 Data processing
data representation: which variables with the values of these variables is how come, what type yes.
Data processing: data structures and processes used in expressions.
1.1.3 PTA submit a list and description
1.2 Question 2
Description Title : The title programming requirements, according to a triangle with three sides entered, b, c, and outputs the calculated area and perimeter. Note: In a triangle, the sum of any two sides is greater than the third side. Triangle area formula: Area = √
S (S-A) (S-B) (C-S), where s = (a + b + c
1.2.1 Screenshot experiment code
1.2.2 Data Processing
1.2.3 PTA submit a list and description
1.3 Question 3
Topic Description : The Chinese have a saying, "fits and starts network." Suppose someone from the day onwards, began to "fits and starts network", ask this person is "fishing" or "drying net" after the first N days?
1.3.1 Screenshot experiment code
1.3.2 Data Processing
1.3.3 PTA submit a list and description
2. Read the Code
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 |
---|---|---|---|---|
3/9-3/15 | 9h | 108 | Editing and use if else, the use of power | Some of the specific meaning of the code is not clear, they are not flexible use |