学年

教科

質問の種類

TOEIC・英語 大学生・専門学校生・社会人

わからないので答えを教えてもらいたいです。

英語 Amy: Hey Jake, I was thinking about online shopping this weekend. Do you shop online often? Jake: Yeah, I do it quite a bit. It's so ( house and you can ( ) almost anything online. That's true. I love the convenience, too, especially with a busy schedule. But I've heard there are some downsides to it. What do you think? Well, one obvious downside is not being able to ( ) or try the product before buying. Sometimes, what you see on the website isn't exactly what you get. Amy: Yeah, that's a good point. I've had a couple of instances where the color or size was ) from what I expected. ( Another thing is the shipping time. Even with express shipping, you might have to ( ) a few days for your stuff to arrive. It's not great if you need Amy: Jake: Jake: Amy: Amy: Jake: Jake: Jake: something urgently. True, waiting can be frustrating. But what about the ( that sometimes the prices are higher online. It depends. I've found some great deals online, especially during sales. But you're right; in some cases, the prices can be a bit inflated, and you might end up paying more than if you bought it in-store. Amy: And returns can be a hassle, too. I had to return a shirt once, and the process took forever. It's not as easy as just going to a store and returning it on the spot. Yeah, returns can be a pain. Also, there's the whole security issue. You must be careful about where you're buying from to avoid scams or stealing your ( ). Amy: Oh, definitely. I always make sure the website is secure before entering any payment details. 日本語 L ), you know? No need to leave the On the bright side, online ( ) can be super helpful. I always check them before making a purchase. It gives you an idea of the product's quality and whether it's worth the money. Amy: That's a good point. I do the same. It's like having the opinions of a bunch of friends who've already ( ) the product. Jake: Exactly. So, while there are some drawbacks, I think the ( ) of online shopping, like the convenience and variety, outweigh the ( ) for me. Yeah, I agree. It's all about finding a balance and being cautious about where and what you're buying. )? I've heard

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

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