subject
French, 16.02.2021 19:20 tobyclyde

On souhaite élaborer un algorithme donnant le nombre Un village compte aujourd’hui 2 300 habitants. Le village est en pleine croissance, sa population augmente chaque année de 150 habitants.

1) Quel sera le nombre d’habitants dans ce village dans 3 ans ?

d’habitants de ce village dans n années.

Compléter l’algorithme ci-contre afin que P contienne en fin

d’algorithme le nombre d’habitants de ce village dans n années.

3) Programmation en Python :

« Langage naturel » Python Remarques

Pour k variant de d à n

{instructions}

Fin Pour

For k in range (d, n + 1) :

{instructions}

En langage Python, il n’y a pas d’instruction pour

indiquer la fin de la boucle for :

C’est l’indentation qui décale vers la droite les

instructions faisant partie de la boucle.

L’instruction for k in range (d, n + 1) fait

parcourir à la variable k tous les entiers de d à n

(et non pas n + 1, donc attention à tenir compte de

ce décalage)

Lorsque d = 0, on peut remplacer range (d, n + 1)

par range (n + 1).

Programme Python relatif à cet exemple :

Tapez ce programme et testez-le en tapant pop (3) par exemple.

Combien d’habitants comptera ce village dans 10 ans ?

 EXERCICE N°4 : Entraînement pour une course de vélo

En prévision d’une course de vélo, Fanny suit le programme d’entraînement suivant sur 12 samedis : elle

parcourt 25 km le 1er samedi, puis augmente chaque semaine de 11 kilomètres la distance parcourue.

1) Déterminer la distance D parcourue le 2ème samedi et la distance totale T parcourue au bout de deux

samedis d’entraînement.

2) Compléter l’algorithme ci-contre afin que la variable T

contienne en fin d’algorithme la distance totale parcourue au

bout de 12 samedis d’entraînement.

3) Programmer cet algorithme en langage Python et le taper.

4) Quelle est la distance totale parcourue par Fanny au cours de

ses 12 semaines d’entraînement ?

P ← …………

Pour k variant de 1 à n

P ← …………….…

Fin Pour

 Dans ce programme la 1ère indentation indique

les instructions faisant partie de la fonction pop

et la 2ème indentation indique que les instructions

font partie de la boucle for.

 L’instruction return(P) permet de renvoyer le

contenu de la variable P lorsqu’on saisit pop(n)

dans la console d’exécution.

 Le fait de taper « : » puis « Entrée » pour passer

à la ligne provoque l’indentation automatique.

D ← …………

T ← …………

Pour k variant de …. à …..

D ← …………….…

T ← …………….…
Pourriez vous m'aider a répondre à cela s'il vous plaît. C'est du programme Python avec la boucle for.

ansver
Answers: 3

Another question on French

question
French, 24.06.2019 21:30
Could someone who speaks french look over some text i wrote to see if it is correct? my meal: je vais manger les 4 morceaux de poulet mccroquettes et le biscuit de l'omrm aux morceaux de chocolat. je vais boire l'eau dasani. le repas contient 330 calories.my friends meal: mon amie va manger le wrap-éclair au poulet grillé avec sauce chipotle et le biscuit de l'omrm aux morceaux de chocolat. ils vont boire le jus d'orange minute maid. le repas contient 570 calories.i am ordering items from mcdonalds and stating how many calories are in each meal.
Answers: 2
question
French, 27.06.2019 00:00
French ‼️‼️‼️ this makes no sense‼️‼️
Answers: 2
question
French, 27.06.2019 19:40
100 points and branliest. i know its a lot to aks but try and answer this becoming a lifelong learner learning a language opens doors to a world of opportunity. of course, in order to really benefit from your studies, you’ll need to do more than just complete assignments. you’ll need to set habits that will tie you to french and its cultures even beyond the classroom. students who become lifelong learners of french have some basic characteristics and habits that you should develop if you want to get the most from your experience learning french here are some of them: lifelong learners: have friends with whom they regularly converse in the target language. (this could be friends in school, neighbors or friends in the community.) regularly get information from target language sources (newspapers, magazines, internet french related news group (with parent’s approval), tv programs, radio, etc. that are produced by and for native speakers.) participate in activities of the target culture (celebrating holidays, seeing movies or plays of/in the target culture, preparing or eating dishes from the target culture, reading books or magazines from the target culture, etc.) someone who has developed these habits is on the way to becoming a lifelong learner. these types of habits reinforce a strong connection to the language and culture and develop a love and better understanding of that culture. think for a minute about the resources available. do you have friends who are native french speakers? do you ever watch french channels on television? you can probably think of several online sources. maybe you have some stores or restaurants in your community that are run or frequented by french speakers. also think about when you could do this on a regular basis—remember that it’s setting the habits that will make the most difference. using the table below as a guideline, write what you plan to do. for the language or culture resources column, try to identify three different resources: 1. a friend or contact 2. an information source, and 3. a cultural activity. in the what i will do column, describe as specifically as you can what you will do. and in the when i will do it column, write when you plan on doing these activities. see the sample below to see how you might fill out your own table. you will have opportunities to follow up and report on your regular practice of engaging french resources close to home. you will be asked in a follow up assignment to report on what you have done.
Answers: 1
question
French, 27.06.2019 21:40
L'un des plus grands opposants d'un québec francophone et souverain était félix leclerc. vrai faux 2. la notion de la souveraineté du québec domine le débat politique, pendant la révolution tranquille. vrai faux 3. le cinéma québécois francophone se développe grâce à la création du parti québécois. vrai faux 4. l'ancien président français charles de gaulle était pour la souveraineté du québec. vrai faux 5. «je me souviens» est l'hymne national du québec. vrai faux 6. réso est le nom donné à une fête québécoise importante. vrai faux
Answers: 1
You know the right answer?
On souhaite élaborer un algorithme donnant le nombre Un village compte aujourd’hui 2 300 habitants....
Questions
question
Mathematics, 19.01.2021 19:10
question
Mathematics, 19.01.2021 19:10
Questions on the website: 13722359