Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Excel work 2. If you haven t already, go to IoolsaOptionsateditor, and Check: Require Variable Declaration Uncheck: Auto Syntax Check 3. Make sure that the

Excel work image text in transcribed
2. If you haven t already, go to IoolsaOptionsateditor, and Check: Require Variable Declaration Uncheck: Auto Syntax Check 3. Make sure that the current workbook is highlighted in the Project Explorer and then Click: InsertModule 4. Click: InsertProcedure Give your procedure the name MONEY 5. Let's create a program to calculate your pretax expected lifetime earnings (assuming that you never retire because you love working and using Excel so much). Remember that all of your code will go in between the Public Sub MONEYO line and the End Sub line. 6. We'll create four variables: Dim Current as Long Dim Death as Long Dim Income as Double Dim Inflation as Double 7. Create an input box that asks for the user's current age: Current = InputBox("What is your current age?", "Current Age") 8. Similarly, create three more input boxes that ask, respectively, for the expected age of death, the expected firstyear salary after graduation, and the expected average salary inflation rate (including regular cost-of-living increases and promotion increases). These should be assigned to the variables Death, Income, and Inflation, respectively. (In other words, the left-hand side of the next three lines changes to Death, then Income, then Inflation.) 9. Report the results in a message box: MsgBox WorksheetFunction.FV(Inflation,DeathCurrent,-Income) 10. To test your program, enter a current age of 22 , a death age of 25 , a first-year salary of $50,000, and a salary inflation rate of .05. You should see an earnings of $157,625

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Name the main physical properties of minerals

Answered: 1 week ago