Grade

Subject

Type of questions

IT Undergraduate

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プログラムの中で明示的にフ ァイルに出力することもできるので すがここでは安直な方法を取ります

Waiting Answers: 1
TOEIC・English Undergraduate

自分の回答と照らし合わせて確認したいので、答えがなにになるかどなたか教えてください。 解説もあると助かります。

5 A Matter of Taste Reading Passage 042 At the age of just 22, Jamie Oliver became well known across the UK as "The Naked Chef." He called himself this not because he cooked wearing no clothes, but because he wanted to simplify food preparation so that everybody could follow his recipes. He wanted to "strip down" the idea of cooking. Since then he has had numerous TV shows, published 50 many books, and has become a household name in the UK. Today, one of the activities Jamie Oliver is best known for is his great effort to improve the school dinners that children eat every day. One day, he visited the kitchen of a typical London secondary school, and he was shocked to see how much processed junk food the kids were given to eat each day. Fat and sugar levels were extremely high, and nutritional values very 10 low. The "turkey twizzler" became the symbol of these unhealthy meals: processed meat containing 21.2% fat and only 34% actual turkey. Oliver ran the school kitchen for one year and tried to show that it was possible to serve healthy meals on a limited budget—and that kids actually enjoyed eating them. His mission was to radically change the eating habits of children in that school, and across the country. 150 200 15 20 25 CULTIES 250 His project (the "Feed Me Better" campaign) has had some influence on school dinners in the UK. After watching the documentary Jamie's School Dinners, 271,677 people signed a petition calling for healthier school meals. This led the Prime Minister to agree to spend 280 million pounds (about 37 billion yen) on school dinners, to ban some junk food from school menus, and to create a School Food Trust to provide support and advice for people preparing school meals. Research, by the way, shows that children who stop eating sugary, fatty food and instead eat Oliver's school dinners are better behaved in class, and they get higher test 300 scores, too. 350 Of course, the project has had some problems. At first, many students (and even parents) resisted the removal of the junk food they were so used to. In one famous instance, some parents were passing local takeaway food to their children through the school fence. Also, schools that followed the plan for a while were often found to gradually drift back into bad habits. After all, it is easier and cheaper to just give the kids junk food. However, Oliver's efforts represent a positive start, and with obesity becoming such a huge problem (see Unit 4), 400 it's a very necessary start.

Solved Answers: 1
TOEIC・English Undergraduate

英読解の問題です。 すっかり忘れてしまったため何も分かりません。 3問教えて欲しいです。お願いします><

5. 次のメッセージを読み、 [4×3=12] (1)~(3) A~Dで適切なものに○をつけなさい。 Sarah Rogovin [09:20 A. M.] Good morning. Li Na and Dave. Could you let me know the latest on the Taipei trip? Li Na Tsai [09:25 A. M.] Everything is prepared at this end. I've booked a meeting room for three days, ordered refreshments, and arranged daily taxis to and from your hotel. Sarah Rogovin [09:28 A. M.] Fantastic. Did you remember that three people are vegetarian? Li Na Tsai [09:30 A. M.] Yes, they have separate meals. The price is actually a little lower for them. Dave Kaplan [09:31 A. M. 1 And I just confirmed the new flights for you and Chen Wang. Sarah. You're now flying direct from Singapore to Taipei at 6 P. M. on Sunday. My apologies again for the misunderstanding. Sarah Rogovin [09:34 A. M.] Thanks for sorting that out. Dave. This makes the journey much easier. Could you e-mail the electronic ticket to Chen Wang when you receive it, please? Dave Kaplan [09:35 A. M.] Consider it done. Li Na Tsai [09:37 A. M.] Sarah, I've arranged for a projector, but do you also need a laptop set up in the meeting room? Also, the staff there will give you an access code for the room; you may need to ask for it. a Wi-Fi signal Sarah Rogovin [09:40 A. M.] As you said previously that there's throughout the hotel you've booked, I'll use my own. Thanks again for your hard work, both of you. (1) Why does Ms. Rogovin ask about food? (A) She wants to eat in a separate room. (B) Her colleague forgot to order meals last time. (C) Some attendees don't eat meat. (D) She thinks the meals are too (2) What is suggested about the flights? (A) They are booked for Sunday morning. (B) The original booking was incorrect. (C) A discount was offered on the price. (D)) There will be a short stop on the route. (3) At 9:35 A. M.. what does Mr. Kaplan mean when he writes, "Consider it done" ? (A) He will forward a document. (B) He will call Mr. Wang. (C) He will reserve two seats. (D) He will order a taxi.

Waiting for Answers Answers: 0
TOEIC・English Undergraduate

すみません、長文の穴埋めがわからないのでどなたか教えてくれる方がいましたら心強いです! (1)と(2)がわかりません。

Dear Patron, Thank you for your contribution to the Sunset Maritime Museum. Our efforts to pass on our rich seacoast history to the next generation have been a phenomenal success. We were able to raise more than $60,000 this past year. There are many projects in progress and more planned for the following year. several retired sea captains have been volunteering their time for live 2. storytelling sessions, which have been getting young people interested in boating and fishing. Consequently, we hope to exceed the amount of donations this coming year. An anonymous donor has contributed $20,000 to get the ball --3--.We are delighted about this, as we anticipate remodeling costs of $100,000. We understand that everyone's resources are limited, --a- we ask that you help us spread the word by forwarding this to your family, friends and associates. The Sunset Maritime Museum is a worthy cause. Since the museum reopened, the number of people staying and working in this town after high school, as well as those attending college and coming back here to work in family businesses has increased almost 10%. Help save our local heritage. Your help willbe appreciated for generations to come. SVBd (8) 1. (A) Actually, there were at least a dozen new projects involving seabirds. (B) On the other hand, we didn't finish the report to our shareholders in time. (C) Otherwise, there was no information about the matter that could be shared. 0ubeem.ol opiod (D) Nonetheless, we project we will need further funding to meet operating Costs. 46 00 2. (A) For example, (B) However, (C) Notwithstanding, (D) On the other hand, 3emit ynsm visil of beleva) evsdinrelbbne eus eit GAe 1w () の O0

Waiting Answers: 1
TOEIC・English Undergraduate

ミドリの蛍光ペンで引いている部分がなぜそうなるのか分からないので教えてほしいです💦

) without an overcoat. (帝塚山学院大) It is warm here in winter. I can ( 0 do 2 hold ③ keep ④ bear し (3) 幸福は財産の多さにはない。(高知大) Happiness does not consist ( 2 at 3 of ④ in ) how many possessions you own. 0 on (3) 4 ) for this error. (中央大) (4) It's very hard to ( 0 make ② look ③ acount ④ take デ大) (4)と3 (5) That coat doesn't ( O go with )your shoes. (南山大) 3 suit for 4 fit at 2 match to 2 (6) The car crash ( 0 carried )in the death of three people. (南山大) caused 3 resulted ④ eliminated (6)_3 (7) Although he was drunk, he insisted ( 2 in ③ to ④ for ) driving. (北海道工業大) 0 on (7) 1 (8) 彼女の推測は正しいことがわかった。(専修大) Her guess turned ( 0 off 2 out ③ at ④ in ) to be right. 2 (路面が)凍結していたために多くの事故が起こった。 (専修大) Many accidents resulted ( 0 in 2 on ) the icy conditions. 3 for の from 1(10) The total fee for the summer course ( many classes you take. (中央大) O leans on ② depends on ③ counts on ④ relies on (10) (11)I certainly agree ( )you on this point. (駒淫大) ① with ② at ③ in ④ for ートフォン 、( を手に入れた。 (12)「すみません, このジャケットが気に入りました。 試着してもいいですか」 「もちろんです」 2 (愛知学院大) )?""Sure." “Excuse me, I like this jacket. May I try it ( 0 on 2 for ③ off ④ in (12) (13) そのスキャンダルの結果, 2人の大臣が辞任した。(中央大) The scandal ( O brought 2 led ③ took ④ made ) to the resignation of two ministers. (13) 2(14)1 ran ( ) one of my old friends on my way back home. (摂南大) 0 through ② out ③ away ④ into (14) _7 4

Waiting for Answers Answers: 0