Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question2 #1

Open
kadotami opened this issue Apr 27, 2016 · 3 comments
Open

question2 #1

kadotami opened this issue Apr 27, 2016 · 3 comments

Comments

@kadotami
Copy link
Contributor

kadotami commented Apr 27, 2016

1

data.txtに書かれているデータを読み込んで member[名前]["weight"],member[名前]["height"]で身長、体重にアクセス出来る連想配列を作れ
ただし、data.txtのデータは"名前,身長,体重"となっている

2

1で作成した連想配列を用いて名前を入力するとその人のBMI(体重/(身長(m)×身長(m)))が出力される"関数"を書け

3

メールアドレスを判定するスクリプトを正規表現を使って書け
メールアドレスは"@"によって前半後半に分けられ後半には"."が1つ以上含まれるものとする

@graph226
Copy link
Member

Excuse me of my bad English.

1

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.

@matthew-z
Copy link
Member

Thanks!

@PetrGuan
Copy link
Member

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants