学年

質問の種類

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

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

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

たことに気 さらなる 寝てしまっ を息子に与え ので とでも、 ■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
英語 中学生

2の⑴がわかりません🥲💦 なぜWhy did you ではなく、Why ware youになるのでしょうか?過去のことを質問するときはdidじゃないんですか?🙇‍♀️ あと、3の⑵の文法の作り方が分かりません🥲 ベストアンサーつけます!

15:54 不定詞 その1 練習問題 (2) | 【1】 次の英文を和訳しなさい。 (1) I studied English to be a teacher. ( (2) Why were you in that room? To wait for my friends. wait for ~=~を待つ ( (3) Julie was surprised to see her mother's face. face = 顔 ( ちびふた English 難易度★☆☆ / イチから(初級) (4) The students practiced hard to win the game. practice = 練習する win = 勝つ ( 【2】 次の日本文の意味になるように、 英文の空欄に適語を入れなさい。 (1) なぜあなたはそこにいたのですか? 部屋を掃除するためです。 ( )( )( ) there? ( (2) 私たちはテニスをするためにコートへ行った。 We( )( ) the court ( (4) 私は彼に会ってうれしかった。 ( )( )( )( )( (3) 音楽を聴くためにここにCDプレーヤーを持ってきてください。 持ってくる = bring Please bring the CD player here ( )( )( )( )( )( ( (3) その魚を見に水族館に行こう。 ※水族館=aquarium (アクアリウム) to / to / let's / the fish / go / see / the aquarium/. ( )( (2) 私たちはその子供たちについて知ってとても悲しかった。 very / to / about / we / sad / know / were / the children/. happylilac.net 【3】 日本文の意味になるように英語の語句を並べ替えなさい。 (文頭に来る語も小文字で示してあります) (1) 私はその絵を見るために美術館を訪れた。 ※美術館 = art museum (アート ミュージアム) the / Ⅰ / to / visited / see / the art museum / picture /. ( (4) なぜ彼女は早く家に帰ったのですか? テレビを見るためです。 ※家に帰る=go home TV / to / she / early / home / watch / did / why / go / ?/. ( m ) the room. ) ) ) ) music. Ć ). ). ) ) 「このプリントはウェブサイトで無料ダウンロードできます。 【ちびふた English】 http://happylilac.net/english.html 【協力】ふたば ) )

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

答えないです。軽く根拠と答え教えていただきたいです。

1 ()内に入る最も適切な語句を①~④から選びなさい。 (1) As far as I know, there are ( each 2 few (2) In developing countries, there are still a lot of villages with no 1 run 3 running ran (3) I didn't like the movie. It was not as ( 1 excited 2 exciting (4) I was so ( 1 disappoint (6) The company is planning a trip ( ) studies on the history of the region. 3 little ) when I heard the news 2 disappointed 3 disappointing and grolle Halid (5) Our office will not accept responsibility for items lost or ( 1 steal 2 stealing 3 stealth to go to swimming going swim (8) My sister ( 1 likes (7) Can I borrow something 1 to write (10) The student ( 1 what ) as I had expected. 3 excite (9) The singer is very talented and is sure 1 to win 2 won juo beatio )? I don't have a pen. 2 to write for (14) One reason 1 which (11) To my surprise, Paul gave me all the books ( 1 of 2 of which ) at a beautiful beach in Okinawa. 3 going to swimming CHE 3 to write with mundo ) the singing contest. ) he had. 3 that (13) Barcelona is the city () I spent last summer. 11 those 2 where 4 much lood a hell ) water. to pass the exam, for she spent a lot of time preparing for it. 2 is liking 3 likely nulol 3 which 4 have run Bürostuler e'an enw triguor (#****** to disappoint excitement Svi no es mob amse salt sven 4 stolen J - 4 what (12) There are only a few places around this area for children to play, (x) is 1 that 2 what 3 where E 4 is likely (東京電機大) idquodi L 4 to go swimming arbonogeek(岐阜聖徳学園大) 4 to write on COPY winning 4 3 for winning MAZSPRODAT ) had a temperature has gone to the nurse's room. lir)) (f (神戸松蔭女子学院大) 2 who 3 whom 4 whose VYSTIM 4 while is really a problem. 4 which (名城大) (日本大) 東京電機大) as C ESPERIEN (松山大) Kenji likes that class is that it is directly related to his dream for the future. 2 when na we 13 where ignoolew\ iady Soa 2 下線部のうち, 誤った英語表現を含むものを1つ選びなさい。 (福岡大) (甲南大) (S) ( 愛知学院大 ) og a spelliver to teriqeorts sil フェリス女学院大) 4 why X (1) Students who choose to 2 major in one of the Liberal Arts disciplines 3 will take courses 4 designing to foster independent thinking. (東北医科薬科大) (2) 1 After serving in the military, the man went back to his native village, 2 which he lived 3 among his Dk. \ ei, childhood friends 4 until he died. her family. (京都外国語大) (2 (2 (3) (5) (6) B D

未解決 回答数: 1