学年

質問の種類

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

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

大門5合ってますか? 間違ってたら教えてください お願いします

g Point The Bitter Truth about Chocolate ートの原料 > (t) 60,000 50,000 〒144,529 0,000 0,000.... 000 000 0 Chocolate is made from cacao beans. They are mostly grown in West African countries such as Ghana and Côte d'Ivoire. About 3,200,000 tons of cacao beans are grown there every year. Japan imports about 40,000 tons of cacao beans annually on average, and more than 70 percent are from Ghana. Many people enjoy the sweet taste of chocolate, but have you ever thought about where chocolate comes from? 52,169 51,059 3 2010 2011 2012 www 40,976 ***** 31,759 How 2013 2014 (年) ・・・その他 ・・・ カメルーン ・・・コートジボワール ・・・ベネズエラ I... エクアドル …ガーナ Côte d'Ivoire Ghana 出典: CCAJ 統計 「日本の主 要カカオ豆国別輸入量推移」 e cacao beans mostly grown in Asian countries? many tons of cacao beans does Japan import annually on average? Reading Point In West Africa, cacao farmers are very poor because their cacao beans are sold at low prices. Therefore, many parents cannot send their children to school. Also, they often make their children work on cacao farms to help them. T ? Questions price pra According to UNICEF, the number of such children is about 50,000. Moreover, the children working on the farms do heavy physical labor. For example, they carry twenty-kilogram baskets full of cacao beans on their heads all day long. 1 Why are the cacao farmers in West Africa ve 2 Do the children working on cacao farms do

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

大門2合ってるか確認して欲しいです。 お願いします。

The Bitter Truth about Chocolate ng Point トの原料 (t) 60,000 50,000 0,000 0,000 000 Chocolate is made from cacao beans. They are mostly grown in West African countries such as Ghana and Côte d'Ivoire. About 3,200,000 tons of cacao beans are grown there every year. Japan imports about 40,000 tons of cacao beans annually on average, and more than 70 percent are from Ghana. 000 0 Many people enjoy the sweet taste of chocolate, but have you ever thought about where chocolate comes from? 44,529 52,169 51,059 2010 2011 2012 40,976 31,759 013 2014 (年) ・・・その他 ・・・ カメルーン ・・・コートジボワール ・・・・ベネズエラ ・・・ エクアドル ・ガーナ Côte d'Ivoire Ghana 出典: CCAJ 統計 「日本の主 要カカオ豆国別輸入量推移」 e cacao beans mostly grown in Asian countries? many tons of cacao beans does Japan import annually on average? In West Africa, cacao farmers are very poor because their cacao beans are sold at low prices. Therefore, many parents cannot send their children to school. Also, they often make their children work T on cacao farms to help them. price (pra According to UNICEF, the number of such children is about 50,000. Moreover, the children working on the farms do heavy physical labor. For example, they carry twenty-kilogram baskets full of cacao beans on their heads all day long. Questions 1 Why are the cacao farmers in West Africa ve Do the children working on cacao farms do

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

ビジョンクエスト 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

未解決 回答数: 0