Using the heBuilder or sheBuilder, build a person. For your person, define a function named calculateArea() and calculatePerimeter() that has a parameter named edgeLength. He or she should walk in a square with edges that are each distance meters long. Make certain your person begins and ends at the same spot. When the person is done walking, have the person say the area and perimeter of the square.
Klik button download di bawah ini untuk mendownload file jadinya
BlogFlux Tools
Blog Subscription
Jika Anda menyukai Artikel di blog ini, Silahkan klik disini untuk berlangganan gratis via email, dengan begitu Anda akan mendapat kiriman artikel setiap ada artikel yang terbit di www.skylandhacker.com
TwitterCounter for @skylandhacker3
Make Money
* Raup Dollar + Custom domain gratis (domain.co.cc).
* Penghasil Dollar terbaik melalui Sponsored Reviews.
* Dollar langsung ke Paypal anda via ask2link.
* Dibayar untuk post review via Link Worth.
* Dibayar untuk link yang terjual via Teliad.
* Sudah punya account di Paypal? miliki segera.
* Mau dapet duit setiap file anda di download...?.
Categorized | Dasar Pemograman
Walk in Square
0komentar:
Leave a Reply