السلام عليكم ورحمة الله وبركاته
شحالكم عساكم طيبين
ما عليه بس لو ماعليكم امر عندي سؤال وادور حله
Create a class Rectangle with attributes length and width both are of type double.In your class you should provide the following:
Provide a constructor that defaults length and width to 1.
Provide member functions that calculate the area,perimeter and diagonal of the rectangle.
Provide set and get functions for the length and width attributes.The set functions should verify that the length and width are larger than 0.0 and less than 50.0
Provide a member function that prints length,width,area,perimeter and diagonal.
هو حله باستخدام لغة ال OBJECT OREINTED PROGRAMMING
أتمنى حد يساعدني
يزاكم الله كل الخير
والسموحه منكم
أسيرة الموووت
شحالكم عساكم طيبين
ما عليه بس لو ماعليكم امر عندي سؤال وادور حله
Create a class Rectangle with attributes length and width both are of type double.In your class you should provide the following:
Provide a constructor that defaults length and width to 1.
Provide member functions that calculate the area,perimeter and diagonal of the rectangle.
Provide set and get functions for the length and width attributes.The set functions should verify that the length and width are larger than 0.0 and less than 50.0
Provide a member function that prints length,width,area,perimeter and diagonal.
هو حله باستخدام لغة ال OBJECT OREINTED PROGRAMMING
أتمنى حد يساعدني
يزاكم الله كل الخير
والسموحه منكم
أسيرة الموووت

تعليق