Grade

Type of questions

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

Unresolved Answers: 1
English Senior High

ビジョンクエスト ace lesson3のprick reviewです 右側のクイズの答えを教えて頂きたいです

to me the reason why you 明してください。) I can write a letter to my host family. に,( )内の語句を並べか 直接会って話をする必要がある. to / to / need/you) face 1 ると、 私は楽しかった子どもの of / happy / me / childhoc ☆はすぐに出発しなければな d/him/to/ convinced / 徒たちに優れた教育を提供 (with / its / education/ 行動は彼らに多大な迷惑を behavior (of / them / a うに, 下線部に適切な語 do in to ent てくれますか。 E 300 招いてくれてありがとう。 43 (0) 紙をようやく書き終えた。 生に,昼食時に何があっ 英語に直しなさい。 バスで学校に通っている いているのは誰なのだ? ピアノの練習をしている。 に良くなると私は信じ さばき方を教えてくれた Jeg 03 11 夏休みのホームステイタ Is. Thompson 宛に, t please me, so I create しくなかった。 だから私 explain は「~を説明する」という意味の 他動詞で説明する事柄が目的語にくる。 説明する相手 (「~に」) を表す場合は前置詞 to が必要。 Vision Quest ⅡI Ace WORKBOOK 10 Lesson 4 Quick Review 動詞を決める ASVO My father takes the first train every morning. 父は毎朝、 始発電車に乗っている。 I need to pack my suitcase by tomorrow morning. 私は明日の朝までにスーツケースに荷物を詰めなければならない。 I can't believe that I've passed the audition for the leading part. 私がオーディションで主役に合格したなんて信じられない。 □ 1. 私の祖母は新しいドレスを作る予定だ。 My grandmother is going to □ 2. あなたにまた会いたい。 I you again. □ 3. ハイキングに行ったことを覚えていますか。 Do you □ 4. 彼が引っ越したとは知りませんでした。 I he had moved. □ 5. いつそのTシャツを買ったのか思い出せない。 I I bought the T-shirt. never going hiking? B SVOO Meg showed me her family album at her house. メグは家で家族のアルバムを私に見せてくれた。 Can you [] 7. 父は私にもっと野菜を食べるように言った。 My father □ 8. 彼女がどこの出身か尋ねてみよう。 Let's Quiz 「買う予定だ」 に。 dress. Quiz 「お会いする必要があります」 に。 I convinced my parents that I needed a new computer. 私は両親に新しいコンピューターが必要だということを納得させた。 This book teaches us what love is. この本は愛とは何かを私たちに教えてくれる。 □ 6. 君のノートをしばらく貸してくれない? for a moment? she's from. Expressions+Check! □ 9. この歌を聴くと、 私は夏祭りを思い出す。 This song □ 10. 生態系は私たちに空気, 水, 食料を提供している。 Ecosystems us □ 11.ATMでお金を引き出す方法をあなたに説明します。 Let me Quiz 「忘れましたか」 に。 bid Quiz 「信じられませんでした」 に。 Quiz 「いつ買ったのだろう」 に。 Quiz 「助言した」 に。 I should eat more vegetables. 教科書 pp.18~19 Quiz 「見せてくれますか」 に。 Quiz 「いつ日本に来たのか」 に。 Quiz 「子ども時代を」 に。 the summer festival. Quiz 「多くの資源を」に。 air, water and food. Quiz 「教えます」 に。 you how to get money from an ATM. D/when will 2 My father 3 Themuseum FI will sho Pleas eall m 5 He ner. 72 my fathe. 3 The musio 5please c sson3 Qui grew grew sold sells 3 arrived Fresembl. enter 6a appeare 7 looking

Unresolved Answers: 0
English Senior High

3枚目の問いの答えを教えてください。 よろしくお願い致します。

Radio Host: durlar aind Roger Ali: Radio Host: Roger Ali: Radio Host: Roger Ali: Radio Host: Roger Ali: Roger Ali: Radio Host: Roger Ali: Radio Host: Welcome back. As I mentioned before the break, Roger Ali is with us today to talk about artificial intelligence. Thank you for being here, Dr. Ali. Thank you for having me. I'll be honest with you. When I hear the words "artificial intelligence," the first thing I think of is the character HAL from the movie 2001: A Space Odyssey. ch tud goons bad Radio Host:ome In other words, the search engine draws conclusions about what we're looking for on the Internet. Roger Ali: Sure. Many people remember HAL. In the movie, he's the computer that controls the systems of a spacecraft. He also speaks with the people on the spacecraft. And he's not very happy when the people decide to turn off the computer. In the movie, HAL becomes very dangerous. That's right, but fortunately, artificial intelligence in the real world isn't like HAL. Well, that's good! Can you tell us what is happening in the field of AI? Many interesting things. For example, when we search for something on the Internet, the search results that we see are chosen carefully. The search engine has learned which websites are the most popular, the most reliable, and so on. This prevents us from seeing a lot of websites we're not really interested in. Tosa Right, so it only shows us the information it thinks we want to see, which includes go advertisements as well. We usually see only ads for products that the computer thinks we might want to buy. You said, "It thinks," but is the search engine really thinking? IST That depends on your definition of thinking. The search engine is capable of learning machine learning-and it does have knowledge. Knowledge about the Internet. Are learning and knowledge part of your definition of thinking? They're part of it, but human beings are capable of so much more. We have our senses hearing, smell, sight, touch, taste-and our emotions. We notice a lot about the world, and we use our judgment to make decisions. That's true, and most computer scientists know that we can't replace human beings with computers. We don't intend to make robots for every kind of job, either. That's just not practical.

Waiting for Answers Answers: 0