学年

質問の種類

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

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

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

王 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年のシドニー ている真っ只中 と言った。 入れるこ

未解決 回答数: 0
英語 中学生

二枚目の1、2、3教えて下さい🙏

Acudiny Meg: STEML700 Have you ever heard of the IUCN Red List? ありますか 今までに・・・について聞いたことが Kaito No, I've never heard of it. What is it? Meg: The Red List gives us information about 与える・・・に ~を endangered animals, birds, plants, and so on. 絶滅危惧にさらされている など Kaito: What animals are on the list? Meg: Pandas, cheetahs, and gorillas, for example. Kaito: Really? I didn't know that. Meg: Some animals and birds in Japan are also on it. I want everyone to know that. してもらいたい・・・に ~することを Kaito: Why don't we write an article for our class おいしない? newspaper ? Meg: That's a good idea. .Y109 IUCNレッドリストについて ①,( loom > 1000 D ある? 聞いたこと 海斗 : いいや。 聞いたことない。 それって何? メグ : レッドリストには絶滅のおそれのある動 メグ : 物, 鳥, 植物などについての② (② 情報 )が載っているの。 1109 qu tep Ⓡ 海斗 : どんな動物がリストに載っているの? メグ: 例えば, パンダや、 チーター, ゴリラだよ。 海斗: 本当に? 知らなかった。 メグ : 日本にいる動物や鳥の中にもリストに載っ ているのがいるよ。 そのことを③ て みんな )に④(知って もらいたいなあ。 も らいたい。 VOE 海斗 : ぼくたちで学級新聞の記事に書かない? メグ : いい考えね。 07 Yens althfxo

未解決 回答数: 1