学年

教科

質問の種類

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

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

英読解の問題です。 すっかり忘れてしまったため何も分かりません。 3問教えて欲しいです。お願いします><

5. 次のメッセージを読み、 [4×3=12] (1)~(3) A~Dで適切なものに○をつけなさい。 Sarah Rogovin [09:20 A. M.] Good morning. Li Na and Dave. Could you let me know the latest on the Taipei trip? Li Na Tsai [09:25 A. M.] Everything is prepared at this end. I've booked a meeting room for three days, ordered refreshments, and arranged daily taxis to and from your hotel. Sarah Rogovin [09:28 A. M.] Fantastic. Did you remember that three people are vegetarian? Li Na Tsai [09:30 A. M.] Yes, they have separate meals. The price is actually a little lower for them. Dave Kaplan [09:31 A. M. 1 And I just confirmed the new flights for you and Chen Wang. Sarah. You're now flying direct from Singapore to Taipei at 6 P. M. on Sunday. My apologies again for the misunderstanding. Sarah Rogovin [09:34 A. M.] Thanks for sorting that out. Dave. This makes the journey much easier. Could you e-mail the electronic ticket to Chen Wang when you receive it, please? Dave Kaplan [09:35 A. M.] Consider it done. Li Na Tsai [09:37 A. M.] Sarah, I've arranged for a projector, but do you also need a laptop set up in the meeting room? Also, the staff there will give you an access code for the room; you may need to ask for it. a Wi-Fi signal Sarah Rogovin [09:40 A. M.] As you said previously that there's throughout the hotel you've booked, I'll use my own. Thanks again for your hard work, both of you. (1) Why does Ms. Rogovin ask about food? (A) She wants to eat in a separate room. (B) Her colleague forgot to order meals last time. (C) Some attendees don't eat meat. (D) She thinks the meals are too (2) What is suggested about the flights? (A) They are booked for Sunday morning. (B) The original booking was incorrect. (C) A discount was offered on the price. (D)) There will be a short stop on the route. (3) At 9:35 A. M.. what does Mr. Kaplan mean when he writes, "Consider it done" ? (A) He will forward a document. (B) He will call Mr. Wang. (C) He will reserve two seats. (D) He will order a taxi.

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

答え合わせの為、答えを教えて頂きたいです。 よろしくお願いします。ビジネス英語です。

Working with words 1 Complete the sentences with the words in bold. Change the form of the word in bold or add another word to it. supply 1 It's important to build good relationships with different suppliers. 2 Our supply chain begins with the manufacturer in India and ends in our UK shops. is much higher but it's transport 3 The cost of air faster. show 4 Customers from all over Europe visit our in Paris and Milan. invent 5 Every item in our photographic records of each of them. middle 6 The problem with using is that it adds to the final cost of products because we have to add on their fee. is unique, so we keep ship 7 We have a large. track 8 We use barcodes to stock coming in and out of the warehouse. made 9 All our pots are _, which makes them expensive, but our target customer doesn't want anything mass-produced. original 10 The arriving in three days. of the of the products is printed on the bottom of the box. 2 Underline the correct words in italics to complete the sentences. 1 The book is currently out of stock, but it is on / out of order, so we'll have it soon. 2 We need to stock up on / run out of headed paper. Could you put an order in? 3 I ran low on/out of ink, so I couldn't print out the report. 4 We can keep track of/ on track our order by satellite. 5 Let's stop at the next service station. We are running low/out on petrol. Business 1 Complete the phone call between Virginie, a customer, and Kevin, a call handler. Put the words in italics in the correct order. Kevin Good afternoon, you're speaking to Kevin. How can I help you? Virginie Hello, I am up/chasing/an/order chasing up an order I placed three weeks ago. Kevin account /take/I/your/details / Can please? 2 Virginie Yes. The account number is 572638. Kevin OK. If you bear with me a moment, I'll into / look/it 3 Let me see. Well, my /to / information / according it is still on order. 4 Virginie I really need to know happened /to/has/it/ what 5 Could check/me/you/it/for/out 6 ? Kevin Certainly. I'll back/you/to/hour / within/get/ the 7 Virginie Thank you. 2 Kevin calls Virginie back. Complete their conversation with the phrases from the list. put the order straight through asap charge it to was dispatched on check it out as quick as we can must have gone wrong Kevin Hello, this is Kevin from DYK calling. I've got some information about your order. Virginie Oh, thanks for calling back. So, what's happened to it? Kevin Well, we put the order straight through to the warehouse, and it 2_ the 25th. Virginie But I haven't received it yet. Kevin I'm sorry about that. Can you confirm the delivery address? Virginie We wanted it delivered to our Brussels office. Kevin Oh, something 3 It looks like it might have gone to your Paris office instead. I'll 4 straightaway. Virginie I've already been waiting three weeks. Could you just send it again 5 ? Kevin OK, no problem. We'll resend it Virginie Thank you. And please not the Paris one. the Brussels account,

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

TOEIC正解、よろしくお願い致します!

Questions 5-7 refer to the following letter. a new member to the club To welcome confirm To | continued membership Mr. Leonardo Harper 571-45 Heiligenstàdter Street Vienna 1190 の) December 15 Dear Mr. Harper, Thank you for your continued support of the North Vienna Concert Hall We are writing to confirm receipt on December 14 of your North Vienna Club membership renewal payment for next year. Alnterviews with musicians To celebrate our 30 year anniversary, we are happy to announce some new special benefits for club members. Starting next year, club members can receive a 10% discount on any concert held during the first three months of the year. Call our ticket office at 1-5123098 and use the promotional code CZ1713 when you order your tickets. Please note that discounts only apply to pre-orders placed during this special period. IC) Commentaries on 0 The concert schedule performances As always, members will receive our monthly magazine, North Vienna Club, which features concert reviews and interviews with various artists and musicians, together with news and schedules of all of the events at the concert hall. Next month's issue will feature a six-page interview with the world famous conductor Franz Minsky. Once again, we thank you for being a North Vienna Club member and for supporting arts and music in our community. Sincerely, Roy Pophins Roy Hopkins Director North Vienna Concert Hall の の)

回答募集中 回答数: 0
1/2