学年

質問の種類

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

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
英語 高校生

この問題をといてもらえませんか?

D D D 字にしなさい)。 を参考に、以下の語句を使って1~10のセンテンスを完成させなさい (文頭は大文 everyone herself its them everything him one we he his our you her ours yourself hers their 例 The financial year ends in March, so (everyone)must must work hard. 会計年度は3月で終わるので誰もが一生懸命に働かなければならない。 1. Gap was established as a small store in 1968. Now ( global company. ギャップは1968年に小売店として開店した。今ではグローバル企業である。 2.( ) dream of becoming entrepreneurs has finally come true. 彼らの企業家になる夢がやっと実現した。 ), but another company will ) is a 3. The design for the product is ( manufacture ( ). その製品のデザインはうちのものであるが、 製造は他社がすることになる。 4. After the 1990s many Japanese banks merged, and many of ( have become mega-banks. 1990年代以後、 日本の銀行は合併し、 そしてそれらの多くはメガバンクになった。 5. The tomer went to talk to the company's sales manager (old) about return policy. その消費者は返品の方針についてじかに販売部長に話しに行った。 6. ( ) company is listed on the Tokyo Stock Exchange. Fifty-one percent of the stock is ( 彼女の会社は東京証券市場に上場している。51パーセントの株は彼女のものである。 7. The president wants to control ( ). Now most decision making is done by ( ). 社長は何でも支配したい。こうなると、ほとんどの意思決定は彼によってなされる。 8. The senior manager was transferred to a local branch in Okinawa. ) has to live away from ( ( ) family now. 次長は沖縄の支店に異動になった。 彼は今では家族と離れて暮らさなければならな 9. To be a good businessperson, ( ). よいビジネスマンになるには自分のことを信じなければならない。 ) have to believe in 7

回答募集中 回答数: 0
英語 高校生

109番〜120番の答えないため確認できないのでみなさんの回答をよろしくお願いします🙇‍♀️

109. The hotel's ------- shuttle bus will take st guests to Hong Kong's major landmarks. months of work to sell the Apton Building, the realtor finally succeeded last cm week, al bas 110. (A) compliments (B) complimentary (C) compliment (D) complimenting (A) Besides (B) After (C) Still (D) For 111. We will review all four custodial-service bids ains and choose ------- that suits our needs. reauozib ybisenie Azoril (A) some (B) one (C) others (D) either olde 27 112. The client asked for the advertising text. (A) standards (B) drawings (C) revisions (D) duplications 113. Please be advised Juoriquant (A) phols is (0) dourn co! (0) entste wob (0) (A) that (B) of (C) whether (D) between (A) obtains (B) competes (C) inquires (D) claims brojed (A) etion ------- we have had to cancel your order because of a difficulty with our shipping agent. polisem to the images in ont est ------- (9 114. Tin Creek Corporation towels are the most absorbent on the market. .OET that its paper 115. KCLN Associates will enter into a business with the contractor as soon as some of the terms are renegotiated. (A) agreed (B) agreement (C) agreeable (D) agreeing 116. ------- ---- registering for online banking is not required, we strongly recommend it to all of our customers. (A) Although (B) Instead (C) Regardless (D) Despite 117. Viewers can easily ------- to the main character in the popular television series Autumn Mystery. (A) related (B) relatable (C) relating (D) relate of 118. Fairlawn Medical Clinic offers a full ------- services as part of its community wellness programs. (A) center (B) surplus (C) range (D) type ROT 119. The rear entrance to RC Bank will be closed for repairs and not next Monday. (A) accessible (B) accessing (C) access (D) accesses (A) decidedly (B) furthermore (C) rather (D) everywhere allory (5) vetele (0) balio (0) 120. Mr. Carson wants to see Carson audio products -------, even in remote regions of the world. TEST

未解決 回答数: 1
英語 高校生

至急❗️大門3と大門4がわかりません。教えて下さい。よろしくお願いします。

3 次の英文の( )に入れるのに最も適当なものを1つ選び、記号を○で囲みなさい. (1) 2012 is the year ( 7. when ) our soccer team played in the finals. 1. where . which (2) Japan is the country ( 7. how ) people drive on the left. 1. that . where ) I respect him. (3) My father works hard every day. That's ( 7. how 1. when . where (4) There are some points ( ) I disagree with you. 7. how 1. when . where ) our city is often attacked by typhoons. (5) Summer is the season ( 7. how 1. when . where ) a famous novelist lives. (6) That is the house in ( 7. that 1. which (7) I caught a cold. This is ( 7. how (8) The time will come ( (2) That is the point when you are mistaken. I. why * drive on the left 「(車が) 左側を走る」 I. which (3) I want to know the way you cooked this delicious dish. . where ) I will be absent from today's meeting. 1. which . why I. whose ) humans live to be 150 years old. *live to be ~ 「~になるまで生きる」 1. when 7. how . where I. why (9) I'm interested in publishing a book. Could you tell me ( ) you published your book? 7. that 1. how . which I. whose (4) That is the bakery where my aunt opened last week. I. why I. why 4 次の英文の誤りを正しく直し、全文を書きかえなさい. 誤りがない場合は,解答欄に○を書きなさい. (1) Please tell me the exact time where you will arrive here. (5) Do you know the place where we often gather and have lunch in? I. whose I. whose (6) In our house, we have a beautiful flower bed where my mother loves. * flower bed 「花だん」

未解決 回答数: 1
英語 高校生

正直に言って難しいです 教えて下さい🙏

たことに気 さらなる 寝てしまっ を息子に与え ので とでも、 ■p.112-1 るだろう になる) ます) 行 3年間 en + EXERCISES S 時制(過去完了形 未来完了形) ⑤ ()内の動詞を適切な形にしなさい。 れなさい。 (1) Ann knew I (buy) a new smartphone the week before. (2) Ed got good grades on the final exams because he (study) hard for them. (4) He said that he (meet) her two days before. & vil Jan REA : of elds ed\neb ((3) Jack went out last night though he (promise) he wouldn't. daten yabroamib (gorout) antiu alq mas 10 23 TVC à o elde ed A 6 日本語に合うように, )に適語を入れなさい 。 (1) 私はテストまでに,この単語を全部暗記しているでしょう。 I( ) memorized all these words ( (2) 今度の3月で、 私はこのスイミングクラブに所属して5年になる。 I()()( to this swimming club o sídù phblus ta March. (3) 来春の終わりまでで, 彼らは7年間日本で暮らしたことになるでしょう。 )the end of next spring, they ( ).( ) seven years. C the time of the test. rlds ad TO W ) five years next niwe bluos ade ) in Japan (2) 私は今度また〜に行くと, ・・・回行ったことになる。 [be] D datrontalde 7 与えられた状況に合うように ( )内の語句を並べかえ, 全文を書きなさい。 ただし、不要な語 on Dinos snblios of olde 句が1つずつ含まれています。 C D (1) 状況 「ハムレット」の新訳がもうすぐ出ます。 ユイは2回読んだことがあるので・・・。 Yui (read / three times / had / Hamlet/ have / will) if she reads the newest translation. BT: (638 (2) 状況 大学卒業後に日系企業に就職したエリー。 もうじき勤続20年になります。 In October, Ellie (been / the same company/have / for/ has / will / working) for 20 years. 28972 TOMUT SAT (3) 状況 徹夜で勉強するつもりだったが気づくと・・・。 When I woke up this morning, I (asleep / realized / have/I/ that/ fallen / had ) while studying last night. 8 [ ]内の語を参考にして, 〜, ・・・に自由に語句を入れ, オリジナルの英文をつくりなさい。 CD 445) und sd d'abloos ist a (1) 私はすでに... (人) が〜したと思っていた。 [think][loansajtarablwoo BOJAD Sou ed il m 29

未解決 回答数: 1
英語 高校生

至急❗️ここの問題がわからないので教えてもらえると助かります。よろしくお願いします。

3 次の英文の( )に入れるのに最も適当なものを1つ選び,記号を○で囲みなさい. (1) 2012 is the year ( ) our soccer team played in the finals. 7. when 1. where . which (2) Japan is the country ( I. why ) people drive on the left. * drive on the left 「(車が) 左側を走る」 1. that . where I. which 7. how (3) My father works hard every day. That's ( 7. how ) I respect him. . where 1. when (4) There are some points ( ) I disagree with you. 7. how 1. when . where ) our city is often attacked by typhoons. (5) Summer is the season ( 7. how 1. when . where ) a famous novelist lives. (6) That is the house in ( 7. that 1. which . where ) I will be absent from today's meeting. (7) I caught a cold. This is ( 7. how 1. which . why I. whose (8) The time will come ( 7. how ) humans live to be 150 years old. * live to be ~ 「~になるまで生きる」 1. when . where I. why (9) I'm interested in publishing a book. Could you tell me ( ) you published your book? 7. that 1. how . which I. whose (2) That is the point when you are mistaken. (3) I want to know the way you cooked this delicious dish. (4) That is the bakery where my aunt opened last week. I. why 次の英文の誤りを正しく直し、全文を書きかえなさい. 誤りがない場合は,解答欄に○を書きなさい. (1) Please tell me the exact time where you will arrive here. (5) Do you know the place where we often gather and have lunch in? I. why I. whose I. whose (6) In our house, we have a beautiful flower bed where my mother loves. * flower bed 「花だん」

回答募集中 回答数: 0