学年

教科

質問の種類

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

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

電気電子回路です。 この分野の専攻ではないのでできるだけわかりやすく説明していただきたいです。 よろしくお願いします。

R (1-1) 10, (1-2) 20 (1-3) 30, (2-1) 10, (2-2) 30, (2-3) 15, (2-4) 10 (1) 演算増幅器 (operational amplifier) 抵抗 (resistance), キャパシタンス (capacitance) から構成される回路 (circuit) について以下の各小問に答えよ.なお,図中の記号は以下の凡例に従うとする.また, 正弦波交流電 圧 (sinusoidal AC voltage) は複素数 (complex numbers) 表示されており、 その絶対値は実効値 (effective value) を表すとし,演算増幅器の利得 (gain) 及び入力インピーダンス (input impedance) は無限大, 出力インピーダ ンス (output impedance) は0であるとする. 虚数単位 (imaginary unit) が必要な場合には」 を用いること. V V. d+o 凡例 + 図1 aR R otol C tr (11) 図1に示す非反転増幅器 (non-inverting amplifier) の利得 A = Vout/Vim を求めよ。 なお は 0 または正の実 数である。 Vout V (12) 図2に示す回路において, 角周波数 (angular frequency) の正弦波交流電圧を印加した. 回路の利得を =vk/vo としたとき、βの絶対値を最大とする角周波数 ac を R, Cの式として示すとともに, w=a の 時の入力電圧に対する出力電圧 Pb の位相差 (phase difference) を求めよ。 (feedback circuit) として図2の回路を追加した図3の回路を考える. 今,α を0から 回路 (13) 図1の回路に 連続的に増加させながら出力 Vout を観測したところ、あるαの時に発振 (oscillation) を開始した. この時 の及び発振周波数 (oscillation frequency) を R, Cの式として示せ . 抵抗値R を持つ抵抗 〇 静電容量 (electrostatic capacity) Cを持つキャパシタンス ○ 正弦波交流電圧を出力する電圧源 演算増幅器 接地 (earth connection) C R 3 図2 Rok 20 V₂ V₂ aR 図3 R Vout -o

未解決 回答数: 1
物理 大学生・専門学校生・社会人

電気電子回路です。 この分野の専攻ではないのでできるだけわかりやすく説明していただきたいです。 よろしくお願いします。

R (1-1) 10, (1-2) 20 (1-3) 30, (2-1) 10, (2-2) 30, (2-3) 15, (2-4) 10 (1) 演算増幅器 (operational amplifier) 抵抗 (resistance), キャパシタンス (capacitance) から構成される回路 (circuit) について以下の各小問に答えよ.なお,図中の記号は以下の凡例に従うとする.また, 正弦波交流電 圧 (sinusoidal AC voltage) は複素数 (complex numbers) 表示されており、 その絶対値は実効値 (effective value) を表すとし,演算増幅器の利得 (gain) 及び入力インピーダンス (input impedance) は無限大, 出力インピーダ ンス (output impedance) は0であるとする. 虚数単位 (imaginary unit) が必要な場合には」 を用いること. V V. d+o 凡例 + 図1 aR R otol C tr (11) 図1に示す非反転増幅器 (non-inverting amplifier) の利得 A = Vout/Vim を求めよ。 なお は 0 または正の実 数である。 Vout V (12) 図2に示す回路において, 角周波数 (angular frequency) の正弦波交流電圧を印加した. 回路の利得を =vk/vo としたとき、βの絶対値を最大とする角周波数 ac を R, Cの式として示すとともに, w=a の 時の入力電圧に対する出力電圧 Pb の位相差 (phase difference) を求めよ。 (feedback circuit) として図2の回路を追加した図3の回路を考える. 今,α を0から 回路 (13) 図1の回路に 連続的に増加させながら出力 Vout を観測したところ、あるαの時に発振 (oscillation) を開始した. この時 の及び発振周波数 (oscillation frequency) を R, Cの式として示せ . 抵抗値R を持つ抵抗 〇 静電容量 (electrostatic capacity) Cを持つキャパシタンス ○ 正弦波交流電圧を出力する電圧源 演算増幅器 接地 (earth connection) C R 3 図2 Rok 20 V₂ V₂ aR 図3 R Vout -o

未解決 回答数: 1
TOEIC・英語 大学生・専門学校生・社会人

()のなかで当てはまるものを教えてください。 お願いします。

lounon 01. (Can/May) I ask where (do you come from/you come from)? 02. Today I (shall be working/will work) after school. 03. Do you want to go with usi i would/can) if (could/would/can) but I (couldn't/wouldn't/can't). 04. To the extent he was able, our English composition teacher taught us (construction/ to construct) a group of words with a (completed/completing) thought, a sentence. 05. If I (am/is/are/was/were) asked a question in English, I try to answer in English. 06. He (has eaten/had eaten/ate) breakfast by the time he left the house. 07. What (will/would/can/could) you choose if you (will/would/can/could) choose between Pascal's wager and cryonics? 08. If I (am/is/was/were) a rich man, 1 (could/can) build a five story house. og. If I (was/were) speeding, I slowed down. 10. If I (am/was/were) a king, my wife (would have been/would be) my queen. 11. Would you please tell me what (is your name/your you mind lending me a hand? 13. I (couldn't/can't) see well for the snow was so heavy. 14. (After having/When became/had become) the shift manager. 15. The doctor would not (have given/give) vaccinations (would of/would have/had) (he/she) is)? 12. (Would/Could) name 1) worked part time a few weeks, I (have become/ (know/knew/known) (because/that) they (have/had) never been (proved/proven) to save a single life. 1-03 1-04 (spoken/speaking).

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

英文法の穴埋め問題をどなたか教えていただきたいです。1〜8までの正解と解説をお願いします。

10 abc X₂ X² Aa A AⓇ フォント # V 1.4 2 ← 2 E 2. The shepherd has a habit of counting his sheep every night to make sure that all there. (A) ite (B) it's (C) their (D) they're E for her best-selling nature photography books, Naomi Ward opens a photography school next month. (A) Know (B) Knowing (C) Known (D) To know 3.4 2 2 段落 e beginning and advanced courses in cellular biology include lecture and laboratory time. (A) Both (B) Each 4. An all-staff meeting on November 6th will focus on ------ each department is doing to prepare for our annual inspection. (A) howe (B) whate (C) Either (D) Every アクセシビリティ: 検討が必要です 2 2 f E 5. John Berg went to his office to talk with his boss he returned from his overseas business trip. (A) as far as E 2 2 6. Bill Cain had never heard of the company; he could not say anything when his A S 8. E ------ ← 標準 I (B) once + ■行間詰め (C) so that (D) whereas 7. This fall, Plasma Tech Inc. is offering a new line of digital metering products that are compact, ---, and reasonably priced.< (A) consistente (B) conveniente (C) insistent (D) present 見出し1 boss asked him about it. (A) however (B) meanwhile (C) nonetheless- (D) therefore On Saturday, October 19, Headlands Sports Club is holding Day. (A) it (B) its 見出し 2 annual Open スタイル E 表題

解決済み 回答数: 1