学年

質問の種類

情報:IT 高校生

教えてください😭😭😭😭😭😭

情報 Ⅰ ・Question ④ 「何らかの仕事を実現する処理の並びを一つにまとめて名前を付けたもの」 を関数といいます。 数は、値を渡したり戻したりできるのが特徴で、 関数に与える文字や数字を「引数」。返される値を 「戻り値」 といいます。 また、 もともとの主なプログラムをメインルーチン。 関数をサブルーチンと いいます。 関数 書式 234 def 関数名(引数1, 引数2, ….....): ロロロロ処理 | ロロロロ処理 2 0000 return 戻り値 説明 関数を定義する。インデントした範囲内がひとまとまりの関数と見なされる。 関数を呼び出す ときに同時に値を関数に渡したときは、引数の部分で受け取り、関数内部で使う。 関数内で 理した結果や何らかの値を呼び出し側に通知する場合は、 return に続けて値や計算式などを 記述する。 次のプログラムは、実行者の名前をメインルーチンで入力させて、それを関数に渡して挨拶と一緒 に表示するプログラムです。 1 def aisatu(a): 2 3 print (a, "Hello!") return 4 5 print("これから英語で挨拶します") 6 b = aisatu(input("Please name :")) 7 aisatu(b) 8 print("どうでしたか? ") 1 def aisatu (a): 上記のプログラムでは、挨拶の表示処理を関数側に行わせていましたが、値を戻してメインルーチ ンで行わせることもできます。 上記のプログラムをもとに、以下の空欄を埋めて、 プログラムを作り なさい。 (実行例は上記と同じ) (ファイル名は「出席番号 94 名前」 で保存すること) a= return 実行例 これから英語で挨拶します Please name: Taro Taro Hello ! どうでしたか? 5 print("これから英語で挨拶します") 6 b=input("Please name :") 7 print( 8 print("どうでしたか? ") 開始 「これから英語で挨拶 します」 と表示 名前を入力させる →関数に渡す aisatu 関数 戻り値を 受け取って表示 「どうでしたか?」 と表示 関数定義 終了 CITIO aisatu 関数開始 ← 受け取った引数 atak 「Hello!」を合体 a を戻り値 aisatu 関数終了

回答募集中 回答数: 0
情報:IT 高校生

期末課題なのですがテストが無い分これで成績が決まってしまうのですが全く分かりません💦教えて欲しいです

■アルゴリズムとプログラミング (課題) 以下の課題に取り組み、 作成したファイルをデスクトップに保存し、PCの「課題提出全日制」 → 「2学年」 「自分のクラスのフォルダー」→「問題番号に対応したフォルダー」にドラッグアンド ドロップして提出しなさい。 (作成できたファイルのみ提出すること) ・Question ① マウスの移動量を表す単位で 「ミッキー」というものがある。 | ミッキーあたり0.254mm(ミリ メートル) である。 以下のプログラムの空欄を埋めて、キーボードからマウスの移動量をミッキーで 入力されたら、 cm (センチメートル) で表示されるプログラムを作りなさい。 (ファイル名は 「出席番号 q1 名前」 で保存すること) 1 a = float(input("マウスを何ミッキー動かしましたか?>")) 2b = 3. print("あなたは", b, "センチメートル動かしました。 ") 実行例 マウスを何ミッキー動かしましたか? >100 あなたは 2.54センチメートル動かしました。 • Question ② 製 以下のプログラムの空欄を埋めて、 「おはよう」, 「さよなら」 と言われたら挨拶を返すプログラム を作りなさい。 (ファイル名は「出席番号 92 名前」 で保存すること) 1 a=str(input("挨拶をしてください>")) 2 if a | "おはよう": print("コンピュータ:", a) "さよなら": print("コンピュータ:", a) 3 4 elifa 5 6 else: 7 実行例 挨拶をしてください > おはよう コンピュータ:おはよう print("コンピュータ:よくわかりません") 挨拶をしてください > さよなら コンピュータ: さよなら 挨拶をしてください > こんにちは コンピュータ: よくわかりません 開始 at 挨拶をしてください> aは "おはよう Yes おはよう 終了 No. は さよなら Yes さよなら No. よくわかりませ

回答募集中 回答数: 0
英語 高校生

高一英語、複合関係詞です。 副詞節である、whoever(誰が〜しても)、whatever (何を〜しても)、whenever (いつ〜しても)、wherever(どこで〜しても)、however (どんなに〜でも)は、未来のことでも現在形だと習いました。じゃあ、whoev... 続きを読む

24 関係詞 ⑤ 複合関係詞 5-1 複合関係代名詞 whoever, whichever, whatever V 0 30. Whoever opposes my plan, I won't change it. 31. Whatever you do, do your best. 28. Whoever wants to join our soccer team will be welcome. 〈名詞節> 「~する人はだれでも」 V C S 29. Meg accomplishes whatever she decides to do. S pp.278-281 28. 29. 文全体の中で,主語 目的語 前置詞の目的語になる名詞節を作り, whoever 「~する人はだれでい whichever「~するものはどれ[どちら] でも。 whatever 「~するものは何でも」の意味を表す。 any ~ を使って,次のように言い換えることができる。 〈名詞節〉「~するものは何でも」 〈副詞節》「だれが~しても」♪ <副詞節>何をしても」 28 → Anyone who wants to join our soccer team will be welcome. 29 → Meg accomplishes anything that she decides to do. Help yourself to whichever (=any one (that)) you like. 〈前置詞の目的語〉 ⑤-2 複合関係副詞 : whenever, wherever, however 32. Contact me whenever you are in trouble. **********... 30.31. 主節の動詞を修飾する副詞節を作り、「だれ/どれ/何が[を]~しても」という譲歩の意味を表す。 この関係詞節中では、 未来のことでも現在形を使うことに注意。 ◆日常的には, 〈no matter + who / which/what> を使って表現することが多い。 30→ No matter who opposes my plan, I.... / 31 → No matter what you do, do...... !注意 <whatever/ whichever + 名詞〉 「どんな / どの (名詞)」 I'll follow whatever decision you make. 33. You may sit wherever you like. 34. Whenever I visit this temple, I feel calm. 35. Wherever I am, I will never forget you. 36. However hard the training is, I won't give up. 20 参 p.280 「~するときはいつでも」 「~するところはどこでも」 whenever 「~するときはいつでも」, wherever 「~するところはどこでも」という意味の副詞節を作る。 32→ Contact me (at) any time (when) you are in trouble. 33 → You may sit (at) any place (where) you like. 「いつ~しても」 「どこで~しても」 「どんなに~しても」 「いつどこで / どんなに~しても」 という譲歩の意味の副詞節を作る。 未来のことでも現在形を使う。 話し言葉では〈no matter+ when/where/how〉 をよく使う。 34 → No matter when I visit this temple, I.... / 35→ No matter where I am, I.…... 36→ No matter how hard the training is, I.... 注意すべき関係詞の用法 • pp.97~98 発展学習) Wezwoy

回答募集中 回答数: 0
生物 高校生

生物の食物連鎖とかの問題だと思うんですけど誰かわかる方いますか??? 英語すみません💦

hhmi Biolnteractive Some Animals Are More Equal than Others: Trophic Cascades and Keystone Species Mean Leaf Area per Plant Over 18 Months without beetle with beetle Leaf Area per Plant (cm²) Control Ecology 2400 2200 2000 1800 1600 1400 1200 1000 800 Experimental 0 T 2 www.BioInteractive.org 8 10 12 14 16 Months After Start of Experiment 4 6 Refer to the figure to answer questions 12 through 17. 12. For both the plots with the beetles added and the control plots, state the mean tree leaf area per plot that the scientists recorded after running the experiment for 18 months. The mean tree leaf area per plot that the Scientist recorded after running the experiment for 18 months wit the beetles added is 1.7m², S 2.2m² 13. Compare the trends in mean tree leaf area per plot for both the plots with the beetles added and the control plots over the 18 months of the experiment. The area of the control plat for thinoceros beetles has d has increased at a nearly constant rate, the other is a gradua decrease at first, then a sudden decrease, and finally a dradua 18 Figure 2. Mean leaf area per tree. Initial measurements were taken before (0 to 2 months) and after (7 to 18 months) beetles were added to 40 of 80 plants. The light gray round markers represent measurements taken of the control plots, to which beetles were not added. The black square markers represent measurements taken of the experimental plots, to which beetles were added. Measurements were made on all leaves to calculate the mean leaf area per plant. Error bars represent standard error of the mean. 14. Draw two diagrams that show the food chains for both the experimental and control plots. Include increase. interactions among predatory beetles (if present), ants, caterpillars, and piper plants. Revised January 2018 Page 4 of 5

回答募集中 回答数: 0