Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Use the code below to answer the question. Sub calculate() Dim loan As Long, rate As Double, nper As Integer loan = Range(D4). Value

6.

image text in transcribedimage text in transcribed
Use the code below to answer the question. Sub calculate() Dim loan As Long, rate As Double, nper As Integer loan = Range("D4"). Value rate = Range("F6"). Value nper = Range("F8"). ValueIf Sheet1. OptionButton1. Value = True Then rate = rate / 12 nper = nper * 12 End If Range("D12").Value = -1 * WorksheetFunction.Pmt(rate, nper, loan) End Sub The Dim word above is used in the code to O create the variables loan, rate, and nper and define their data types O take the value of "D4" and output it to "D12" O tell the code to calculate the payment (pmt) based on the rate, nper, and loan O allow the user to set the values in D4, F6, and F8

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

Quantitative Methods For Business

Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey Cam

11th Edition

978-0324651812, 324651813, 978-0324651751

More Books

Students also viewed these General Management questions

Question

=+ d. What happens to Oceanias trade balance?

Answered: 1 week ago

Question

=+ e. What happens to Oceanias real exchange rate?

Answered: 1 week ago