You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read the data in data.txt. Then make an associative array we can access as member[name]["weight"] for weight and member[name]["height"] for height.
2
Create a function that returns one's BMI ( weight / (height[m] * height[m]) ) for input of one's name. You can use the associative array you made in 1.
3
Write a script it validates inputs are e-mail address or not. In this question, e-mail address must be divided into the first and second half by @. The second half must include . more than one.
1
data.txtに書かれているデータを読み込んで member[名前]["weight"],member[名前]["height"]で身長、体重にアクセス出来る連想配列を作れ
ただし、data.txtのデータは"名前,身長,体重"となっている
2
1で作成した連想配列を用いて名前を入力するとその人のBMI(体重/(身長(m)×身長(m)))が出力される"関数"を書け
3
メールアドレスを判定するスクリプトを正規表現を使って書け
メールアドレスは"@"によって前半後半に分けられ後半には"."が1つ以上含まれるものとする
The text was updated successfully, but these errors were encountered: