学年

質問の種類

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

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

この誤り箇所指摘の問題が分からないのでよろしくお願いします。

【4】 次の1~10について, 誤った英語表現を含んだ部分がある場合には(a)~(d)から誤り を一つ選び,誤りがない場合には (e) を選んでマーク解答用紙にマークせよ。 1. In (a) classical Islamic history there could be no clash between since the caliph, the titular head of the Islamic state and community, (b) combined in pope and emperor, himself both (c) political or religious-though (a) not spiritual-authority. NO ERROR 2. The years (a) immediately following the end of the Cold War offered (ú) a tantalizing glimpse of a new kind of international order, with nation-states growing together or disappearing, ideological conflicts (c) melting away, cultures intermingling, and free commerce and communications (a) increasing. NO ERROR 3. Despite the growth of the economy, or perhaps (a) in part because of it, and because, as well, (b) the vast rural exodus owing to both (c) population growth and increasing agricultural productivity, workers (a) crowded into urban slums. NO ERR 4. Malthus, Ricardo, Marx, and (a) many others had been talking about inequalities for decades without citing any sources (b) whatsoever or any methods for (c) comparison NO ERROR one era with (a) another. 5. The religious differences between Europe and the United States are (a) typically described in terms of (b) beliefs and practices: Europeans are (c) far less likely than Americans (a) join and attend houses of worship or to believe in heaven and hell. NO ERROR

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

この誤り箇所指摘の問題が分からないのでよろしくお願いします。

【4】 次の1~10について, 誤った英語表現を含んだ部分がある場合には(a)~(d)から誤り を一つ選び,誤りがない場合には (e) を選んでマーク解答用紙にマークせよ。 1. In (a) classical Islamic history there could be no clash between since the caliph, the titular head of the Islamic state and community, (b) combined in pope and emperor, himself both (c) political or religious-though (a) not spiritual-authority. NO ERROR 2. The years (a) immediately following the end of the Cold War offered (ú) a tantalizing glimpse of a new kind of international order, with nation-states growing together or disappearing, ideological conflicts (c) melting away, cultures intermingling, and free commerce and communications (a) increasing. NO ERROR 3. Despite the growth of the economy, or perhaps (a) in part because of it, and because, as well, (b) the vast rural exodus owing to both (c) population growth and increasing agricultural productivity, workers (a) crowded into urban slums. NO ERR 4. Malthus, Ricardo, Marx, and (a) many others had been talking about inequalities for decades without citing any sources (b) whatsoever or any methods for (c) comparison NO ERROR one era with (a) another. 5. The religious differences between Europe and the United States are (a) typically described in terms of (b) beliefs and practices: Europeans are (c) far less likely than Americans (a) join and attend houses of worship or to believe in heaven and hell. NO ERROR

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

1️⃣3 2️⃣2 3️⃣2.4 を教えてください。 あと解いた問題が合ってるか見てください。 答えがついてないので協力よろしくお願いします。

ー くれてありがとう。) Practice 1 日本語に合うように,( 1. 嘘をつくということはほかの人の信頼を失うということだ。 ( is / to / a lie / to / tell / lose) the trust of others. 内の語句を並べかえて英文を完成させなさい。 2. イタリア人がスペイン語を理解することはそれほど難しくない。 fam- (Italians / so difficult / to / for / is / not/it) understand Spanish. 3. 彼が金メダルを取るのは確実です。 ( it / that / will win / certain / he / is ) the gol す。 このような形容詞には,ほかに careless (不注意な), clever (賢明な ) stupid(愚かな ) などがある。 2 日本語に合うように,( 1. 本を読むことであなたはより賢くなる。 ) ( ) ( 4. 今日は雨になると新聞では報じている。 Suoda The paper (it's/that / to / says/ going/rain) today. the gold medal. ebrow (D 3. 人が何と言うかは問題ではない。 ) ( ) ( に適切な語を入れなさい。 bled tneve artt intert S ) you smarter. 2. ドアに鍵をかけないままにしておくなんて, あなたは不注意だった。 ) ( It was careless ( unlocked. sono veWalliM orts 220tos team avevol ov 2. 何で彼女はそんなに怒ったのだろう。 ) ( 3 日本語に合うように, 下線部に適切な語句を補いなさい。 1. 机の上の辞書は私のものです。 3. 私がその本を読み終えるのに3日間かかった。 is mine. *B SCOR her so angry? 4. ささいなミスによって重大な問題が引き起こされることがある。 A minor error can erit nislaxa ) leave the door ) people say. to finish reading the book. 主語を決める Part1 Lesson | 11

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

英文がわからないです心の優しい方、英文の解き方を教えて欲しいです🙇‍♀️

35 15 20 signatures in business. However, no one used fingerprints in crime work until the late In ancient times, people used fingerprints to identify people. They also used them as 1880s. Three men, working in three different areas of the world, made this possible. (1) The first man who collected a large number of fingerprints was William Herschel. He worked for the British government in India. He took fingerprints when people (7) official papers. For many years, he collected the same people's fingerprints several times. He made an important discovery. Fingerprints do not change over time. At about the same time, a Scottish doctor in Japan began to study fingerprints. Henry Faulds was looking at ancient Japanese pottery* one day when he noticed small It occurred to him that the lines were 2,000-year-old fingerprints. Faulds wondered, "Are fingerprints unique to each person?" He began to take fingerprints of all his friends, co-workers, and students at his medical school. Each print was (). He also wondered, "Can you change your fingerprints?” shaved the fingerprints off his fingers with a razor to find out. Would they grow back lines on the pots. (2) He the same? They did. One day, there was a theft in Faulds's medical school. Some alcohol was missing. Faulds found fingerprints on the bottle. He compared the fingerprints to the ones in his records, and he found a match. The thief was one of his medical students. By examining fingerprints, Faulds solved the crime. Both Herschel and Faulds collected fingerprints, but there was a problem. It was very difficult to use their collections to identify a specific fingerprint. Francis Galton in England made it easier. He noticed common patterns in fingerprints. He used these to help classify fingerprints. These features, called "Galton details," made it easier for police to search through fingerprint records. The system is still in use today. When 25 police find a fingerprint, they look at the Galton details. Then they search for other fingerprints with similar features. (4) Like Faulds, Galton believed that each person had a unique fingerprint. According to Galton, the chance of two people with the same fingerprint was 1 in 64 billion. Even the fingerprints of identical twins are ( ). Fingerprints were the perfect tool to 30 identify criminals. For mo than 100 years, no one found two people with the same prints. Then, in 2004, terrorists (I) a crime in Madrid, Spain. Police in Madrid found a fingerprint. They used computers to search databases of fingerprint records all over the world. Three fingerprint experts agreed that a man on the West Coast of the United States was one of the criminals. Police arrested him, but the experts were wrong. The man was innocent. Another man was (). Amazingly, the two men who were 6,000 5 10 136 Lesson 日本大学 470 words 22 (3) 23 024 25 26

回答募集中 回答数: 0