The 11th Blue Bridge Cup Scratch Trials Collection

Table of contents

1. Programming questions


The 11th Blue Bridge Cup Scratch Trials Collection
 

1. Programming questions

Question 1 Questions and Answers
Marx's manuscripts
Description of the topic
Background information:
There is an interesting math problem in Marx's manuscripts: There are 30 people, including men, women and children. A meal in a restaurant cost 50 shillings; each man spent 3 shillings, each woman spent 2 shillings, and each child spent 1 shillings; ask how many men, women and children are there
? Implementation:
1. When the green flag is clicked, an empty list is added to the right side of the stage, and the kitten says "click the space bar once, and a group of answers about the number of men, women, and children will be added to the list", as shown in the figure below;

2). Next, every time you click on the blank space, a set of data that meets the requirements will be added to the list, as shown in the figure below;
 

3). When all the required data are added to the list, the kitten says "all found" for 2 seconds, and the program ends;

4)

Guess you like

Origin blog.csdn.net/IT_Scratch/article/details/130793249