Preview

PT1420week5exdkinney

Satisfactory Essays
Open Document
Open Document
404 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
PT1420week5exdkinney
PT1420 week 5 exercise
Derek Kinney
ITT

Built in functions are valuable and convenient because they can cut down the time and energy it takes into writing the entire program repeatedly. The built-in functions work like mini programs that perform simple tasks so that you can concentrate your efforts elsewhere. As with all functions, the built-in functions return values and, optionally, accept arguments that you pass to the functions when you call the functions. This essay will list different Visual Basic’s built in functions.
VB supports many mathematical and/or numeric functions that can make calculations and other procedures very simple, as one just have to feed in the variables, and get the output after the function processes it. One such function is:
The Sqr () function. This function accepts a single argument and returns the square root of that argument. Another function that helps programmers calculate expressions is the Atn () function. This returns the argument 's arc tangent, expressed in radians. If you want to display your currency values to two decimal places with a dollar sign and commas when applicable you would use the Format() function. This returns a Variant (convertible to a String) data type formatted to look the way you need. Programmers would also use the strFormat function to format values. For example:
"Currency" Ensures that a dollar sign ($) appears before the formatted value, followed by a thousand separator so two decimal places will always show. "Fixed" Displays at least one digit before and two digits following the decimal point, with no thousands separator.

VB includes date and time functions to assist programmers with the task of recording the date and time of the program run. The Date Serial () and Time Serial () functions let you specify expressions inside their argument lists to manipulate specific date and time portion values. All VB’s built in functions calculate, manipulate strings, work with time and date



References: Gaddis, T. (2010). Starting out with programming logic & design. Boston, MA: Addison- Wesley/Pearson Education, Inc. Members Tripod. The Built-In Functions. Retrieved from http://members.tripod.com/acha_ean/vb_12_lession/vel13.htm Yang, H. (2014). VBScript Tutorials. Retrieved from http://www.herongyang.com/VBScript/Built-in-Function.html Yevo. (2008). Introduction to Visual Basic Built-In Functions. Retrieved from http://www.yevol.com/en/visualbasic/Lesson08.htm

You May Also Find These Documents Helpful

  • Satisfactory Essays

    IT210 Week 3

    • 756 Words
    • 4 Pages

    Resources: Review the example in Appendix E and the additional examples on pgs 80-83 of Prelude to Programming…

    • 756 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    In the dynamic global market, companies of all sizes, whether small, medium or transnationals interact with foreign companies and in most cases operate with currencies that are different from those that they commonly use. Foreign companies use foreign currencies for their expenditures, hedging strategies, and investing and financing activities. As a result these business activities must be reflected on the financial statements in the corporation’s reporting currency. FASB 52 and IAS 21 provide the appropriate guidance on the consideration of which functional currency should be implemented by the foreign subsidiaries. This case focuses in Sparkle a Nigerian subsidiary of a joint venture formed by U.S. – based companies with US functional currency; This Company is assessing several factors that will be discussed in the following paragraphs to determine its functional currency.…

    • 1571 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    It210 Week 4 Psuedocode

    • 584 Words
    • 3 Pages

    As Int Declare GIV as Float Declare DRInput As String Declare aa As String Set Rate1 = 1.4680 Set Rate2 = 9.5085 Set Rate3 = 1.6433 Set Rate4 = 104.9200 Set Rate5 = 6.2561 Call Display_Menu Module Call Get_Int_Value Module Call Convert_Currency Module Call Display_Results Module End Currency_Convertor Main Module Quit_Program…

    • 584 Words
    • 3 Pages
    Good Essays
  • Good Essays

    ATC 14-1 (Pg. 686)

    • 420 Words
    • 2 Pages

    According to Gibson (1994) the balance sheet and income statement data are presented in dollars and common size. The common size is presented in percentages which can be converted into dollars. The reason this is more useful is that it will give all of the ratios in percentages so you will know the actual amount that is being figured. Presenting this in only a dollar amount would not give a true representation of how the figures were compiled. References…

    • 420 Words
    • 2 Pages
    Good Essays
  • Good Essays

    It 210 Final Project

    • 733 Words
    • 3 Pages

    3. User data should be requested in clear and concise means. “Please Enter Amount of Foreign Currency (Whole amounts only please”…

    • 733 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    US Value = Rate*Int_Value End Mexican ? Japanese ? French ? Rate = 1.4680 Canadian dollars = 1 U.S. dollar Begin Canadian ? English ?…

    • 585 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    The aim of this guide is to teach you the basics of using a range of formulas in Microsoft Office Excel; this guide covers the following formulas: Addition; Subtraction, Multiplication, Division, Average & Percentage.…

    • 2823 Words
    • 12 Pages
    Good Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

    1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Venit, S., & Drake, E. (2011). Prelude to Programming Concepts and Design (5th ed.). Boston, MA: Addison-Wesley.…

    • 1800 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Nt1330 Unit 1 Quiz

    • 2196 Words
    • 9 Pages

    "To have Microsoft Excel always use a specific currency symbol, change the currency symbol selected in Regional Settings in Control Panel before you start Excel."…

    • 2196 Words
    • 9 Pages
    Good Essays
  • Powerful Essays

    It 210 Final Project

    • 1033 Words
    • 5 Pages

    Write, “Select international currency type: Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs.”…

    • 1033 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    An introduction to computer programming with an emphasis on problem solving will be presented. Specific topics include:…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    You can even create interactive programs that allow the user to input values for variables…

    • 5177 Words
    • 21 Pages
    Good Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    This lab accompanies Chapter 2 (pp. 56-68) of Starting Out with Programming Logic & Design.…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The exchange rate tells you how much one unit of currency is worth when converted to another…

    • 280 Words
    • 2 Pages
    Satisfactory Essays