学年

質問の種類

情報: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
英語 中学生

Q. 中学英語 長文読解  (2)についてです。  答えはアなのですが、どのような並び替えになるのか教えてください‪🙇🏻‍♀️՞

5 次の英文を読んで、あとの問いに答えなさい。 < 星野改 > High schools in Minnesota have a problem. Many students are late to school. They are often tired. Some students fall asleep in class. They often get sick, too. The local governments take that as a problem. They make a small change. It helps a lot! What do they do? They start the school day a little later. A This small change makes a big difference. Why? Most teens are very tired early in the morning. They usually don't go to bed until after midnight. In the morning, they wake up between 6:00 and 6:30 for school. So they don't get enough sleep. They are still tired early in the morning. But after the change, teens are more awake and (be ready/class/to/in). A later start time is better for a teen's body clock. B Everyone has a body clock. An adult's body clock works like this: most adults get tired between 9:00 and 11:00 at night. They usually go to bed before midnight. Adults can get up early in the morning. It's not a problem. But a teen's body clock is different. Teens don't get tired at midnight. They usually stay up later. But early in the morning, they need more sleep. C The schools in Minnesota pay attention to the teen's body clock. They change the start of the school day from 7:20 a.m. to 8:40 a.m., 80 minutes later. Other schools in the United States change their start times too. Some schools change the time by only 30 minutes, but they still get good results. ( 2 ), the results are amazing! 3 (Many) students are on time. Morning classes are easier to teach. Students are getting ①(good) grades. Students have fewer illnesses, so they are ⑤(little) absent. In Minnesota, there is another important effect: fewer students drop out of school or change schools. D Today, more and more high schools are starting later. Most schools can't start two hours later. But they can change the start time a little. A small change can make a very big difference! Just ask the students. 注 Minnesota ミネソタ (アメリカ合衆国中央北部の州) (1) 次の英文を入れるのに最も適する位置を、本文中のA~Dから1つ選びなさい。 Now the students are happier, and also the parents and teachers too. (2)下線部①の ア be (3)② ( 内の語を並べかえて正しい英文を作るとき、3番目にくるものをア~エから1つ選びなさい イ ready ウclass I to )に適するものを、ア~エから1つ選びなさい。 イイ イ However ウ In fact I Even so

解決済み 回答数: 1