Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started