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
English Senior High

①、②、③教えてください🙏

don 53 来] [] 表 す 201 D ld rd pp.1 1 Exercises 次の英語に合う日本語を完成しなさい。 1) I will help my mother in the kitchen. 私は台所で He won't listen to us. 彼は 3) Ann will be in London by now. アンは今ごろ 2) 4) Will you take me to the station? 私を - 4 ) 4) 2 日本語に合うように,( )内から適切なほうを選びなさい。 1) 私は明日, 沖縄の友達に電話をするつもりです。 I(will / would) call my friend in Okinawa tomorrow. 2) タクはどうしても英語を話そうとしません。 Taku( won't / wouldn't ) speak English. 3) 子どものころ、 私はよく森へ行ったものです。 I (will/ would) go to the woods when I was a child. この家の前に高い木がありました。 smilu There (would / used to) be a tall tree in front of this house. A 3 対話文が完成するように,( )に適切な語を入れなさい。 ) (1971 1) "( 2) "( 3) "( ) ( A B )explain the rule to me?” “Sure "iml gam s 2) トムは今ごろ, 電車に乗っているでしょう。 (the train / Tom/be/on/will) by now. 2019 ) go with you?” “No, thanks." ) play basketball after school?" "Yes, let's." wib 3) 彼はよく私の家を訪ねてきたものです。 (to / visit /used / my house / he ). salem of oil falow) 2 gole working bloow) à A Capim yam HV 4 日本語に合うように,( )内の語句を並べかえて英文を完成させなさい。 ABC 1) あなたは明日, 図書館で勉強するつもりですか。 (study / will / the library / you/in) tomorrow? 4) 明日、一緒に買い物に行きませんか。 (we / tomorrow / go / shall / shopping)? 2 Lesson 10 tomorrow? by now. 助動詞 3 29

Waiting for Answers Answers: 0