学年

質問の種類

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

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

一応自分で解いてみたんですけど、④がよくわからなかったので教えて下さい😭😭🙇‍♀️🙏

長文を読む 1. 甲南大学 目標解答時間20分 Is In the 1920s American movies filled the cinema* screens of the world. Most were made in 郊外 Hollywood, a suburb of Los Angeles, in California. Hollywood's big attraction for film-makers was its clean air and sunshine. The movies made there were bright and clear. By the 1920s it had become the film-making capital of the world. HOT ning sibisbaste Maomhsnob vildung, Hollywood movies were made by large companies called studios. The men who ran these boowellpH ei obam eşivom NSROMA FOR STOWW studios were businessmen and their main aim was to make as much money as possible. They eslognA zo.llo eduduz si mixt boot semool 69 adı ni come do enim mobbe i soon found that one way to do this was to (1) standardize* their films. When audiences had 185s d is si BAT-silyte sii seino blowodi 16 lasins anim-mlit od zew boow lig shown that they liked a certain kind of film, the studios made many more of exactly the same kind. Solit tiedi svibnsbasız(1) 21 aninsom ni 122colo da bistars were Another sure way for a studio to make money was to (2) turn its actors into "stars." stil vlieb wone-thr 291700 Tosun sis 29 il ngibus ob es esiyor to bridomy, M vonom to jol som si zivom SAM actors who were so popular that people went in crowds* to see any film they appeared in, no matter bisbristes amosad redivom sole MD A famous star could make any movie a sure success. So the studios how good or bad it was. 21612 00 210106 21 went to great lengths* to make their actors into stars. (S) 01 ob 20ibure du bib jew They encouraged fan magazines. They ob 9 16 2016 2 e sivom vas sisMS 2012 196snt bas esnissgsm nisl noqqu set up special publicity departments* to get stories about their actors into the newspapers. The movies of the 1920s were silent. They bisbasse mod, om to spoke through expressions and movements, not in f H THE LOYAT 1500 words, and so their language was international. All over the world, from Berlin to Tokyo, from night of the week to see the ople lined up every London to Buenos Aires, tens of millions of people lined √ SU OJANE JA AJANSAZETHO A USA (X TO favorite Hollywood stars and, without realizing it, to be Americanized. AANSE AJR

解決済み 回答数: 1
地理 中学生

中2 地理 (5) Aから順に答え ア ウ エ イ オ カ でした。 覚えたいのでそれぞれの特徴を教えて頂きたいです。

(2) 1980 ア 鉄鋼 (3) 日本企業が安価な労働力を求めて海外進出した国や地域を、次から2つ選びなさい。 イ 中国 東南アジア エ 北アメリカ ( (4) 地図中のA~Fの工業地帯・地域名をそれぞれ答えなさい。 A【 C[ 〕 D〔 E〔 ) FJR) 思⑤ 地図中のA~Fの工業地帯・地域の種類別工業生産額割合 を表したものを、右のグラフ中のア〜カからそれぞれ選びな さい。 [] B[] C[] A [ D[ ]E[] F( ) 摩擦の原因となった工業製品を、 次から1つ選びなさい。〔 〕 エ精密機械 イ 船舶 ウ自動車 ア ヨーロッパ B[録 (1本日 ] 業量(式] (6) Xの地域を何というか。 (1 (7)に立地する工場を次から1つ選びなさい。 〔 ア 自動車工場 イ精密機械工場 ウ 石油化学工場 工印刷工場 〕 ア 9.8兆円 of イ 16.9兆円 ウ 33.1兆円 (8) IC(集積回路) の工場は, 内陸の高速道路沿いや空港のオ 1 近くに多く立地している。 その理由を簡単に答えなさい。 A I 57.8兆円 16.3% 17.80 39.7兆円 KSHOP カ 12.2兆円 20.7 9.4 10.12 21.5 (●は2018年) 46:6 2517 36:9 45.5 69.4 CDE ]金属 機械 1988 化学 (2017年) 〕〔 5.6 16.9 11.0 13.7 500000 39.9 LL 200km -0.5 15.9 12.4 14.1 -0.7 15.1 1.3 17.0 11.0 13.1 -0.8 16.24.7 9.5 -0.5 15.6 -0.2 15.8 9.5 食料品 繊維 その他 (2020年版 「データでみる県勢」より)

解決済み 回答数: 1