学年

質問の種類

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

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

In Yemen〜からの訳でなぜ名詞構文になっているかわからないです。何百年にもわたってと世界で独占的な地位を占めていたという訳のところが理解できないです。 heldにそんな訳あったっけみたいや感じです。、 あと何世紀も後にアメリカ人がこの地名にちなんでチョコレート風味のコ... 続きを読む

Each culture [along the Coffee Road] left its mark (on the drink). (In V O S Yemen, [which held a global monopoly [on coffee] (for hundreds of years)]), 3 語句 は opened と spread を結 from there という副詞のカタマリが入っていま 6 具体例の合図 固有名詞→ 3 Yemeni people traded the beans V S O the roasting [of coffee ] became a custom. C ST (via the Red Sea port of Mocha) [(after which, (centuries later), Americans OSH S → 名詞構文 V' で訳す various S 9 would name their chocolate-flavored coffee)]. (In Turkey), V' O' 固有名詞 → 具体例の合図 [including cinnamon] were added 10 The Tunisians improved the drink (with orange-flower water), and the Moroccans added dried rose blossoms as well as V Smes in inco ja and thoment S FASO spices balsamic spices. quantveel) aning insiday A sdi qu nomy ,' 何 [mg 『コーヒーロード沿いのそれぞれの文化が,この飲み物に影響を残している。7 百年にもわたって、コーヒーにおいて世界で独占的な地位を占めていたイエメン では、コーヒーの焙煎が慣習になった。 イエメンの人々はモカ(何世紀も後に、 hasons アメリカ人がこの地名にちなんでチョコレート風味のコーヒーに名前をつけるこ とになる)の紅海に面した港を経由して豆の取引を行った。 トルコでは、シナ モンなどの様々な香辛料が加えられた。 10 チュニジア人は橙花水を加えてコーヒ 一の風味をよくし, モロッコ人はバルサムの香辛料だけでなく、乾燥させたバラ の花びらを加えた。 Purifioing (Static) 6 Bleave one's mark on ~ ~に強い影響を残す/monopoly 圏独占 / roasting 名 焙煎 / via ~ 圃 〜経由で/Red Sea 紅海 / port ③ 港 / name A after B B にちなんでAに名前をつける / including [前 ~を含めて,~などの/

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

この文の第二段落の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
英語 高校生

青線部分(5と7)を日本語に訳したりする時、文の形が同じなので訳し方が分からないです。分かりやすく見分けのつく方法を教えてください! (語彙力なくてすいません、、、)

A〈助動詞+have+過去分詞>: 過去についての推量(ldfiguo \ bluore) uoy STEP 2 wort 2016 MODI Vow 2mm no 10000:50 F067 1. He must have had a good rest. 7 M 1. shomid (5 2. Imay [might] have left the key at home.hted bed\Iw) 3. She can't [couldn't] have made such a mistake.nanto bluo「〜したはずがない」 4. The accident could have been much worse. 4. 注意 F068 mguo SH kurollok of) Toned bed 「~したに違いない」 TO 「~したかもしれない」 5. He should [ought to] have arrived home by now. (U7) bipone )した可能性がある」 o follow Boy 8. We needn't have hurried. You derd 7. I should [ought to] have taken his advice. 「~したはずだ」 この意味での肯定文は could のみで, can は使えない。 疑問文は, 「〜したということがあるだろ うか」という意味で, can も could も使える。 Can Can [Could] my sister have done it? なお,〈couldn't have + 過去分詞 + 比較級〉 では 「この上なく~だった」 を意味する。 Insblest Woni STEP 2 B 〈助動詞+have+過去分詞>: 過去の行為についての非難・ 後悔 It will n 6. He could have received treatment. 「~できたのに(しなかった)」 I do my hod vor 「~すべきだったのに(しなかった)」 「~する必要はなかったのに(した)」 quibliud eidT ONL

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

‼️‼️至急お願いします‼️‼️ 分詞の文法が分かりません> <‪💧‬解答だけでもお願いしたいです🙇‍♀️🙏

7 分詞 1 空所に入る最も適当な語句を答えなさい。 166 167 There is a weekly brass band concert, ( weather is permitting 3 weather permitting 1) left my umbrella in the train, I got wet in the rain. 2 To be 3 To have Being 168 Bill was the only person ( 169( 170 What happened to Taro? He seems to ( 1 shock 2 shocked 171 They were ( amaze ) in the car accident. being injured 2 injuresmorl bo injured 79170 254 injuring foodse 100) in plain English, the book is suitable for beginners. Writing 2 Written 3 Having written 172 All things ( 175 ( 3 considering having considered 173 I've got a surprise. Keep your eyes ( 1 close 2 closing to close 174 Mary's parents seemed ( ) at the singer's fantastic voice. 2 amazedynille amazing of ), everybody can say this result is correct. 2 to consider relief Tre and wo? relieved 178 There is nothing ( embarrassment 2 weather will be permitting 4d weather permits Jnslia boniemen 4 176 He was lost in thought with his 1 close 2 closed KISV 150) by something. 3 be shocking eyes ( 4 Having ) his mistake, John decided to apologize to his parents. Had realized 2 Realized 3 Has been realizing li jarli ne ). 3 closing considered onod \ gniwonal (東京造形大) 4 To write t 4 4 be shocked (京都産業大) 静岡県立短大) matomy(東北工業大) 4mamazement (札幌大) ) to hear that her plane was on time. ( 聖マリアンナ医科大) to relieve 3 relieving Monty ) until I tell you to open them. ( 桜花学園大 ) close to have clo closed 3 4 od of brusque invasiq 280dy to IA to close (金蘭短大) 177 Do know that woman over there, the one (de ) in the white blouse? you mimidi won of w rol hatnicareant 27 11 1 to dress dressing 3 dressed 4 dresses ( 桜花学園大 ) (南山大) 4 Realizing ( 桜美林大) 南山大) ) about asking for help when you are in trouble. (関西学院大) embarrassing 3 embarrassed 4 embarrass 21 7 一分詞 分 詞

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

英語の時制の問題なのですが、全体的に答えがわかりません。考え方でもいいので教えていただけませんか?

1. I think something wrong (happen) [4語] 「何か良くないことが起こるだろうと見 2. He (live) in Tokyo. 3. We (fly) to Vancouver on our school trip next summer. [₂] 4. It (rain ) in Osaka tomorrow. [2語] 「明日、大阪は雨です」 5. I'll call you as soon as I (arrive) at Kyoto station. 6. He (leave ) Japan next week. [進行形を使って] 7. I (read) around midnight last night. 8. I (be) a university student. 9. She (not know ) my e-mail address. 10. Please call me later. We (have) lunch. 11. Water (boil) at 100°C at sea level. 12. World War II (break) out in 1939. 13. He (teach) Japanese in this school ten years ago. 14. (I see) Ted tonight. [進行形を使って ] 15. (Ivisit) my uncle in Canada this summer. 4語 「叔父さんを訪ねる予定 (計画済み) 16. Ken (go) to school at eight. 17. The phone rang while I (cook). 18. The sun (rise) in the east. 19. Please wait here until dinner (be) ready. 20. My father (work) for a trading company. 21. Haste (make) waste. 「急がば回れ」 22. What (you do ) tonight? [5] 「今夜は何をする予定ですか?」 23. I must finish my homework before my mother (come ) home. 24. I (see) you next week. [2] 「来週君と会うよ」 25. My grandfather (be) seventy next year. 26. (I meet) Jim this evening. [*] 27. He usually (walk) slowly, but he (walk) very fast now. 28. Practice (make) perfect. (習うより慣れろ ) 29. We (fly) over Osaka around ten tonight. 10時ごろ大阪の上空を飛んでいるでし 30. If 「明日、雪がたくさん降るようなら、 電車には乗らない (take a train) 」

回答募集中 回答数: 0