学年

質問の種類

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

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

この文の第二段落のamid calls for ~のcallsは、名詞でしょうか?前置詞のamidとcalls forのつながりが、なぜこのような訳になるのか理解できません。このcalls が名詞だと仮定して直訳すると、管理下において大規模に火を放つことを求める要求の最中に... 続きを読む

王 jon 【目標解答時間 15分 配点 37点 15 次の英文を読み, 下記の設問 (A~D) に答えなさい。 Fire is "a good servant but a bad master." In my house, in summer, I smell the air for the faintest hint of smoke as keenly as any horse or dog or kangaroo. I watch for columns of smoke, visualising again and again how fire could rush( 1 )the hill towards us. But if you are philosophical about it, fire is a natural 5 part of the Australian environment and has been for millions of years. Living with the threat of fire in the bush, or in the wild, is like living with sharks when diving, or with snakes while walking, or with traffic accidents on a city street. The idea that we should remove every shark from the sea, or every snake from the land, and control- burn, or deliberately set fire, to prevent any risk of 10 bushfires is a recipe for making the environment even worse. As Phil Koperberg, head of the New South Wales Fire Brigades, said ( 2 ) the Sydney bushfires of 1994, amid calls for massive control burning, “Do you want to concrete over all the bush? If you choose to live in the bush, you choose to accept the risk. f It is often claimed that some Austratian plants and animals have actually adapted to fire, evidence of an extraordinarily long period (millions of years before human arrival) during which fire has been more significant in the Australian environment than it has been on any other continent, but this is probably not strictly true. Many plants have adapted to the environment in 20 ways that also happen to be valuable in times of fire. ( 3 ), animals have adapted to a variety of different habitats, and can therefore survive during different periods of vegetation regrowth after a fire (or after, say, a cyclone, a flood, or just a tree falling in a forest). A tree that has the ability to regenerate from roots or lower trunk when the 25 upper tree dies as a result of being broken off in a storm, or falls over, rotten to the core, will also be able to respond when the upper part is killed by a fire. Seeds adapted to long hot droughts, and requiring a combination of heat and water for germination", will also find a fire, if followed by rain, a good stimulus for growing new plants. There does appear to be evidence that chemicals in 30 smoke can help promote growth in plants, but whether this is a direct 可能性があるかを 何度も が続いているのだ。 森林地帯, ダイビングのときにサメ, そやカンガルーにも負けな の匂いを嗅ぐ。 私は,どのよ 暮らすようなものである。 海 しき主人である」( れば, 火事はオーストラリア >> のヘビを取り除くべきだと 意図的に火を放つべきだ , 1994年のシドニー ている真っ只中 と言った。 入れるこ

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

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

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

この問題を解いていただけませんか?

例を参考に、以下の語を使って1~10のセンテンスを完成させなさい。 cloth needle seams clothes dress pairs shoes pair shirt formal wear machine pants *perfume sweater 例 She needs to wear (formal wear) to the party. 彼女はパーティにフォーマルな服を着る必要があります。 1. I bought a ( 私はブルーのズボンを一本買いました。 ) of blue pants. 2. Lisa is wearing Chanel Number 5( リサはシャネルの5番の香水をつけています。 3. Her sewing ( 彼女のミシンには糸と新しい針が必要です。 4. The boy in the green ( ). ) needs thread and a new ( ( ) is my niece. 緑のシャツの男の子は私の甥で、 赤いドレスの女の子は私の姪です。 5. Her mother mended her ( ) is my nephew, and the girl in the red Ragus ) because they came apart at the ( ). 彼女の母は彼女のズボンを修繕しました。 なぜなら縫い目がほつれたからです。 6. My sister knitted a ( 私の姉はセーターを編んで、 私にくれました。 7. The used ( 箱の中の古着は私のです。 捨てないで。 8. Mary dyed two ( ) of her white jeans pink. マリーは彼女の2本の白いジーパンをピンクに染めました。 9. Her mother bought some ( ) and gave it to me. 私は、その靴屋で革靴を一足買いました。 ) in the box are mine. Don't throw them away. dress. 彼女の母は娘のウエディングドレスを作るために布を買いました。 10. I bought a pair of leather ( ) at the shoe store. ) to make her daughter's wedding

回答募集中 回答数: 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
英語 高校生

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

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

答えを至急おねがいします!

【注意】以下はすべて必答問題である。 問5 3.4.5.6 【必答問題】 ③3 次の A・Bの問いに答えよ。 (配点 13) 次の間1~7の英文の空所に入れるのに最も適当なものを,それぞれ下の1~4のうち A から一つずつ選び、 番号で答えよ。 1 We all are tired of rain! It ( 1 has been raining 3 rained 23 2013 来週 2 "Must I come here again next week?" "No, you ( 1 don't have to 24 ) for three days now. 2 is raining 4 will be raining Kenqu 問4 The number of children reading books ( 1 are decreasing 2 3 is decreasing ). Of course, you can if you want." 2 mustn't 3 shouldn't yern You 3 Jack ( ) on the sofa when I entered the living room. 1 was lain 2 was laying 3 was lied see We think that the narrow road was ( 1 agreeable 2 invisible 4題ともすべて解答 2 down 4 - 10- 200 these days. are fewer is fewer ) for the accident. 3 responsible 3 off 4 6 When the afternoon meeting was finally ( ), Michael hurried to the mall to buy party goods. 1 away won't 4 was lying 問7 I am looking forward ( ) you in San Francisco this summer. 1 2 seeing 3 to see unbelievable 4 over 4 to seeing 次の間1・2の英文が自然な文になるように ( 文を完成せよ。 )内の語(句) を並べかえて 英 早くおきれない 1 I couldn't get up early this morning. I (toto/me/ my mother/drive/ asked) the station. 2 I saw that movie last weekend, but it (as/ was / interesting / not/say/ as people). - 11 -

未解決 回答数: 1