学年

質問の種類

情報 大学生・専門学校生・社会人

vsコードを使ってJava言語の勉強をしてたんですけど初心者すぎて何が原因で上手くコードの実行ができてないのかわかりません… 勉強の資料として使ってるのは京都大学のJavaによるプログラミング入門 です。

17:43 7月27日 (木) 1.7 使用するサンプルプログラム (TankCalculator.java) 1: public class Tank Calculator { 2: public static void main (String args[]){ final double FLOW_RATE = 1.0; final double TANK_AREA = 20.0; final double INITIAL_LEVEL = 10.0; double time; //s double tankLevel; //m ... ocw.kyoto-u.ac.jp 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: time = 30; 14: tankLevel = INITIAL_LEVEL + FLOW_RATE*time/TANK_AREA; 15: System.out.println("Tank Level at time "+ time + "s = " + tankLevel + "m"); 16: 17: 18: 19: } 20:} 11 System.out.println("Flow Rate = + FLOW_RATE + "m** 3/s"); System.out.println("Tank Area=" + TANK_AREA + "m**2"); System.out.println("Initial Level = " + INITIAL_LEVEL + "m"); time = 60; tankLevel = INITIAL_LEVEL + FLOW_RATE*time/TANK_AREA; System.out.println("Tank Level at time "+ time + "s=" + tankLevel + "m"); 【補足】 // の後ろは,プログラムを後で読解しやすくするための注釈です. Flow Rate = 1.0m**3/s Tank Area = 20.0mm**2 Initial Level = 10.0m 8 Tank Level time 30.0s = 11.5m Tank Level at time 60.0s = 13.0m 1.7.1 サンプルプログラムの入力と実行 先ほどと同じように, 秀丸エディタを開き, 20行のプログラムを書き込んで, Tank Calculator.java と名付け, 保存して, コンパイル, 実行してください. 成功すれば,以下の実行結果が示されます。(失敗してもめげないで, 2.5.1 節を参 考に、原因を考え,再トライしてください) ちなみに, 実行結果をファイルに書き出すにはコマンドプロンプトの「リダイレク ト」 という機能を使います 11. java TankCalculator > result.txt これにより result.txt というファイルが出来ているはずです。 中身は数値や文字列 だけのテキストファイルですのでエディタなどで内容を確認できます。 @91% 11javaプログラムの中で明示的にフ ァイルに出力することもできるので すがここでは安直な方法を取ります

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

数2bの三次関数の問題です。 解答の[3]でx=1となる理由がわかりません。教えてください

354 0000 基本 例題 223 係数に [類立命館大] 基本 219 重要 224 aを正の定数とする。 3次関数f(x)=x-2ax²+ax 0≦x≦1における最大 値M(α) を求めよ。 指針 文字係数の関数の最大値であるが, p.350 基本例題 219 と同じ要領で, 極値と区間の 端での関数の値を比べて最大値を決定する。 f(x) の値の変化を調べると, y=f(x)のグラフは右図のよう になる(原点を通る)。 ここで, x= 満たすx (これをαとする)があることに注意が必要。 以外にf(x)=f(01/3)を よって、1/31a ( 1 / <a) カ が区間 0≦x≦1に含まれるかどうか 3' で場合分けを行う。 ★ f'(x)=3x²-4ax+a²= (3x-a)(x-a) 解答 f'(x)=0 とすると ...... X 3' a>0であるから, f(x) の増減表は次のようになる。 x= a 3 x= x = 1/3であるから a f'(x) + 0 f(x) 極大 極小 x= 10²K (x - ²)²(x-132-a)=0 4 a x-2ax2+ax- -a³=0 27 0 + x=1/3以外にf(x) = 12/10 を満たすxの値を求めると, 4 f(x)=27から [1] 1</03 すなわちa>3のとき f(x)はx=1で最大となり M(a)=f(1) ... (0) ここで,f(x)=x(x2-2ax+α²)=x(x-a)^ から(* 曲線 y=f(x) と直線 y= √(3)=3(-²a)² = 247ª², ƒ(a)=0 点において接するから、 よって, f(x) の 0≦x≦1における最大値M (α) は, 次のよ うになる。 0 (0) TEXT -a²-2a+1 - 最大 1 YA まずは,f'(x)=0 を満た すxの値を調べ、 増減表 をかく。 <a > 0 から 0< <a 3 0 1-2a 1 - a 435|34|3| a 3 で割り切れる。 このこと を利用して因数分解する とよい。 a a² 5 9 a ax 4 4 a² X= 4 -a 0 3 の 0 WA <指針_ ★の方針。 [1] は区間に極値をとる xの値を含まず, 区間の 右端で最大となる場合。 [2] 3 sas3のとき, 日本 f(x)はx=1/03 で最大となり M(a)-1(²) 練習 ③223 [3] 0<a<1 < 1 すなわち 0<a<2/2のとき, f(x)はx=1で最大となり M(a)=f(1) 以上から 0<a<20 3 <a のとき osus3のとき x=- M(α)=f(1)=α²-2a+1 - 2a 3.1 -=-²/3-a [3] y 27 a³ 43 4 11 1/30) = 12/27 となる。 a³ a²-2a+1 40 g 3 M(a)= a 47a² 3次関数の対称性の利用 場 1.34 の参考事項で紹介した性質 ③3 を用いて、f(x)=227" を満たす x = 01/3以外の の値を調べることもできる。 2つの極値をとる点を結ぶ線分の中点 (つまり, 変曲点)の x座標は MAALILL aは正の定数とする。 関数f(x)=- 2 xx [2] は区間に極大値をと るxの値を含み, 極大値 が最大値となる場合。 x [3] は区間に極大値をと るxの値を含むが、 区間 の右端の方が極大値より も大きな値をとり、 区間 の右端で最大となる場合。 よって、12/3a-13-a-f3a-1/3 . at 1/3=12/24から、 =a- a a+ <f(1)=1-2a・12+α².1 =a²-2a+1 なお, p.344 で紹介した性質を用いる方法は, 検算で使う程度 としておきたい。 + may y=f(x) O x33 +=ax²-2ax+αの区間 0≦x≦2 3 p.368

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

問3教えてください😭😭😭🙇‍♀️🙇‍♀️

元子 The (1)"rare earth elements are a group of 17 metallic elements that are found in the natural 元子 world. Because these elements are used in all sorts of high-tech devices, they are increasingly 全種類 倍増した in demand. In fact, the use of these metals nearly doubled between the years 2000 and 2010. d Despite the name, the quantity of these elements is not so low. Some recent reports have 主張した claimed that the amount of rare earth elements may be on the same level as that of copper* or Even though the elements exist throughout the world, however, the quantity is not LAUOPUS OS sufficient* for mining* profitably* in each location. Moreover, these elements are usually mixed lead*. with other elements, making it difficult to remove them. This explains why they have been called (8) (A) „‚Â#881‡3 GANEUS $0 01X$&NOS "rare" earth elements. (8) jud (A) Jon Despite an ever-growing demand, few countries are mining for these metals on a large scale. bhup gnis91 sus abnsmab 19 (A) jos ei said ino NO One country, China, now handles more than 90% of all mining for rare earth metals. Other Jadi seu ingim owied 参 in di o ogsmeh, countries have not entered this business in part because of In oro guiauso juodhiw moi because of (2) the environmental problems th ANS) OW IGERS allesimonoss maci pruxs of lola su od son ob enido merla corto prinanvoo can occur. Extracting the metals creates a lot of waste, including radioactive* waste from >tojat DEROXA uranium*, thorium* and other elements located in the mining area. poswad belduob vlison and anomals die ve dost-dgid to edmund oros bas The growing need for rare earth metals may convince some countries to expand their mining. bsol 10 190900 2 von dem som vas a su amals drus ma maldong nista on jonzi blow di metavond zimnelo drusele viirusno leuns afte Running out of rare earth metals is not the concern, however. Rather, the question is whether 2 lo word of mine anomals dre His ch 21810 i asıl yainuas vino odo at smidƆ> vob dost-deid ni bozu.ad no vod! they can be obtained without too high of an economic or environmental cost. ololo alam russ

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

109番〜120番の答えないため確認できないのでみなさんの回答をよろしくお願いします🙇‍♀️

109. The hotel's ------- shuttle bus will take st guests to Hong Kong's major landmarks. months of work to sell the Apton Building, the realtor finally succeeded last cm week, al bas 110. (A) compliments (B) complimentary (C) compliment (D) complimenting (A) Besides (B) After (C) Still (D) For 111. We will review all four custodial-service bids ains and choose ------- that suits our needs. reauozib ybisenie Azoril (A) some (B) one (C) others (D) either olde 27 112. The client asked for the advertising text. (A) standards (B) drawings (C) revisions (D) duplications 113. Please be advised Juoriquant (A) phols is (0) dourn co! (0) entste wob (0) (A) that (B) of (C) whether (D) between (A) obtains (B) competes (C) inquires (D) claims brojed (A) etion ------- we have had to cancel your order because of a difficulty with our shipping agent. polisem to the images in ont est ------- (9 114. Tin Creek Corporation towels are the most absorbent on the market. .OET that its paper 115. KCLN Associates will enter into a business with the contractor as soon as some of the terms are renegotiated. (A) agreed (B) agreement (C) agreeable (D) agreeing 116. ------- ---- registering for online banking is not required, we strongly recommend it to all of our customers. (A) Although (B) Instead (C) Regardless (D) Despite 117. Viewers can easily ------- to the main character in the popular television series Autumn Mystery. (A) related (B) relatable (C) relating (D) relate of 118. Fairlawn Medical Clinic offers a full ------- services as part of its community wellness programs. (A) center (B) surplus (C) range (D) type ROT 119. The rear entrance to RC Bank will be closed for repairs and not next Monday. (A) accessible (B) accessing (C) access (D) accesses (A) decidedly (B) furthermore (C) rather (D) everywhere allory (5) vetele (0) balio (0) 120. Mr. Carson wants to see Carson audio products -------, even in remote regions of the world. TEST

未解決 回答数: 1