Сверь числа и знаки с фото.
Shukrona Amonova Материал Примечания Домашнее задание · 6B Computer: Homework: no computer needed 1. Answer in full sentences: What is a program requirement? What is an algorithm? 2. Write an algorithm for this requirement: “Calculate a total by adding two numbers input by the user.” 3. Trace the 3.1 algorithm. The user types 30. Make a table: step and total. 4. Everyday algorithm: write 5 steps in the right order to make a sandwich. 5. [Star] Bonus: Draw the 5 Scratch blocks of our program and colour them correctly. 04.12.2026 → 11.12.2026 Учитель Firdavs Soliev · создан 04.12.2026 12:32
Here is the explanation for your homework.
Short Answer: This homework teaches how computers work. A requirement is the goal (what to do). An algorithm is the plan (steps to do it).
Detailed Steps:
1. Definitions
- Program Requirement: A description of what the program must do. (Example: "Add two numbers").
- Algorithm: A list of clear steps to solve the problem. Like a recipe.
2. Algorithm for adding numbers Here is a simple plan (pseudocode):
- Ask user for the first number. Save it as
num1. - Ask user for the second number. Save it as
num2. - Add
num1andnum2. Save result astotal. - Show
total.
3. Tracing (Task 3)
- Missing Info: The image mentions "algorithm 3.1", but the text is not visible. It is likely in your textbook or previous lesson.
- How to do it: You follow the steps of the algorithm and write the value of the variable
totalin the table at each step. - Example Table: If the algorithm is
Input A,Total = A,Input B,Total = Total + B, and user types 30 (and 10):- Step: Input 30 \(\rightarrow\) Total: 30
- Step: Input 10 \(\rightarrow\) Total: 30
- Step: Total = Total + 10 \(\rightarrow\) Total: 40
4. Everyday Algorithm (Sandwich)
- Take two slices of bread.
- Take filling (e.g., cheese).
- Put filling on one slice.
- Put the second slice on top.
- Cut and eat.
5. Scratch Blocks (Bonus) You need to draw blocks from your specific class program. Here are the standard colors:
- Green: Events (Start, when flag clicked).
- Blue: Motion (Move steps).
- Purple: Looks (Say hello).
- Orange: Control (Wait, if).
- Yellow: Operators (Add, subtract).
Check: The logic for adding numbers is correct: input \(\rightarrow\) calculate \(\rightarrow\) output.