IF1201 Introduction to Visual Basic Assignment

Assignment Help Visual Basic Programming
Reference no: EM133114279

IF1201 Introduction to Visual Basic - City, University of London

Assessment
The assessment will be based on the level of basic comprehension or understanding that you demonstrate, including your ability to apply the relevant VBA concepts.

The efficiency, elegance and clarity of the code will be credited. Please remember to:

• Use the most efficient commands and structures.
• Choose your variable names and data types carefully.
• Indent your code.
• Comment sufficiently to explain your code.

Question 1

i. Nike Inc, has reported dividends of $1.20 per share this year. These dividends are expected to grow at 5% per year (g) for the foreseeable future. Nike's future dividend payments at time t will be equal to:
Dt = D0(1 + g)t
D0 = Current dividend
Dt = Future dividend at time or year t
g = Dividend growth rate
t = time or years

The total present value of a stream of future cash flows (or dividends) that last n years is given by:

PV = t=1nDtωt = D0 x [1 - ((1 + g)/(1+i))n] x ((1+g)/(i-g))

ωt = Discount factor = 1/(1 + i)t

i = Discount rate

Create a subroutine that undertakes the following tasks:

1. Reads the assumptions of D0, i, g, and n from an input range of cells on a worksheet. For Nike Inc, these will be

D0 = 1.20
i = 10%
g = 5%
n = 20

2. Assigns these values to corresponding VBA variables.

3. Uses a loop control structure to create a table that contains the year (t), the dividends (Dt), the discount factor (ωt) and the present value of each payment (Dtωt) for each year from year 1 to year n.

4. Once the final year's data has been produced, the subroutine should enter a total row, labelled as such, with the sum of the total of all of the dividends and of their respective present values.

5. Format the total row, so that it is well presented.

6. Below the total row use the formula below to cross check your total present value of the future dividends paid.

PV = D0 x [1 - ((1 + g)/(1 + i))n] x ((1+g)/(i - g))

7. Remember that the subroutine should ‘clear contents' and ‘clear formats' of the output range so that any previous data is cleared as subroutine executes.

ii. Use the above VBA exercise in 1.i. to explain why the declaration of variables within a subroutine, module or project is seen as good coding practice.

iii. Use the above VBA exercise in 1.i. to explain why careful consideration of a variable's ‘data-type' is important. With reference to the variables you have used, document which data type(s) you have used and why.

Question 2

i. Create a workbook containing VBA User Defined Functions (UDFs).

Create two UDFs that:
a. Converts Fahrenheit to Celsius
b. Converts Celsius to Fahrenheit

On a worksheet, and using your UDFs, produce a table that converts a range of temperatures, say from 0°C to 100°C in 5°C increments into °F and then back into °C.

Suggest and demonstrate an alternative method that could be used in Excel to achieve the same calculation and operation.

Attachment:- Introduction to Visual Basic.rar

Reference no: EM133114279

Questions Cloud

Challenge of dealing with multiculturalism : Most MNCs need not enter foreign markets to face the challenge of dealing with multiculturalism.
The need for transitions : Briefly explain how one of the four steps listed under "The Need for Transitions" can be applied to solve each of the challenges identified above.
Record events in Accounting Equation and Balance Sheet : Beginning inventory consisted of 60 items at $350 ea. Record events in Accounting Equation, Balance Sheet, Income Statement, and Statement of Cash Flow
Find the cost of equity : Use the Capital Asset Pricing Model to find the cost of equity (common stock) in percent. Assume FB's beta is 1.2; the risk-free yield on a 30 year long term US
IF1201 Introduction to Visual Basic Assignment : IF1201 Introduction to Visual Basic Assignment Help and Solution, City, University of London - Assessment Writing Service
Prepare the journal entry to record the issuance of bonds : Hoffman Corporation issued $70 million of 5%, 15-year bonds at 102. Prepare the journal entry to record the issuance of bonds
What is the required rate of return : Currently the risk-free return is 3 percent and the market risk premium, , is 8 percent. What is the required rate of return on the following two-stock portfoli
How many shares did D receive from the subscription : ABC Corp was incorporated with an authorized share capital of P3,000,000 divided into 100,000 shares of P30 par. How many shares did D receive from subscription
Grow and develop as leader in the future : What are you currently doing to ensure that you continue to grow and develop as a leader in the future?

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd