学年

質問の種類

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

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

問3教えてください😭😭😭🙇‍♀️🙇‍♀️

元子 The (1)"rare earth elements are a group of 17 metallic elements that are found in the natural 元子 world. Because these elements are used in all sorts of high-tech devices, they are increasingly 全種類 倍増した in demand. In fact, the use of these metals nearly doubled between the years 2000 and 2010. d Despite the name, the quantity of these elements is not so low. Some recent reports have 主張した claimed that the amount of rare earth elements may be on the same level as that of copper* or Even though the elements exist throughout the world, however, the quantity is not LAUOPUS OS sufficient* for mining* profitably* in each location. Moreover, these elements are usually mixed lead*. with other elements, making it difficult to remove them. This explains why they have been called (8) (A) „‚Â#881‡3 GANEUS $0 01X$&NOS "rare" earth elements. (8) jud (A) Jon Despite an ever-growing demand, few countries are mining for these metals on a large scale. bhup gnis91 sus abnsmab 19 (A) jos ei said ino NO One country, China, now handles more than 90% of all mining for rare earth metals. Other Jadi seu ingim owied 参 in di o ogsmeh, countries have not entered this business in part because of In oro guiauso juodhiw moi because of (2) the environmental problems th ANS) OW IGERS allesimonoss maci pruxs of lola su od son ob enido merla corto prinanvoo can occur. Extracting the metals creates a lot of waste, including radioactive* waste from >tojat DEROXA uranium*, thorium* and other elements located in the mining area. poswad belduob vlison and anomals die ve dost-dgid to edmund oros bas The growing need for rare earth metals may convince some countries to expand their mining. bsol 10 190900 2 von dem som vas a su amals drus ma maldong nista on jonzi blow di metavond zimnelo drusele viirusno leuns afte Running out of rare earth metals is not the concern, however. Rather, the question is whether 2 lo word of mine anomals dre His ch 21810 i asıl yainuas vino odo at smidƆ> vob dost-deid ni bozu.ad no vod! they can be obtained without too high of an economic or environmental cost. ololo alam russ

解決済み 回答数: 1