学年

質問の種類

情報:IT 高校生

情報です。問2のイウエオカができません。教えてください!

と言う グラムがWeb上に公開さ 呼び出して利用できる Piといい, Web サービ ータを利用したプログ ものに活用されている。 天気の amming Interface) 社会とのかかわり WebAPIの活用 WebAPIには, 天気, 観光, グル メ, 交通などのリアルタイムの情報 を得られるものや、 動画投稿サイト やSNSの機能をプログラムに組み込 むことができるものなどがある。 000 77 0188 1181 難易度 目安 ★★★ 15分 い~はに入れるのに最も適当な組合せを ットが2匹いて、そのうちの1匹はメスだった す。 別が問題です。 オスとメスであ と言われたのです。 る確率は同じ ペットを2匹飼っている家族がたくさんい つ目の ペット ことします。1つ目の家族の番号 い始めたペットに0, 2番目に飼い始めた 飼い始めたペットは, Pet [0,1] となります。 圧はどう表すのですか? T: 配列 Petの要素の値がそのペットの性別を表します。 オスは1, メスは2とします。 では、4番目の家族 の2番目に飼い始めたペットがメスの場合, 添字と要素はそれぞれいくつになりますか? S:Pet いろ]で要素の値ははです。 T: きちんと理解できたようですね。 それではプログラムを作っていきましょう。 の解答群 ⑩い: 3, 3: 1, は:1 ④い: 4. 3: 1. は:1 ①い: 3, 3: 1, は:2② い: 4, 3: 2, は : 2 ③ い: 4, ろ : 2, は 1 ⑤い: 4, ろ : 1, は : 2 ⑥ い: 3, 3: 2, 1:27 い: 3, 3: 2, は:1 問2 次の文章の空欄 イ - Є MI 次の文章 なお、 解答 T:プログラムの後半は先生 成しました。 なお、この タが格納されていると S:このプログラムはどう T: 図2は、ペットの1 S: 数学の時間に出され T:図3は、最初に飼い S : どちらも同じだと T: どうでしょう。 (1) (2) (3) kazo kaz ka (4) i (5) (6) (7) に入れるのに最も適当なものを,後の①~③のうちから一つずつ (8) (9) (10) (11 べ。なお,解答群の選択肢は複数の箇所で使用してもよい。 T:まずは, 配列 Pet にペットの性別データを格納するプログラム (図1) を作ります。 S:ペットの性別は乱数を作って決めるのですね。 T:よく分かっていますね。 ここでは, 関数 「性別決定」という先生があらかじめ作成しておいた関数を使いま す。これは,戻り値として1と2を同じ確率で返す関数です。 S:データは何件分を作成したらよいですか? 入力が大変そうです。 T:データを作成する家族の件数は kazoku No という変数に格納しましょう。最初は100000件にしておきま す。まさか手入力しようと思っているのですか? S:そうか! 繰り返しを使えばいいのですね! (1) kazoku_No = 100000 (2) iを0から イ まで1ずつ増やしながら繰り返す: (3) Pet [ ウ 0] エ = (4) Pet [ オ 1 = 図12匹のペットの性別を乱数で決定し 2次元配列に格納するプログラム イ ~ カ の解答群 100000 6 1,0 ①kazoku_No ⑦ i,1 kazoku No - 1 ④。 ⑤ 1 1, 1 性別決定 () 第3章 コンピュータとプログラミング

解決済み 回答数: 1
英語 高校生

最後の文のwhat value is B(smellが入ります)の文構造を教えて頂きたいです。よろしくお願いします。

they can s example, follow coastlines and thr When they get very close 4 Mont to where they want to be, many use their sense of smell. anger as Homing pigeons give a clue to this. ("Homing" is not the same as migration. It suggests that pigeons can find their way home when taken by train or truck to some far-distant place and then released. But homing surely has some of the same mechanisms; migration does, and so can give clues to how it works.) It seems that as pigeons get fairly close to their home, they first pick up general smells that tell of bird dwellings-perhaps the general tempting stink of ammonia. As they get nearer, the smells become more specifically pigeon-like. Finally, as they get very close, they recognize the very particular odor of their own flock in its own space. More and more evidence is revealing that humans, too, have a wonderful awareness of odor, even if they do not consciously recognize it, such that they find particular men or women attractive or disgusting according to their primitive substances such as sweat no doubt a cooling thought for human beings have risen above such things. We do not those who like to suppose that (2) normally think of birds as creatures that attach importance to smell, but many of them 。 do, in many contexts. 112055見る形 137. ho doubt, but なるほしだが、 But what use are A clues when a bird is above some apparently boundless ocean? What value is (B) when it is a thousand miles from where it wants to be? What else is there? O is value. air force, havy, army. doy and the moon

解決済み 回答数: 1