学年

教科

質問の種類

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

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

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

2022 P=HT 6. 次のお知らせを読み、 (1) ~ (2) のA~Dで適切なものに○をつけなさい。 [4×2=8] TO: All staff From: Erin Liner, Manager Date: July 15 Subject: Our survey Dear all. We have finished reviewing the data which we received from the recent customer satisfaction survey. I would like to share the most important findings, and how we can improve on certain areas of our work. Overall, customers were happy with the quality of our service. the helpfulness of our staff, and the range of products we offer. However, there were some negative comments which we can begin to work on. A common complaint was that there are not enough foreign titles in the store, especially Japanese comics. I will ask John Calman to research some of the most popular series and make sure we start carrying them from the fall. As Gita Pradesh spent her college years in Tokyo, I will ask her to assist. Better signage was another thing which people wanted. They spend a lot of time looking for the right section and it frustrates a lot of customers. This is something we can improve immediately, so I will speak to Alice Moore today about making the signs easier to see, and adding more if necessary. Finally, we got some comments about having a small cafe in the store. Nowadays, people want to have a coffee while reading or browsing, and it could be a new source of profit. Mario Venetti will make a report on the feasibility and deliver it next month. Thank you for all your efforts in making us the best we can be. Erin Liner Manager (1) What is the purpose of the e-mail? (A) To ask staff to create survey questions (B) To share details of customer feedback (C) To inform staff of recent changes (D) To invite staff to apply for new positions (2) Where does Ms. Liner most likely work? (A) At a café (B) At a movie theater (C) At a clothing shop (D) At a bookstore 以

回答募集中 回答数: 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
1/3