Creating a VBA Program

mhtoo2127

New Member
Joined
Feb 24, 2021
Messages
1
Write a VBA program that will use the method of selected points (see the Engineering Topics document in the Lectures Folder on MyCourses, Slides 124-131) to solve for the m and b values in the selected equation. The program should ask the user which type of function they would like to fit (linear, exponential, or power), then ask the user to input the x and y coordinates for two data points to use for the method of selected points. The program will calculate the equation parameters (m and b), and display the fitted function in a dialog box.
Use the following data points (A and B) to test your program for the three cases shown
1) Linear function (points taken from a rectilinear graph): A(10, 60), B(35, 165)
2) Exponential function (points taken from a semi-log graph): A(1.5, 11), B(6, 175)
3) Power function (points taken from a log-log graph): A(15, 33), B(65, 470)
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I suspect your instructor wants to see your work, not what others internet people can do. Perhaps if you asked some more specific questions, versus just (apparently) asking someone to do what's clearly a class assignment? You'll learn more that way anyway.
 
Upvote 0
You also need to show us what you have done / achieved so far rowards completing this assignment.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top