学年

質問の種類

情報:IT 高校生

マーカー部分の意味がわかりません

17〈二次元配列と関数〉 あるカレー屋では、辛さは1辛~5辛まで, ライスは普通・ 大盛・特盛の3種類から選べる。基本料金は800円で辛さを1増すごとに基本料 金の1割増となる。ライスは大盛が50円,特盛は100円加算される。 価格一覧を 作るため、料金を入れた配列 kakaku を返す関数を作成した。 なお、配列の添字は 0から始まるものとする。 また, 「整数 (a) 」 はaを整数に変換する関数, 「戻り値 (a)」はaを呼び出し元に返す関数である。 空欄に入る最も適当なものを、次の(ア) 〜(オ)から一つずつ選べ。 (1) 関数 メニュー (kihon, ① の定義: riceを0から2まで1ずつ増やしながら繰り返す: karasaを0から4まで1ずつ増やしながら繰り返す: 渡され るようにする。 この例では,rice, karasa, kakaku は関数内で値が設定 されており,kihon, rate は設定されて いないことに着目す る。 (2) (3) (4) (5) _kakaku [rice][karasa] 整数 (kihon * (1 + 戻り値 (kakaku) * rate) + 50 * = (ア) rice (イ) karasa (ウ) (rice + 1) () (karasa +1) (オ) rate 18 〈関数〉 今日の曜日 ("月","火",・・・) を戻り値とする関数「曜日()」と,問題 17 で作成した関数を使い,辛さ割増率を平日1割,土日2割とすることにした。なお, 「初期化 (a, b, c)」はb×cの二次元配列 a を初期化する関数である。 空欄に入る 最も適当なものを,右の(ア)~(カ)から一つずつ選べ。 (1) 初期化 (menulist, 5, 3) 18 関数は, 引数を変え て何度も呼び出すこ とができる。 (ア) and (2) もし曜日 () == "土" 曜日)=="日"ならば : (イ) or (3)| menulist = メニュー (800, ② エ (ウ) 0.1 (4) そうでなければ : (エ) 0.2 (5) menulist = メニュー ( 800, (オ) 1 (6) 表示する (menulist) (カ) 2

解決済み 回答数: 1
英語 中学生

この問題の答えを教えてください!

英語 ODIEZ V 英語 体験 THEME 版 長文読解テクニック WTF 予習 事前に「ライブ授業」の 〔1〕の問題文に目を通して、 [1] の第一段落を読もう。 ※問題を解く必要はありません。 葵01 >>> ライブ授業 Sクラス 次の[1] [2] の問いに答えなさい。 ('21 富山県) 〔1〕 理香 (Rika) さんは、英語の授業で友人の美咲 (Misaki) さんとのエピソードについてス ビーチをすることになりました。 次のスピーチ原稿を読んで、あとの問いに答えなさい。 Hello, everyone. I will talk about my friend Misaki. When we entered junior high school, we decided to join the track and field team together because both of us liked running. We practiced hard together every day. However, I *injured my leg during spring vacation last year. I thought I couldn't join *competitions because I couldn't practice for a long time. I was sad and lost *motivation to run. I didn't want to "continue practicing. I told Misaki about it. She said, “We are not practicing for only competitions. We are running because we like it. Do you know the *Toyama Marathon? Junior high school students can't join it yet, but they can join the *jogging section of it. It is four kilometers. I'm going to join it. Why don't you join it with me? We still have six months to practice." I said, “I don't want to practice." However, she continued talking. She said, "Usually we can't run on the Shinminato Bridge, but the people who join the Toyama Marathon and the jogging section of it can run there. Isn't it exciting?" I became interested and finally decided to join the jogging section of the Toyama Marathon with Misaki. I started practicing again after I *recovered. It was harder than before, but Misaki always *encouraged me. On the day of the Toyama Marathon, many people joined the jogging section. I was surprised because many old people were running too. I wanted to be like them. Of course, I enjoyed running with Misaki, but there was only one sad thing. It was cloudy that day, so we couldn't see Tateyama from the Shinminato Bridge. I hope we can see it 20 next time. I remembered the joy of running through this experience. Winning competitions is not the only goal of sports. Enjoying them is more important. I am happy to have a friend who practices with me and encourages me when I have a hard time. I hope I can run with Misaki in high school too and get stronger. In the future, I want to run 42.195 25 kilometers in the Toyama Marathon with Misaki. Thank you for listening. competition 大会 *motivation 意欲 *Toyama Marathon 富山マラソン 注) injure痛める * continue ~ing 〜し続ける *jogging section ジョギングの部 encourage 励ます *Shinminato Bridge 新湊大橋 *joy 喜び recover 回復する 5 予習・ライブ授業 到達度チェック (1) 下線部①~③のうち、他の2つと異なることを指しているものを1つ選んで番号で答え なさい。 (2) 理香さんが富山マラソンやそのジョギングの部に興味をもったのは、美咲さんからどの ようなことを聞いたからですか。 その内容を日本語で書きなさい。 ] (3)このスピーチを通して理香さんが伝えたかったことを,次のア~オから2つ選んで記号 で答えなさい。 ア Junior high school students should not join any competition. イ People who join the Toyama Marathon can see Tateyama from the Shinminato Bridge every year. ウIn sports, having fun is more important than winning competitions. I When you have a hard time, good friends will give you hope for the future. オ People should practice running 42.195 kilometers because it is good for their health. 〕 (4)このスピーチを聞いた後, あなた (You)はALT のスコット (Scott) 先生と話をしました。 に10語以上の英語を書き入れ, 次の会話を完成させなさい。 ただし, 英文 の数は問わないが, 複数の文になる場合はつながりのある内容にすること。 Scott: Rika wants to continue running in high school. How about you? Do you want to continue doing something, or start a new thing in high school? You: In high school, I want to Scott: Sounds good. I hope you can do it. In high school, I want to ( ]). 〔2〕智也さんは,立山に生息する特別天然記念物 (special natural monument) のライチョ ウ(ptarmigan)が富山の県鳥であることを知り、興味をもちました。 智也さんが書い た次の英文レポートを読んで,あとの問いに答えなさい。 The ptarmigans are special natural monuments of Japan, and live only in cold places like high mountains. You can't find them in their *natural habitat so often, but you can see them on Tateyama if you have good luck. People often think the ptarmigans live only on high mountains. However, some of them spend winter by the sea in countries like Russia. Did you know that they change color each season? They become dark brown in summer and white in winter. When the birds change color like that, it is hard for other animals to find them. 花火 捕緑人質塊命を! (24) (29) Ill you be Prasat 英02.

未解決 回答数: 0
英語 高校生

答え合わせお願いします。分からないところは空白にしました。

BB 与えられた日本語の内容が伝わるように、 )に入る語 から選び文を完成させまし よう。必要があれば、適切な形になおしなさい。 同じ単語を何度使用してもかまいません。 1. 職業体験のために提供された場所のひとつに高齢者施設がありました。 One of the places (offered ) for the (workplace) experience was a home for the elderly. わかりやすい構成に 2. そこに暮らす人々は私が思っていたよりずっと友好的でした。 The people (staying )there were much friendlier than I had expected. 3. ある女性は楽しそうに話し続けていました。 (Ta(king) happily. A 4.彼女は私に何枚かの写真を見せながらたくさんのことを話してくれました。 she woman ( kept told connect / fold / have / )me lots of things, (Showing ) me some photos. keep / late/ 5. ある男性が上手に折り紙をしているのを見ました。 I also ( Saw )aman ( folding) origami very well. 6. 私は彼に頼んで連鶴を折り紙で折ってもらいました。 I asked him to ( ng is not) a pair of ( cranes (don't agree) with origami paper. offer/show/ see/stay/ much low talk/tell/ workplace / het 7. 彼らは最新の情報を得るために, 小さな字で書かれた新聞を熱心に読みます。 They eagerly read newspapers (Written) in small letters to get the TheWenger) information. 8. 彼らの好奇心が 彼らを若くて元気なままでいさせてくれるようです。 Their curiosity seems to ( ) them young and energetic. write/

解決済み 回答数: 1
1/51