学年

質問の種類

情報: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
英語 高校生

(1)が分からないので教えて欲しいです。

5 10 15 20 25 S1 夏期講習 第3講 宿題読解(全クラス共通) 次の英文を読んで、 設問に答えなさい。 There is an old saying in English: "Laughter is the best medicine." Until recently, few people took the saying very seriously. Now, however, (1)doctors have begun to investigate laughter and the effects it has on the human body. They have found evidence (2a)that laughter really can improve people's health. Tests were done to study the effects of laughter on the body. People watched funny films, while doctors checked their heart rate, blood pressure, breathing and muscles. It was found ). It increases that laughter has similar effects to ( 3 blood pressure, the heart rate and the rate of breathing; it also works several groups of muscles in the face, the stomach, and even the feet. beneficial. If laughter exercises the body, it must be Other tests have shown that laughter appears to be capable of ( 4 ) the effect of pain on the body. In one experiment doctors produced pain in groups of students who listened to different radio programs. The group which tolerated the pain for the longest time was the group which listened to a funny The reason why laughter can reduce pain seems to program. be that it helps to produce natural chemicals in the brain (2b)that diminish both stress and pain. There is also some evidence to suggest that laughter helps the body's immune system, that is, the system which fights infection. As a result of these discoveries, some doctors and *psychiatrists in the United States now hold laughter clinics, in which they try to improve their patients' condition by ing them to laugh. They have found that even if feel like laughing, (5)making them ilar to those 文法テキスト宿題 p69 4 問1 下線部(1)をitの内容を明らかにして日本語に訳しなさい。 問2 下線部(2a) (2b)と同じ用法の that を含む文を、次のア~オから それぞれ1つずつ選びなさい。 7. He is the man that lives next door to us. 1. It was such a wonderful movie that I saw it five times. 5. The average price of whisky is higher than that of beer. I. No one told me that he had been ill. *. The fact that she lied made him angry. 問3空所(3)に入れるのに最も適当なものを、次のア~エから1 つ選びなさい。 7. mental powers physical exercise 1. vocal exercise I. a good sleep 問4 空所(4)に入れるのに最も適当なものを、次のア~エから1 つ選びなさい。 7. increasing . reducing 1. producing I. encouraging 問5 下線部(5)を them および those の内容を明らかにして日本語に 訳しなさい。

未解決 回答数: 1