Grade

Type of questions

IT Undergraduate

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プログラムの中で明示的にフ ァイルに出力することもできるので すがここでは安直な方法を取ります

Unresolved Answers: 1
Mathematics Senior High

写真の問題の(2)の赤線部についてですが、なぜ追試を受けた人はx1の一人だけなのですか? 例えばx1,x2が同じ点数だった場合、最低点に当たるのはx1とx2の二人になりますよね?でも問題文では最低点が一人とは書かれていないです。 解説おねがいします

10人の生徒が10点満点のテストを受けた。 得点の低い順に並べたデータを 1, 2, ..., 10 とする。 最低点の生徒は合格点に達しなかったので, 翌日追試を受けて 2 合格点をとった. 追試前の平均,分散をそれぞれx, sz', 追試後 の平均,分散をそれぞれ, y, s,” とするとき,次の問いに答えよ。 (1) との大小を判断せよ.すべて正確を (2) I = 7. S2=3.4 とする. ( 追試を受けた生徒の得点が3点から5点になったとき OGT) sy2 の値を求めよ. grupa (2) 追試を受けた生徒の得点が' のとき, x1'=x1+2 …. y=''…..+I10= _x+x2+..+ x 10 +2 10 10 (11²2² + x² ² + ... + x²₁60²) - ( 7 ) ² √ 138 == 17/0 (1₁²³² + x ₂ ² - 2 Sy • 1 0 ( ( x ₁ + 2 ) ² + x ₂²³ + ... + x ₁0²) — (7)² 10 = 1 / 0 (x²₁² + x ₂²³ + ··· + x₂0² + 4x²₁+4)−(y)² ... = -1/10 ( x ₁ ² + x ₂ ² + + + x₂0²³) - (+)² + (x)² − (7)² + ²(x1+1) 5 2 =S₂²+ (x+y)(x−y)+² (3+1) 14 ==x+0.2=7.2 = sz2-14.2×0.2 +1.6 = sz2-2.84+1.6=3.4-1.24=2.16 235

Waiting for Answers Answers: 0
English Senior High

この文の第二段落のamid calls for ~のcallsは、名詞でしょうか?前置詞のamidとcalls forのつながりが、なぜこのような訳になるのか理解できません。このcalls が名詞だと仮定して直訳すると、管理下において大規模に火を放つことを求める要求の最中に... Read More

王 jon 【目標解答時間 15分 配点 37点 15 次の英文を読み, 下記の設問 (A~D) に答えなさい。 Fire is "a good servant but a bad master." In my house, in summer, I smell the air for the faintest hint of smoke as keenly as any horse or dog or kangaroo. I watch for columns of smoke, visualising again and again how fire could rush( 1 )the hill towards us. But if you are philosophical about it, fire is a natural 5 part of the Australian environment and has been for millions of years. Living with the threat of fire in the bush, or in the wild, is like living with sharks when diving, or with snakes while walking, or with traffic accidents on a city street. The idea that we should remove every shark from the sea, or every snake from the land, and control- burn, or deliberately set fire, to prevent any risk of 10 bushfires is a recipe for making the environment even worse. As Phil Koperberg, head of the New South Wales Fire Brigades, said ( 2 ) the Sydney bushfires of 1994, amid calls for massive control burning, “Do you want to concrete over all the bush? If you choose to live in the bush, you choose to accept the risk. f It is often claimed that some Austratian plants and animals have actually adapted to fire, evidence of an extraordinarily long period (millions of years before human arrival) during which fire has been more significant in the Australian environment than it has been on any other continent, but this is probably not strictly true. Many plants have adapted to the environment in 20 ways that also happen to be valuable in times of fire. ( 3 ), animals have adapted to a variety of different habitats, and can therefore survive during different periods of vegetation regrowth after a fire (or after, say, a cyclone, a flood, or just a tree falling in a forest). A tree that has the ability to regenerate from roots or lower trunk when the 25 upper tree dies as a result of being broken off in a storm, or falls over, rotten to the core, will also be able to respond when the upper part is killed by a fire. Seeds adapted to long hot droughts, and requiring a combination of heat and water for germination", will also find a fire, if followed by rain, a good stimulus for growing new plants. There does appear to be evidence that chemicals in 30 smoke can help promote growth in plants, but whether this is a direct 可能性があるかを 何度も が続いているのだ。 森林地帯, ダイビングのときにサメ, そやカンガルーにも負けな の匂いを嗅ぐ。 私は,どのよ 暮らすようなものである。 海 しき主人である」( れば, 火事はオーストラリア >> のヘビを取り除くべきだと 意図的に火を放つべきだ , 1994年のシドニー ている真っ只中 と言った。 入れるこ

Unresolved Answers: 0
101/824