学年

質問の種類

情報:IT 高校生

どうすればいいですか? 少ししか理解しておらず応用が出来ません。 お助け下さい 言語はPythonです。

よって、最終的に returnccの値を user_pow(x,y) に返し、 それがz に代入される。 の値が代入される。 最後に は2.0を5回かけた、2.0*2.0*2.0*2.0*2.0 問題.2 List.4 は、 y が自然数のときだけ、 べき乗が計算できるプログラムである。 これを、yが整 数(負の数も扱えるよう) のときにも計算できるよう変更してみること。 ファイル名は no3-a2.py とすること。 ヒント: def user_pow(a, b) のおいて b が0以上とそれ以外 (負の場合) のときで場合分けを すること。 b0以上であれば、 List.4 の user_pow(a, b) の通りでよく、 それ以外のとき は、 bが負の整数になるので例えばa=3、b=-2 と与えられたとき、 (1/3)*(1/3) と の逆数を、 -b 回かけるようにすること。 2. ファイルの入出力 コンピュータでは、 データのまとまりをファイルという単位で管理するが、 ファイルを管理 するための仕組みのことをファイルシステムと呼ぶ。 このファイルシステムにおいて、 ファイ ルを整理するための入れ物に相当するのがディレクトリである。 OS によってはフォルダとも 呼ばれる。 ファイルシステムは階層構造をしており、 ファイルは、どこかのディレクトリに属 し、 ディレクトリは、ルートディレクトリ以外は親ディレクトリを持つ。 2-1. ファイルやディレクトリの操作 YOURS 前の変 属性の変更な

回答募集中 回答数: 0
英語 高校生

問題を解いたのですが答えがないので分かりません😭 教えてください!至急です!

Grammar 分詞② (分詞構文) ●分詞構文とは: 主節に説明を加えるための「分詞で始まるまとまり」のこと。 分詞構文の表す意味: 「付帯状況」「原因・理由」「時」 などを表す。 ※接続詞等がなく見た目で判断できないので, 意味は文脈から判断する。 ■分詞構文の位置:主節の前や後ろだけでなく,文中に挿入されることもある。 de quibhdh Target 1 The train started from Chiba, arriving at Tokyo Station at ten. (その電車は千葉駅を出発して, 10時に東京駅に着く) Target [2 Entering the room, the girl smiled at me gently. 部屋に入ると, その女の子は私に向かって優しくほほえんだ ) 1 分詞構文を用いて書きかえた文を完成させなさい。 (1) When I talk to a stranger, I always feel very nervous. I talk to a stranger (2) My sister came home late, and went to bed soon. →My sister came home late, went to bed soon (3) Because I had a cold, I didn't go shopping with her. I had a cold (4) If you turn right at the next corner, you'll find the bookstore. You turn right 2 次の英文の日本語訳を完成させなさい。 (1) A foreigner came up to me, speaking to me. 外国人が私に近づいてきて、(話している , I always feel very nervous. (2) Living near the station, we don't need a car. 駅の近に住んでいるので (3) The dog, seeing him, began to bark. その犬は,( 彼を見て ( 4点×4=16点) Writin (1) は Target 1 を I didn't go shopping with her. the next corher, you'll find the bookstore. (4) Mary was doing her homework, listening to music. メアリーは(音楽を聴く (1) アヤ (Aya (分詞構文 Aya (2) 自分の音 whe ( 4点×4=16点) )。 Vo ( )に (1) The ① be ), 私たちは車は必要ない。 (2)( 1 A 吠え出した。 (3) Fi 1 宿題をしていた。 (4) T (1 (5)

回答募集中 回答数: 0
英語 中学生

問5でthe peopleではだめなんでしょうか? peopleだけの方がいいのですか?

3 (Yuna) さんとレストランでメニュー (Menu) を見ながら話しています。 メニューと会話を 日本に留学中のロビン (Robin) さんは, クラスメートの健太 (Kenta)さん、由奈 読んで、あとの各問に答えなさい。 (dishes) Hamburger Egg Sandwich Tuna Sandwich Spaghetti with Tomatoes Spaghetti with Seafood Spaghetti with Mushroom Pizza with Potatoes Pizza with 4 Kinds of Cheese Pizza with Seafood ¥300 ¥300 ¥300 ¥450 ¥500 ¥500 ¥500 ¥600 ¥600 Menu (drinks) Coffee Milk Tea Orange Juice (others) Salad Apple Pie Cheese Cake •The tomatoes used in the Spaghetti with Tomatoes are picked in this town. You can order a bigger size of each dish. + 50 yen. •You can get a 100 yen discount if you buy a drink and a salad with any dish. * If you have any questions about this menu, you can ask in English. Robin: Look! This menu is written in English. Kenta: I often see a lot of people from other countries. Many of them speak English. This kind of menu will help those people. They can order in English Robin I see. easily. ¥200 ¥250 ¥250 ¥280 Yuna Right. Also, it says that they can ask questions about the menu in English. That means people working in this restaurant speak English, right? Now, what are we going to eat? Robin : A yen. Kenta: I'm going to order a dish made with bread. I don't want to eat spaghetti or pizza. Robin: Then you can choose one of these three dishes. Each one is three hundred Kenta: I don't want to eat egg or tuna today. So I'll choose あ Robin: How about you, Yuna? How about you, Robin? Robin: I love cheese, so I'll have a pizza with 4 kinds of cheese. Yuna You can choose a bigger size. (1) Robin: Oh, yes. I want a bigger size because Kenta: I'd like a bigger size, too. And a coffee. ¥250 ¥250 ¥280 Thank you. Yuna : I'm going to eat spaghetti or pizza. Which should I choose? pictures at the front door of this restaurant. choose/look/ that/ can't/good) one from them. Robin: The menu says that the tomatoes used in the spaghetti are picked in this town. Yuna: Right! I want to eat い So I'll order a spaghetti with tomatoes. I saw their All those dishes (1/so/ eat an apple pie. Do you want an apple pie? Robin: Oh, yes, I'll have that, too, and I'd like a milk with it. Yuna: I'd like a tea and a salad, too. - 3 - Robin: I'd like an apple juice because apples are my favorite fruit. Yuna: They don't have apple juice. The only fruit juice is orange juice, but you can Ke Re Y K Robin: You will get a 100 yen discount because you will (2) Yuna. Yuna: Does the menu say that? Oh, that's true. Won't you order a salad, Kenta?

回答募集中 回答数: 0