学年

質問の種類

情報: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
数学 高校生

201.1 増減を調べよ、という問いはこのようにグラフで示すだけでは記述不足ですよね??

基本例題 201/3次関数の増減,極値 次の関数の増減を調べよ。 また,極値を求めよ。 (1) y=x3+3x²9x 解答 (1) y′=3x²+6x-9 p.315 基本事項 ①.② 指針▷関数の増減・極値の問題ではy'の符号を調べる(増減表を作る)。 ①導関数yを求め, 方程式y'=0 の実数解を求める。 ・・・ Z 2② ① で求めたxの値の前後で,導関数y'の符号の変化を調べる。 と塩Bにおける」 CHART 増減極値y'の符号の変化を調べる 増減表の作成 SE GARO th =3(x2+2x-3) =3(x+3)(x-1) ① y=0 とすると x y +: 7 (2) y′=-x2+2x-1=-(x-1)2 y'=0とすると x=1 yの増減表は右のようになる。 よって、常に単調に減少する。 したがって,極値をもたない。 - 3 20 |極大| 27 (2)y=-1/23 x3+x2-x+2 x=-3, 1 yの増減表は右のようになる。 よって 区間 x≦-3, 1≦xで単調に増加, 区間 x y' DÉLY y - FRETCOV0000 |極小| -5 また, x=-3で極大値 27, x=1で極小値-5をとる。 注意 (*) 増加・減少のxの値の範囲を答えるときは,区 間に端点を含めて答えてよい。なぜなら,例えば,v=-3 のとき,u<vならばf(u) <f(v)の関係が成り立つからで ある。 1... 0 + 1053 y'の符号を調べるのに,次のよう雄 身 単なグラフをかくとよい。 (1) (1) y'=3(x+3)(x-1) HOW V -3 1 0 (*) (2) y'=-(x-1) 2 + X $221507 [参考] yのグラフは次のようになる。 YA 1(0)13 (2) 18 1

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

単純に分かりません。教えて下さい。

表すことが をあとに 投的ではな を話すこと (3) 適した仕事を見つけることが重要だ。 化するという している。 ている。 ることが好き しいとわかっ 定詞を用 なっている EXERCISES 束する)な と起こ 1 日本語に合うように (1) その試合に勝つことはほぼ不可能だろう。 ob i ()() the match will be almost impossible. (2) ケンの夢はアメリカで事業を始めることだ。 & Ken's dream ( ) ( ) () a business in the U.S. 表現はあり )に適語を入れなさい。 不定詞① (名詞用法) 3 (3) We're planning ) ( (4) I found it expensive () () London. (5) It was necessary ( )( [finish / visit/ hold / go / take ] 日本(に合う) is important()( ) a suitable occupation. (4) インドで大学に入るのは難しいですか。 + doidiw) - (he Impe) (thing) difficult () enter university in India? lint at watale M (5) 彼は夜ひとりで外出するのは危険だとわかった。 He found() dangerous () (s ) a welcome ceremony. wondl f'nob sauj 10 womal fnasob ade ⓘ 2 下 [ []内から動詞を1回ずつ選び、適切な形にして、英文を完成させなさい。 (1) Mami promised ( ) ( ) care of the cat. (2) I want()() to that school. A B 1) out at night alone.inu roirfw. ) the homework on time. ow Jadwe Hat pp. 195 3 与えられた状況に合うように ( )内の語句を並べかえ, 全文を書きなさい。 ただし、不要な語 句が1つずつ含まれています。 (1) 状況 駅から徒歩3分のところに引っ越したユキ。つくづく思うのは... It is (live/convenient/the station / to / near / for). (2) 私の~(夢・目標)は・・・することである。 [is] $$ sreda > mode 0 A B A B 3419 (2) 状況 受験生になったケンは、夜型の生活から朝型に変えようとしたが….gi vivainl He (it / change/ had / found/ hard / to) his daily schedule. cotto bebisshIO (3) 状況 台風の被災者の方々が取材で次のように語ってい We are all fully aware of how important (to/it/ for / prepare / is / very) natural disasters. F+(19van) 4 [ ]内の語を参考にして~…に自由に語句を入れ, オリジナルの英文をつくりなさい。 AB (1) 私の~(人) は将来 ・・・することを希望している。 [hope] 49

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

答えに解説がなくて困ってます。 下の長文を翻訳してください。

〔Ⅰ〕 次の英文を読み. 設問 1~21 に答えよ。 Sandy lives in an apartment so small that when she comes home from shopping, she has to decide what to move out to make room for her purchases. She struggles day-to-day to feed and clothe herself and her four-year-old daughter on money from freelance writing jobs and helping neighbors. (2) Her ex-husband has long since disappeared down some unknown highway, probably never to be heard from again. As often as not, her car decides it needs a day off and refuses to start. That means bicycling (weather permitting), walking or asking friends for a ride. 13 The things most Americans consider essential for survival- a television. microwave, big freezer and high-priced sneakers are far down Sandy's list of "maybe someday" items. (5) Nutritious food, warm clothing, an affordable apartment, student loan payments, books for her daughter, absolutely necessary medical care and an occasional movie eat up what little money there is to go around. Sandy has knocked ) more doors than she can recall, trying to find (7) a decent job, but there is always something that doesn't quite fit-too little experience or not the right kind, or hours that make child care impossible. Sandy's story is not unusual. Many single parents and older people struggle with our economic structure, falling into the gap between being truly self-sufficient and being poor enough that the government will provide assistance. What makes Sandy unusual is her outlook. "I don't have much in the way of stuff or the American dream," she told me with a genuine smile. "Does that bother you?" I asked. "Sometimes. When I see another little girl around my daughter's age who has nice clothes and toys, or who is riding around in a fancy car or living in a fine house, then I feel bad. Everyone wants to do well for their children." she replied. "But you're not angry?" "What's to be angry (9) and I have what is really important in life," she replied. "And what is that?" I asked. (10) "As I see it, no matter how much stuff you buy, no matter how much )? We aren't starving or freezing to death. (11) money you make. you really only get to keep three things in life." she said. "What do you mean by 'keep?" (12) "I mean that nobody can take these things away from you." "And what are these three things?" I asked. "One, your experiences: two, your true friends; and three, what you grow inside yourself." she told me without hesitation. (13) For Sandy, "experiences" don't come on a grand scale. They are so-called ordinary moments with her daughter, walks in the woods, napping under a shady tree, listening to music, taking a warm bath or baking bread. Her definition of friends is more expansive. "True friends are the ones (15) who never leave your heart, even if they leave your life for a while. Even after years apart. you pick up with them right where you left off, and even if they die, they're never dead in your heart," she explained. 16 ) to each of us. (17 As for what we grow inside, Sandy said, "That's ( isn't it? I don't grow anger or sorrow. I could if I wanted to, but I'd rather not." "So what do you grow?" I asked. Sandy looked warmly at her daughter and then back to me. She pointed toward her own eyes, which were shining with tenderness. gratitude and a sparkling joy. "I grow this." From the book Chicken Soup for the Woman's Soul by Jack Canfield. Mark Victor Hansen. Jennifer Read Hawthorne, and Marci Shimoff. Copyright 2012 by Chicken Soup for the Soul Publishing, LLC. Published by Backlist. LLC. a unit of Chicken Soup for the Soul Publishing. LLC. Chicken Soup for the Soul is a registered trademark of Chicken Soup for the Soul Publishing, LLC. Reprinted by permission. All rights reserved.

未解決 回答数: 1
数学 高校生

112.2 記述これでも大丈夫ですか?

480 00000 基本例題112 互いに素に関する証明問題 (1) (1) nは自然数とする。n+3は6の倍数であり,n+1は8の倍数であるとき, n+9 は 24の倍数であることを証明せよ。 (2) 任意の自然数nに対して,連続する2つの自然数nとn+1は互いに素であ ることを証明せよ。 ATUNATI p.476 基本事項 ② 基本 111 重要 114 CFS CITAT 指針 (1) 次のことを利用して証明する。 a, b, kは整数とするとき a,bは互いに素で, ak が6の倍数であるならば,hは6の倍数である。 TRAXE SHES OU MOC! (2) 1 +1は互いに素⇔nとn+1の最大公約数は nとn+1の最大公約数をg とすると n=ga, n+1=gb (a,b は互いに素) この2つの式からnを消去してg=1 を導き出す。 ポイントは 【CHART A,Bが自然数のとき, AB=1 ならば A=B=1 求める。(間 解答 (1) n+3=6k,n+1=81 (k, lは自然数)と表される。 n+9=(n+3)+6=6k+6=6(+1) n+9=(n+1)+8=81+8=8(1+1)+ M=5A JES RAJS a,bは 11 ak = bl ならばんは6の倍数, 1はαの倍数 互いに素 ②2 aとbの最大公約数は 1 <<549° よって 6(k+1)=8(+1) すなわち 3(k+1)=(2+1) 3と4は互いに素であるから,k+1は4の倍数である。このとき,l+1は3の倍数 したがって,k+1=4m (mは自然数) と表される。 である。 したがって, ゆえに n+9=6(k+1)=6.4m=24m +1=3m と表されるから, したがって, n +9 は 24の倍数である。 n+9=8.3m=24m (2) nとn+1の最大公約数をg とすると n=ga, n+1=gb (a,bは互いに素である自然数 と表される。 n = ga をn+1=gb に代入すると ga+1=gb すなわち g ( 6-α) = 1 g,a,bは自然数で,n<n+1より6-a>0であるから g g=1 (1) としてもよい。 KBT BOE-S) IS = よって, nとn+1の最大公約数は1であるから, nとn+1 (ST 8 は互いに素である。 )=(62. 注意 (2) の内容に関連した内容を,次ページの参考で扱っている。 BOSTOYEVS nは自然数とする。 n +5は7の倍数であり、 Ad>D An=ga, n+1=gb 積が1となる自然数は1だ けである。 08 S (()(A) n+7は5の倍数であるとき、

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

こちらのプリントの回答教えてください。 よろしくお願いします。

4 eehaupbsorl elstog 空欄にあてはまるものを (A)~(D) の中から選んで記号を書きましょう。 rinom soon tundA (8) 1. My first of Toronto was very positive. (A) impressed (B) impressing (C)impressive (D) impression swdua vd oo visuay 1 (5) 3. 2. The special equipment was (A) originally (B) origin (C) original (D) originality 4. The manufacturer (A) produces vaboj alriemriserter prind soinom bib vilW..t A teacher's class. Sum ob incinu vertone (A) friendship (B) friendlily (C) friendly (D) friendliness Autoledad blow approach makes new students feel comfortable in their new es new students fee (B) has produced shwob trand enirkham y 5. It is necessary that the applicant 8. Would you mind (A) open made for those who have mobility problems. mismo2( bloo out a'fariT (8) Of(0) tripim men (8) TV sets in developing countries ten years ago. (D) has been produced (C) produced (A) fill (B) filled (C) fills (D) would fill 6. Tomoko invited me to see the musical with (A) she (C) (B) heraners 10. Is there anyone (A)whom blueWF Tesy jasi cio 7. The CEO by the charity foundation to speak at their annual conference, but he had to decline the request because of a scheduling conflict. (A) asked (D) had been asking (B) was asked (C) has asked 9. The meeting will be held (A) in dar out the form before the job interview. toy bollit need cen (A) admun orong olidam ym e'evgH (8) Jeneves need even ment (2) eldabil opening prupiolansi (B) whose blow reiwi at sol no (D) herself them. the window for me? vietne.m (C) to open (D) to be opening Houp (0) (B) on (C) for (D) at nismen (0) Meason (2) gribnstalue (8) 10:30 in the conference room. is against this alternative proposal? (D) which m) boysin .GP .er Deda briced OS eldialval (A) 11. Tim is as as Linda. (A) more intelligent (B) intelligent (C) less intelligent (D) better intelligent for storage. (A) designated (B) detained (C) reciprocated (D) signified 12. According to the proposal, a large block of rooms in the east wing of the new building will be

回答募集中 回答数: 0