学年

質問の種類

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

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

問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