学年

質問の種類

資格 大学生・専門学校生・社会人

この問題の2行目sbというのはなんでしょうか。 文字型sという箱の中にABCDという値が入っていて、 StringBuffer:sb←stringBuffer(s) sbという箱の中をABCDで初期化するという意味かと思ったのですが メンバ変数とかメソッドとかを説明してる枠... 続きを読む

ワグラム中の 問 11 次の記述中の [7] オブジェクト指向 頭の位置は1である。 (4)として Catsb 解説 p. 158 クラス StringBuffer は文字列処理を行うクラスである。 クラス StringBuffer a 図に示す。 に入れる正しい答えを, 解答群の中から選べ。 ここで、文字の先 明を ある。 関数 stringProcessing を stringProcessing ("ABCD") として呼び出すと, 戻り値はで ()tignod 型 説明 メンバ変数 文字列型 格納する文字列。 str 説明 コンストラクタ StringBuffer (文字列型: str) (Linersqlstsb. メソッド 戻り値 引数 strでメンバ変数 str を初期化する。 説明 append(文字列型: str) StringBuffer メンバ変数 str の末尾に引数 str を追加し,イ ンスタンスへの参照を返す。 delete(整数型: start, StringBuffer メンバ変数 str の start 番目からend - 1番 目まで削除し, インスタンスへの参照を返す。 メンバ変数 str を返す。 整数型: end) toString() 文字列型 TIDNA replace (整数型: start, StringBuffer メンバ変数 str の start番目から end 整数型 end, 文字列型: str) lastIndexOf( 整数型 文字列型: str) 目の部分文字列を引数 str に置換し, インス inersqtiqson タンスへの参照を返す。 tibne メンバ変数 str を検索し, 引数 strが最後に出 現する、先頭からの文字位置を返す。見つか らない場合は-1を返す。 図 クラス StringBuffer の説明 ISASE [プログラム] 1: ○整数型: stringProcessing (文字列型:s) 2: StringBuffer: sb ← StringBuffer(s) 3: sb ←sb.append("ABCD").delete(4, 6) 4: sb ← sb.append(sb.delete(2, 3).toString()).replace(3, 4, "D") 5: return sb.lastIndexOf("CD") 第1部 予想 ided ist ge 01508300 金を

解決済み 回答数: 1
数学 高校生

どうやって直角三角形の比が求まるのかわかりません。角度はわかっていませんよねぇ。?

例題 14 力のつりあい 右図のように、重さ60Nのおもりを糸1と2を用いて天井か らつるした。 (1)糸1がおもりを引く張力の大きさ Ti 〔N〕 を求めよ。 (2)糸2がおもりを引く張力の大きさ T2 〔N〕 を求めよ。 糸 1 解答 (1)T1 = 48N (2) T2 = 36N 50cm 40cm 糸2 30cm おもり 60 N 力のつりあいの基本プロセス Process プロセス 0 直角三角形の 辺の比 Ti 35 -T2 AT2 35 T 60N 45 ・水平方向に力を分解する プロセス 2 鉛直方向と水平方向について, 力のつりあいの式をたてる プロセス 3 連立方程式を解き、 求めたい物理 を求める プロセス 1 物体にはたらく力をすべて図示し, 鉛直・ 解説 (1) プロセス (2) 物体にはたらく力をすべて図示し, 鉛直・水平方向に力を分解する プロセス 2 鉛直方向と水平方向について, 力のつりあいの式をたてる 別解 三角形の辺の比で解く。 3力のつりあいを図で示すと, 合力、 2つの張力の合力 T1 鉛直方向の力のつりあいの式より T2 T₁ T₁+ T₂ = 60 ...... 60 N 水平方向の力のつりあいの式より 60N T₂ 直角三角形の 5:4: プロセス 3 連立方程式を解き, 求めたい物理量 を求める ① ②を連立させて解くと, T=48〔N〕,T2=36〔N〕 圈 T = 48N T2=36N 直角三角形の辺の比5:43 さの比に等しい。 60:T1:T2=5:4:3 よってT = 48 〔N〕, T2=

解決済み 回答数: 1
英語 高校生

下線部Dと答え.ウはなぜ同じ用法なんでしょうか 教えてください🙏

closer to reality. Researchers have investigated the use of electricity to stimulate vision for nearly half a century. In the 1960's, a *physiologist implanted 80 electrodes on the surface of a blind person's *visual cortex, a region at the back of the brain. Wireless stimulation of the electrodes made the patient see spots of light known as *phosphenes. This is the first stop for visual signals coming from the eye. (D) By the 1980's, a crop of *ophthalmologists began considering a narrower and seemingly easier-to-solve problem: making *prostheses for the eye. They suggested that degrade *photoreceptor cells called *rods and cones, still leave large portions of the retina intact even after a patient has become totally blind. The way to stimulate the remaining functional cells was proved *feasible in the mid-1990's. A device consisting of a tiny video camera perched on the bridge of a pair of glasses, a belt-worn video processing unit, and an electronic box, was developed recently. The electronic box issues signals to an implant behind the patient's ear that has wires running to a grid of 16 electrodes affixed to the output layer of the retina. The video processor wirelessly transmits a simplified picture of what the camera images to the box, and then the retinal implant stimulates cells in a pattern roughly reflecting that information.

解決済み 回答数: 1