Question: Question 1 - Object Orientated Programming ( 1 0 marks ) Create and save a macro - enabled workbook. Consider the following thick - walled
Question Object Orientated Programming marks
Create and save a macroenabled workbook.
Consider the following thickwalled cylindrical tube and its properties:
a marks
Setup a worksheet with cells for user to enter values for and the density of the material what the cylinder is made by Also provide cells for cross section area CSA volume mass Area Moments of inertia about Area Moments of inertia about Area Moments of inertia about which are to be calculated.
All units entered are assumed to be in
Add a class module to your project named CylindricalTube.
Add public properties to the class for and using appropriate data types.
Add methods to your class to calculate CSA, and which must be returned with a result based on the millimeters unit.
Formula:
CSA
b marks
Add an ActiveX or form button with caption "Calculate" to your worksheet which executes code using the CylindricalTube object. When clicked the code will create a new instance of the CylindricalTube object and assign values to the new object properties for and from the spreadsheet, then using methods, populate cells containing CSA, and
Your worksheet should look something like this:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
