Answered step by step
Verified Expert Solution
Link Copied!

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 1- Object Orientated Programming (10 marks)
Create and save a macro-enabled workbook.
Consider the following thick-walled cylindrical tube and its properties:
a.(5 marks)
Setup a worksheet with cells for user to enter values for r1,r2,h, and , the density of the material what the cylinder is made by. Also provide cells for cross section area (CSA), volume (V), mass (m), Area Moments of inertia about Z(IZ), Area Moments of inertia about x(Ix), Area Moments of inertia about Y(IY), which are to be calculated.
All units entered are assumed to be in mm.
Add a class module to your project named CylindricalTube.
Add public properties to the class for r1,r2,h, and , using appropriate data types.
Add methods to your class to calculate CSA, V,m,IZ,Ix, and IY which must be returned with a result based on the milli-meters unit.
1
Formula:
CSA =r22-r12
V=hr22-hr12
m=hr22-hr12
IZ=12m(r22+r12)
Ix=112m[3(r22+r12)+4h2]
IY=112m[3(r22+r12)+4h2]
b.(5 marks)
Add an Active-X 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 r1,r2,h, and from the spreadsheet, then using methods, populate cells containing CSA, V,m,IZ,Ix, and IY.
Your worksheet should look something like this:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

Students also viewed these Databases questions

Question

A 300N F 30% d 2 m Answered: 1 week ago

Answered: 1 week ago