学年

質問の種類

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

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

この誤り箇所指摘の問題が分からないのでよろしくお願いします。

【4】 次の1~10について, 誤った英語表現を含んだ部分がある場合には(a)~(d)から誤り を一つ選び,誤りがない場合には (e) を選んでマーク解答用紙にマークせよ。 1. In (a) classical Islamic history there could be no clash between since the caliph, the titular head of the Islamic state and community, (b) combined in pope and emperor, himself both (c) political or religious-though (a) not spiritual-authority. NO ERROR 2. The years (a) immediately following the end of the Cold War offered (ú) a tantalizing glimpse of a new kind of international order, with nation-states growing together or disappearing, ideological conflicts (c) melting away, cultures intermingling, and free commerce and communications (a) increasing. NO ERROR 3. Despite the growth of the economy, or perhaps (a) in part because of it, and because, as well, (b) the vast rural exodus owing to both (c) population growth and increasing agricultural productivity, workers (a) crowded into urban slums. NO ERR 4. Malthus, Ricardo, Marx, and (a) many others had been talking about inequalities for decades without citing any sources (b) whatsoever or any methods for (c) comparison NO ERROR one era with (a) another. 5. The religious differences between Europe and the United States are (a) typically described in terms of (b) beliefs and practices: Europeans are (c) far less likely than Americans (a) join and attend houses of worship or to believe in heaven and hell. NO ERROR

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

この誤り箇所指摘の問題が分からないのでよろしくお願いします。

【4】 次の1~10について, 誤った英語表現を含んだ部分がある場合には(a)~(d)から誤り を一つ選び,誤りがない場合には (e) を選んでマーク解答用紙にマークせよ。 1. In (a) classical Islamic history there could be no clash between since the caliph, the titular head of the Islamic state and community, (b) combined in pope and emperor, himself both (c) political or religious-though (a) not spiritual-authority. NO ERROR 2. The years (a) immediately following the end of the Cold War offered (ú) a tantalizing glimpse of a new kind of international order, with nation-states growing together or disappearing, ideological conflicts (c) melting away, cultures intermingling, and free commerce and communications (a) increasing. NO ERROR 3. Despite the growth of the economy, or perhaps (a) in part because of it, and because, as well, (b) the vast rural exodus owing to both (c) population growth and increasing agricultural productivity, workers (a) crowded into urban slums. NO ERR 4. Malthus, Ricardo, Marx, and (a) many others had been talking about inequalities for decades without citing any sources (b) whatsoever or any methods for (c) comparison NO ERROR one era with (a) another. 5. The religious differences between Europe and the United States are (a) typically described in terms of (b) beliefs and practices: Europeans are (c) far less likely than Americans (a) join and attend houses of worship or to believe in heaven and hell. NO ERROR

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

1️⃣3 2️⃣2 3️⃣2.4 を教えてください。 あと解いた問題が合ってるか見てください。 答えがついてないので協力よろしくお願いします。

ー くれてありがとう。) Practice 1 日本語に合うように,( 1. 嘘をつくということはほかの人の信頼を失うということだ。 ( is / to / a lie / to / tell / lose) the trust of others. 内の語句を並べかえて英文を完成させなさい。 2. イタリア人がスペイン語を理解することはそれほど難しくない。 fam- (Italians / so difficult / to / for / is / not/it) understand Spanish. 3. 彼が金メダルを取るのは確実です。 ( it / that / will win / certain / he / is ) the gol す。 このような形容詞には,ほかに careless (不注意な), clever (賢明な ) stupid(愚かな ) などがある。 2 日本語に合うように,( 1. 本を読むことであなたはより賢くなる。 ) ( ) ( 4. 今日は雨になると新聞では報じている。 Suoda The paper (it's/that / to / says/ going/rain) today. the gold medal. ebrow (D 3. 人が何と言うかは問題ではない。 ) ( ) ( に適切な語を入れなさい。 bled tneve artt intert S ) you smarter. 2. ドアに鍵をかけないままにしておくなんて, あなたは不注意だった。 ) ( It was careless ( unlocked. sono veWalliM orts 220tos team avevol ov 2. 何で彼女はそんなに怒ったのだろう。 ) ( 3 日本語に合うように, 下線部に適切な語句を補いなさい。 1. 机の上の辞書は私のものです。 3. 私がその本を読み終えるのに3日間かかった。 is mine. *B SCOR her so angry? 4. ささいなミスによって重大な問題が引き起こされることがある。 A minor error can erit nislaxa ) leave the door ) people say. to finish reading the book. 主語を決める Part1 Lesson | 11

未解決 回答数: 0