学年

教科

質問の種類

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

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
経営経済学 大学生・専門学校生・社会人

マクロ経済学です。Aの(3)、(4)、大問C、C-2の解き方が分かりません。

● 「択一式の問題用紙」 は両面印刷で3枚(片面で5ページ分) あります。 大間はA~Dの4題、 小間 は (1)~(20) の合計 20問です。 それに続いて計算用紙 (白紙) 3枚付属しています (適宜、 ホッチ キスから外して使用してください)。 「択一式の問題用紙(計算用紙を含む)」は持ち帰ってください。 「択一式の解答用紙」 はマークシート方式で、全部で1枚あります。 同解答用紙には、名前、学籍番 号(手書き及び番号のマーク)、 学類名を必ず記入してください (提出者を特定することができなか った場合は、原則として欠席の扱いになります)。 「択一式の解答用紙」 は必ず提出してください。 択一式問題 (選択肢から一つを選ぶ問題) は、二つ以上の選択肢を選んで解答 (マーク) した場合、 その問題の得点は0点となりますので十分に注意してください。 [大問 A] 閉鎖経済のパンナコッタ共和国における下記の経済データを用いて以下の(1)~(4) の問いに答え、 選択 肢から正しい解答を一つ選びなさい。 ただし、物価水準は考慮せず、 名目と実質の区別はしません。 また、 政府からの移転所得(年金や子供手当など) はゼロ、 統計上の不突合もゼロとします。 雇用者報酬 営業余剰 固定資本減耗 総税収 450 間接税収 200 政府補助金 50 財政収支 100 民間貯蓄 (1) 国内総生産(GDP、 Gross Domestic Product) を求めなさい。 1650 ②700 ③720 4750 (2) 政府支出を求めなさい。 ①50 290 3120 ④160 (3) 民間投資を求めなさい。 100 ②140 3200 ④250 (4) 民間消費を求めなさい。 ①470 ②500 ③540 ④570 70 50 -20 120

回答募集中 回答数: 0
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