学年

教科

質問の種類

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

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
TOEIC・英語 大学生・専門学校生・社会人

ミドリの蛍光ペンで引いている部分がなぜそうなるのか分からないので教えてほしいです💦

) without an overcoat. (帝塚山学院大) It is warm here in winter. I can ( 0 do 2 hold ③ keep ④ bear し (3) 幸福は財産の多さにはない。(高知大) Happiness does not consist ( 2 at 3 of ④ in ) how many possessions you own. 0 on (3) 4 ) for this error. (中央大) (4) It's very hard to ( 0 make ② look ③ acount ④ take デ大) (4)と3 (5) That coat doesn't ( O go with )your shoes. (南山大) 3 suit for 4 fit at 2 match to 2 (6) The car crash ( 0 carried )in the death of three people. (南山大) caused 3 resulted ④ eliminated (6)_3 (7) Although he was drunk, he insisted ( 2 in ③ to ④ for ) driving. (北海道工業大) 0 on (7) 1 (8) 彼女の推測は正しいことがわかった。(専修大) Her guess turned ( 0 off 2 out ③ at ④ in ) to be right. 2 (路面が)凍結していたために多くの事故が起こった。 (専修大) Many accidents resulted ( 0 in 2 on ) the icy conditions. 3 for の from 1(10) The total fee for the summer course ( many classes you take. (中央大) O leans on ② depends on ③ counts on ④ relies on (10) (11)I certainly agree ( )you on this point. (駒淫大) ① with ② at ③ in ④ for ートフォン 、( を手に入れた。 (12)「すみません, このジャケットが気に入りました。 試着してもいいですか」 「もちろんです」 2 (愛知学院大) )?""Sure." “Excuse me, I like this jacket. May I try it ( 0 on 2 for ③ off ④ in (12) (13) そのスキャンダルの結果, 2人の大臣が辞任した。(中央大) The scandal ( O brought 2 led ③ took ④ made ) to the resignation of two ministers. (13) 2(14)1 ran ( ) one of my old friends on my way back home. (摂南大) 0 through ② out ③ away ④ into (14) _7 4

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

コミュ英です 解ける方いましたらお願いします 提出が迫っている科目がいっぱいありすぎて、手が足りないので助けていただけると助かります…

1.次の英文に主部と述部の境界線を例のように入れなさい。 そのあと全文を日本 語に訳しなさい。 dT (1 T (S M (8 例:European countries / can be divided into three groups. ① The watch stolen from the shop was a valuable one. ②) The bookI wanted was written by Natsume Soseki. wIO ③ The girl with long hair gave the police some information. 0 b of 4 The missing girl wandering about the woods was found dead. 5 The news of the accident makes me sad. 6 The telephone on the desk rang loudly. の Takeshi, my brother, used a knife to open the letter. 8 Mastering a foreign language takes longer than learning to ride a bicycle. bag 設問2.次の英語の下線部の品詞名を書きなさい。また英文を日本語に訳しなさい。 1) My father is younger than he looks.(183mの意 2) He worked hard to provide for his old age. 3)I have often been to India. 4)I always use a dictionary for the use of students. 5)I remember the man very clearly. 開 190 noidom adT ((I Nbollid uor ) () lusittib 19ukngt6 9d g, olig .019) 0slqis ) () 6) Stationary cars in traffic jams cause a great deal of pollution. kti2z0q 設問3.次の文の主語S、 動詞V、目的語O、補語C、付加語Aなどに下線を引き分析 をしてから、全文を日本語に訳しなさい。 例:I like dogs and cats. 私は犬と猫が好きです。 SV diw baans bns zad 1) His mother handed him a bag. 2) My sister taught me Japanese history. ob Juods gnidaidt al sde 2aniand 3) 16 149 n 9ob buedaud Tod 2ai2 (8 He had a chance to meet his father. 4) You have made me what I am today. 入る 設問4.次の日本語を指定された文型を用いて英語に訳しなさい。 1)私たちは父の誕生日を祝うためにパーティをした。SVOA 2)父は私に新しい靴を買ってくれた。 SVOO 3)私は危険に気づいていた。 SVCA hnイー

回答募集中 回答数: 0