学年

教科

質問の種類

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

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 内径aの円筒面の一部が図1のようにA点において水平面に滑らかに接している。 水平面上にばね(ば ね係数k: 質量は無視できる)を設置し、 ばねを α/2だけ締めて静かに離すことで質量mの小球Pを円筒 面に向けて発射する。 重力加速度をg とし、また水平面、 円筒内面はともになめらかであるとする。必要 な物理量は定義した上で用いること。 なお、 各設問に対する解答は解答用紙の所定の欄に導出過程ととも に記入すること。 (1) 小球Pはばねが自然長になった時点でばねから離れた。その理由を運動方程式を用いて説明しなさい。 (2) 小球 P は円筒面内に入り、円筒内面に沿ってB点まで達した。 このときの小球P の速度を求めなさ い。 (3) 円筒面内における小球Pの運動方程式を求めなさい。 (4) 小球Pが(2)に引き続き円筒内面に沿って運動し点Cを越えるために、 ばね係数kが満たすべき条件を (不等式で)求めなさい。 (5) 小球Pは点Dにおいて円筒内面から離れた。 このときのばね定数kを求めなさい。 (6) (5)において、 小球P のその後の運動について式を用いながら説明しなさい。 (7) (6)において、 小球Pが達する最高点のy座標を求めなさい。 (8) AD 間における小球P の加速度の大きさを0の関数として示しなさい。 k P műm Mo m VA A -120° D B C x

回答募集中 回答数: 0
物理 大学生・専門学校生・社会人

この問題分かる方いますか?

力学演習 A 課題 (2) mgsinoza *5. 図のように, 角度0の斜面に平行にフックの法則にしたがうバネが設置され、 先端には質量mの物体が取り付けられて いる。 バネは自然長からの伸びまたは縮みに比例した復元力=kを物体に及ぼす。 ここでkはパネ定数と呼ばれる 正の定数である (k = mu² として, kの代わりにωを使って答えても構いません)。 斜面は滑らかであり、摩擦力は無視 できるとする。この問題では、図のように斜面に沿って軸を取り、斜面を登る向きを正とする。 また, 斜面に垂直に 軸を取る。 物体の大きさは無視できるとし、バネの自然長での物体の位置を原点とする。 物体は最初, バネの長さが自然 長になるように支えられ, 原点に静止している。 0 Ex Hawa 14 I 学籍番号 (b) 物体の位置のæ成分をx(t) とし、時間tの関数で表せ。 (d) 物体が行う単振動の周期を求めよ。 (a) 時間 t = 0 で物体からそっと手を離したところ, 物体は斜面を滑り落ち、その後は単振動を行った。 単振動の中心の 位置の成分を求めよ。 伝方程式より、 mx = kx-mgsin = klx-ngsing (c) 物体の運動する速さが最大となる位置の成分とその速さを求めよ。 氏名 ※単振動の中心の位置をX。 とすると、 タ) 分からなかったことや間違えたことは何か? また、説明してほしいことあれば、書きなさい。 to mgsino 2

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

これの和訳して貰えませんか?

5 Reading Passage 10 15 20 Yuna Kim is one of the world's best figure skaters. At the 2010 Winter Olympics in Vancouver, she set three world records. In fact, one of those world records broke a record she set in 2009. program and a At the Olympics, both male and female skaters perform a short seven program. In the short program, skaters have less than three minutes to perform required jumps, spins, or other moves. While doing these seven things, the skaters also have to show judges how well they can put these elements together into a kind of dance performance on the ice. The long program is similar to the short program except that skaters perform for a longer time and have more required moves. long Before the 2010 Winter Olympics began, many people thought Yuna Kim was likely to win a gold medal. Certainly, there were other women skaters who had the skill to win gold at the Olympics. However, Ms. Kim had an advantage. She had already set a number of world records. In 2007, she set the record for the highest score in a short program with 71.95 points in Japan. The same year she also set the world record for the highest score in a long program with 133.7 points in Russia. Then, in 2009 she beat her own record in the short program by scoring 76.12 in the United States. At that competition, she also became the first woman to score over 200 points with her short and long programs - her combined score was 207.71. The next year at the Winter Olympics in Vancouver, she broke her records again. In the short program, Ms. Kim scored 78.5, a new world record. In the long program, she scored 150.06, another world record. This gave her a combined total of 228.56 points, a third world record! Needless to say, her score was enough to win gold.

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

8番ですが、本文の内容に合っているか合っていないか、どちらにもとれそうで迷っています。 教えていただきたいです。

20 D 007 feel guilty about eating so much. People tease me for being fat and I pretend it Hello Sarah) I've put on a lot of weight recently. I make myself sick when I doesn't bother me, but I cry myself to sleep. My family says nasty things about my size, too. Please help me lose weight. 5 15歳の女の子の悩みの相 Barbara, 15 Sarah says: Hello, Barbara. Please try to stop making yourself sick. Beauty comes from within and in all shapes and sizes. The main thing is to be healthy. This can be done through your diet and by exercising. (It's unkind of your family to tease but pl" t ↳ To Tease 10 maybe they don't know that it upsets you So tell them how you feel. Ask your mom to help you follow a healthy, low-fat diet. Cut back on potato chips, cakes and sweets. Why not take up swimming or jogging? By eating healthily and exercising, your body will naturally reach a healthy weight. Don't skip meals, go on a crash diet, or make yourself sick. You may damage your body 15 if it doesn't receive the right nutrients. If you can't talk to your mom, your doctor will help. If you are unable to stop making yourself sick, call the Eating Disorder Association Helpline. Eating Disorder Association Helpline 01603765 050 Monday-Friday, between 4 p.m. and 6 p.m. Email: eda@netcom.co.uk

回答募集中 回答数: 0