学年

教科

質問の種類

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

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

答えを教えてください! よかったら,根拠も教えてください

la vitbl Questions 4-7 refer to the following letter. January 10 Ms. Erin Murphy Customer Service Department Westcoast Airlines Major Miles Program 345 Brook Street Dallas, TX 75218 Dear Ms. Murphy, As per your request during our telephone conversation on January 8, I am sending you Los Angeles International Airport last December. Please note that my ticket was upgraded itinerary and ticket number for my recent roundtrip flight from JFK International Airport business class with a Major Miles Gold Class voucher and should therefore be eligible f full business class mileage credit. 62 Section Il over 15 years. I must confess that I find the new restrictions to your flight voucher pla I am a Gold member in the Major Miles program and have been a Westcoast customer 1 genuinely confusing. I fail to understand why the burden of proof for my mileage cred rests with me. Shouldn't this information be on your ticketing computer? This was my itinerary. MD My ticket number was #YB42565697. Departed JFK, December 22 at 10:20 for LAX Returned to JFK from LAX on December 29 at 16:40 My seat number was 14B. 7B My Major Miles number is # 04356721 (Gold Card). I sincerely hope that this issue will be resolved quickly as I am counting on my miles eame during this trip to upgrade my hotel room next May. Thank you very much for your attention in this matter. Sincerely Yours, Jarrod Watkins Jarrod Watkins 4. 5. 6. What does Ms. Murphy do? (A) She makes airline reservations. (B) She deals with unhappy customers. (C) She issues new tickets. (D) She upgrades people to business class. What is the purpose of this letter? (A) To upgrade his ticket to business class (B) To buy a flight upgrade coupon (C) To complain about his seat reservation (D) To receive more mileage credits How does Mr. Watkins feel about the new frequent flier program rules? (A) He would like them to be simpler. (B) He believes they are unfair. (C) He finds them to be convenient. (D) He hopes that they will benefit hold Card members more. Which of the following is NOT mentioned in the letter? (A) His ticket number (B) His frequent flier level (C) His credit card number (D) His flight information inq M:8 big en enthovenot cold w lar hud,mq 01X in jord is di Hal Unit 2: Letters, E-mails, & Text message chains 63

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

全部でも一部でもわかる方教えてください!!

1. 次の文に当てはまる正しい語(句) を選び、( )内に書きなさい。 (1) The teacher made me [ read / reading ] the book. その先生は、その本を私に読ませた。 (2) Let me [ knows / know ] whatever you want. 16 (5-7 RETU+RB+HG) ほしい物は、 何でも知らせてください。 (3) [ Let / Let's ] watch the boxing title match on TV. テレビでボクシングのタイトルマッチを見よう。 (4) 1 [ had / got] my brother to help me with my homework. astu Shelp mew 私は、弟に宿題を手伝わせた。 30459551610402 NJ lllwym tanisge loed op em ebem SH ( 3. 次の( 内に正しい語を入れなさい。 (1) The employee ( ago. ob 1eri tel GIR: evad 2.次の 内の3つの語(句) のうち、最も適切なものを○で囲み、文全体を日本語に訳しなさい PROUESO (688JJ-118 適切なもので MTDGHT 1ST DE (1) The gorgeous dress (makes / lets / has ) Jane look like another person. [ Luoy (2) She was always (had/let/ made) to clean the kitchen by her mother. HOM othel. (3) My father ( (4) John (ように! [ EO) Hallona I'nbluos | (3) The teacher (forcing / forced / is forced) the students to go out of the classroor [ (55 (4) Iwas (allows / allow / allowed) to smoke in the room. [ ) JOW LOYD Bario of od ARFJURIA (2) Takeshi could make (0) x) understood in English. W and mand ) compelled to leave the company one mont ,0501:0 ) his computer repaired last year. 内の his hair cut the day before yesterday.

回答募集中 回答数: 0