学年

質問の種類

情報:IT 高校生

情報の「データの配列から最大値を考えるプログラミング」です。解説を見ても意味が理解できません。解説していただきたいです!

テーマ2 データの配列から最大値を考えるプログラミング 例題:次のプログラムAについて、以下の問いに答えよ。 ただし、配列の添字は0から 始まるものとする。 [0) T.630 [1]ndoor (C 美月 (6) LLTokuten[i] = temp (1) Tokuten = [57,70,65,821 (2) を1から3まで1ずつ増やしながら繰り返す: (3) (4) || temp = Tokuten [0] (5) || Tokuten[0]= Tokuten [i] i 〈プログラムA> (aa 問1 (2) 行目を実行する前の Tokuten [0], Tokuten [1], Tokuten [2], Tokuten [3] の値をそれぞれ求めよ。 1 2 3 Tokuten [0] < Tokuten [i] 512:0) $100 > [0]medusio (1 of 1500 Telan TOYOT 問2 表1も使いながら、以下の(ア)~ (ウ), (カ)~(コ)に当てはま る数を求めよ。 また、(エ)・(オ)は適当なものを選べ。 i=1のとき, Tokuten [0] < Tokuten [1] が成り立つ。 MUEVE (4)行目を実行すると変数 temp には (ア)が代入され,その後, (5), (6)行目を 実行することで Tokuten [0] (イ), Tokuten [1] には (ウ)が代入さ れる。 i=2のとき, Tokuten [0] ・ > ) Tokuten [i] であるから, (4), (5) (6) 行目は(オ実行される ・ 実行されない)。 さらに,i=3のときの処理を終えた後, 配列 Tokuten の要素は[(カ), (キ), (ク),(ケ)] となり, 変数 temp に代入されている数は コ) コ である。 57 (イ) (カ) ITE OF ED 027 表1 配列 rokuten と変数 temp の変化 Tokuten [0] Tokuten [1] Tokuten [2] Tokuten [3] 65 982 70 (3) (キ) cepler (or [S Budo! (ク) [2] 0330E=1.011 SudoT OT (ケ) temp に近づ (ア) (コ) POINT ●配列の構造を正しく理解する。 ●条件分岐(もし・・・)について, 実行されるか・実行されないかを正確に判断する。 ●プログラムの一つずつの手順を丁寧に解読していく。 SM

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

2パラグラフ目の4行目のing形になっているのはなぜですか? 3パラグラフ目の7行目のinになっている理由と、8行目のcouldになっている理由。 詳しく教えてください🙇‍♀️

欄 13 12 1 ⓘ Last year, 1 昨年 ② Her shop was just in front of a railway station 彼女の店は鉄道の駅の真ん前にあった and soon became popular. ⑤ そしてすぐに人気になった ③ Her customers included children, teenagers, and working people 彼女の客は子どもたち、 10代の人たち、そして働く人たちを含んでいた who used the station. Margaret opened a new flower shop in Nagoya. マーガレットは名古屋に新しい花屋を開いた その駅を利用する (人たち) At the end of this year, | she looked carefully at her monthly sales この年の終わりに 1 彼女は毎月の売り上げを丁寧に見た for the whole year nalse oc その年1年分の She made a graph to make the monthly trends easier to see. しにする 彼女はグラフを作った 月ごとの傾向をより見やすくするために ① According to her data, flowers sold best in December. 彼女のデータによると 1 花は12月に一番売れた e During the Christmas season, / クリスマスの時期の間 people buy flowers for Christmas parties, 人々はクリスマス・パーティーのために花を買う and some people choose flower bouquets そして何人かの人は花束を選ぶ Also,/ flowers are a common feature また 花は一般的な特徴だ when celebrating the New Year, 1 新年を祝うときの and people tend to buy more expensive flowers そして人々はより高価な花を買う傾向がある at the end of the year. 1年の終わりに ⓒ In March, / there are many opportunities to send flower bouquets, | 1 3月には たくさんの機会がある 花束を送る (機会) such as graduation ceremonies and job transfers. 卒業式や転勤などの 1 そしてその時期の売り上げを増やし(たかった) 1 1 as presents. Similarly, / in May, people often buy flower bouquets for Mother's Day. 同様に 5月には 人々は母の日のためにしばしば花束を買う 6 Interestingly, / sales were good in August, too. 興味深いことに 売り上げは8月もよかった ⑦ The reason is that many Japanese people bring flowers to family その理由は〜ということだ 多くの日本人は夏に家族の墓へ花を持ってくる(ということ) graves in the summer. 1つは敬老の日を狙うことだった on the third Monday in September. 9月の第3月曜日の ople! 合等 flowers did not sell well during fall. On the other hand, 一方 1 花は秋の間あまり売れなかった ② Margaret wanted to attract new customers マーガレットは新しい客を引きつけたかった 1 and increase sales in that season. ③ She came up with two ideas. 彼女は2つのアイデアを思いついた One was to target Respect-for-the-Aged Day 1 She was sure 彼女は~と確信していた! プレゼントとして 8 She hones some people would want to send flowers to grandparents on that day. 何人かの人々はその日に祖父母へ花を送りたいと思うだろう(と) 6 The other was a Halloween promotion. もう1つはハロウィーンの販売促進だった She decided to make bouquets in the typical colors of Halloween 1 彼女はハロウィーン特有の色の花束を作ることを決めた that people Could put in their homes on that day. 人々がその日家に置くことのできる (花束) 語句 railway populan 「人 custom include month sale trend accoro 「~に sell bouqu comn motenerstamo gniber og62U & 16mmiG™ noldas rad & grisin anibes big noilbid & grines. -moibl & featur celeb tend expe oppo grad cer job 1 inter grav on t 「一 attr studeny inci 動 con 「- tar pro typ

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

問題で、段落1.2段落からと書いてあるので、Last year〜から、to seeまでかなっと思ったんですけど、実際は、in the summerまででした。 棒線部1の前にはきちんと空いているのになぜそうなるのでしょうか? わかる方お願いします。 どっちかと言うと英語では... 続きを読む

4 S 15 Chapter yar 英文を読んで、設問に答えなさい。 (thousands of yen) 1400 1200 1000 800 600 400 200 0 January March February April 花の売り上げ Flowers Sales May June July August October Septemb Decembe November 目標時間 words 40 minutes ~ included children, teenagers, and working people who used the station. At the end of this year, she looked carefully at her monthly sales for the whole year. She made a graph to make the monthly trends easier to see. Last year, Margaret opened a new flower shop in Nagoya. Her shop was just in front of a railway station and soon became popular. Her customers According to her data, flowers sold best in December. During the 12月 Christmas season, people buy flowers for Christmas parties, and some people choose flower bouquets as presents. Also, flowers are a common feature when celebrating the New Year and people tend to buy more expensive flowers at 310 the end of the year. In March, there are many opportunities to send flower bouquets, such as graduation ceremonies and job transfers. Similarly, in May people often buy flower bouquets for Mother's Day. Interestingly, sales were good in August, too. The reason is that many Japanese people bring flowers to family graves in the summer. der 秋 On the other hand, flowers did not sell well during fall. Margaret wanted to attract new customers and increase sales in that season. She came up with (2) two ideas. One was to target Respect-for-the-Aged Day on the third Monday in September. She was sure some people would want to send flowers to grandparents on that day. The other was a Halloween promotion She decided to make bouquets in the typical colors of Halloween that people could put in their homes on that day. She hopes that her total yearly sales will # 201 be higher next year. トータル 2つめのアイテ A-1 A-2 A-3

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

第2問(2)のコサシスセソについてです。 2枚目の解答の波線部分がよく分からないので、分かる方がいらっしゃったら教えて頂きたいです🙇‍♀️

第2問~第4問は、いずれか2問を選択し、 解答しなさい。 第2問 選択問題 (配点20) 図1のように、東西南北に作られた碁盤の目状の道路があり、交差点と交差 点の間の1区画の距離は1km である。 0° 0 が対応している。 .P 北 図1 地点Oから地点P までの最短経路について考えてみよう。 東に1区画進むことを「→」,北に1区画進むことを「↑」と表すことにすると 一つの最短経路に対して、「→」3個 「1」 3個の並べ方が一つ対応するので最 短経路の総数はアイ通りと求められる。 東 西 最短経路の距離は6km であるが,初めて地点Pに到達するまでの距離が8km になるような経路の総数はいくつになるだろうか。 ただし, 図1の道路のみを移 動し、交差点以外の場所で進む方向を変えないこととする。 例えば、距離が8km になるような経路には図2、図3のような場合がある。 P P 南 図2 図3 西に1区画進むことを 「←」 南に1区画進むことを「↓」と表すことにし, 経 路に対応した←↑↓の順列を道順ということにすると 図2の経路には, 道順→↑←↑→→→↑ 図3の経路には, 道順 →↑↑→↓→↑↑ (第6回3) (数学Ⅰ・数学A 第2問は次ページに続く。) (1) ↑↓の順列には対応する経路が存在しないものも含まれる。 例えば、道 には対応する経路がない。 ウ 順 HO I と する。 I nom O ② ↑↑↑↓→→1③→→→1→1-1- の解答群 (解答の順序は問わない。) オ ↑→↓→↑↑↑ 2017 (2) 図2のように, 「←」 が含まれるような道順の総数を考える。ただし、例えば, 道順が→→→↑↑↑← → のように最短経路で地点Pに到達した後、1kmの区 仕復して再び地点Pに到達する経路も含めて考える。 」か「↑」 が3個の順列が一つ対応 一つの経路には、「 T20 2015 40ATEMONEY (1) での考察から 「→」が4個, 「←」 が1個の5個については、 並びにオ という制約があるので,「→」が4個,「←」が1個の5個の並び方は カ 通りある。 $33458200% AS これに 「↑」を含めた8個を並べると, 「←」が含まれる道順の総数はキクケ 通りある。 同様に考えると、図3のように,「↓」が含まれる道順の総数はコサシ 通 01030943-1 りある。 したがって 初めて地点Pに到達するまでの距離が8km になるような経路 の総数はスセソ 通りと求められる。 ① tttt→→ の解答群 + は左端にのみ並ばない 「←」は左端にも右端にも並ばない (第6回4) JUTUSA ① 「←」は右端にのみ並ばない

回答募集中 回答数: 0
英語 中学生

空欄のところと㈡のところを心の優しい方ぜひ教えていただけると幸いです🙏

er alla My sister is ③ 次の対話文を読んで,あとの問いに答えなさい。 work/sister / to/is) in the future. Aya : Do you have any plans for the winter vacation? Mike: Yes, I do. ① (私は京都と奈良を訪れるつもりです。) I geing to work in Australia Aya: Really? (2 are you going to stay there ? Mike: I'm going to stay in Kyoto for three days and in Nara for two days. Aya: ③ ( do / will / there / you / what / ? ) Mike: I'll visit some temples. I'm interested in old Japanese buildings. Aya: Are you going to take a lot of pictures ? Mike: Yes, I am. ④ I'll show the pictures to you after the winter vacation. (1) (3) 下線部③の ( What ① の日本語を英語にしなさい。 ただし, visit を使って, 8語の英語で書きなさい。 am gaing to visit Kyota to visit Kyoto and Nara. (2) ② に最も適する語(句) を次から1つ選び, 記号で答えなさい。 ア When イ How long ウ How much I Where )内の語を,本文の内容に合うように, 並べかえなさい。 there in the future. will do you (4) 下線部④の英語を日本語にしなさい。 (5) 本文の内容に合うように、次の英文の Mike Nara during the winter vacation. I [冬休みが終わったら写真をみせましょう。 に適する語を書きなさい。 a lot of pictures of old Japanese buildings in Kyoto and 5

解決済み 回答数: 1