Grade

Type of questions

English Senior High

Aの3.4とBの問題2つがわからず、 解説していただきたいです🙇‍♀️🙏🏻

1 Grammar ★ 仮定法 ▸ If it were not for the sun, we could not live. A If it had not been for his knee problem, he would have become a great athlete. 「太陽がなければ、私たちは生きることができないだろう」 ★Do you know 疑問詞 + 間接疑問? / 疑問詞 + do you think + 間接疑問? Do you know where Scott is from? 「彼は膝の故障がなかったら、 偉大な運動選手になっていたことだろう」 1. ◆ Where do you think Scott is from? 「スコットはどこの出身だと思いますか (yes/no で答えられない)」 疑問詞が間接疑問の主語で do you think を用いる場合も、疑問詞を文頭に出す。 Do you know what has happened to Mary? 「メアリーはどうなったか知っていますか (yes/no で答えられる)」 「スコットはどこの出身か知っていますか (yes/no で答えられる)」 ◆ What do you think has happened to Mary? 2. 「メアリーはどうなったと思いますか (yes/no で答えられない)」 ( )から適しているものを選びなさい。 2009 SPITA bu If (there / it) were not for computers, this task would take months to finish. If it had not been for the seatbelt, he (would be / would have been) badly injured. ould would have en for u B S 3. Do you know (what became / what did he become) of him after he left his town? 4. (How much do you think / Do you think how much) I paid in advance for the tour? B各文の( に入るものを選びなさい。 1. If it() for his help, we would not have succeeded in the project. ① were 2 were not ③ had been 2. sho 2. Who () to see me yesterday? Who ( ① you think came ③ did come you think ④ had not been think (2) came do you ④ do you think came (先頭の文字も小文字にしています)

Solved Answers: 1
IT Undergraduate

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プログラムの中で明示的にフ ァイルに出力することもできるので すがここでは安直な方法を取ります

Waiting Answers: 1