Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Programming Concepts (Part A) ENGR 10 Introduction to Engineering pot
Nội dung xem thử
Mô tả chi tiết
Programming Concepts
(Part A)
ENGR 10
Introduction to Engineering
What is a program?
WHITE CAKE RECIPE
1. Preheat oven to 350 degrees F (175 degrees C).
2. Grease and flour a 9x9 inch pan.
3. In a medium bowl, cream together the sugar and butter .
4. Beat in the eggs.
5. Stir in the vanilla.
6. Combine flour and baking powder, add to the creamed mixture and mix well.
7. Stir in the milk until batter is smooth.
8. Pour or spoon batter into the prepared pan.
9. Bake for 30 to 40 minutes in the preheated oven.
A computer program is an ordered
list of instructions.
It’s like a recipe!
In Summary…
A math example…
y = [ 3 × ( a × a + 7) ] / b + 4
a
2
a
2 + 7
3 × (a2 + 7) = 3a2
+ 21
(3a2
+ 21) / b
(3a2
+ 21) / b + 4
Sequential Solving
following Math
conventions for correct
answer.