Putlinemy middle initial is middleinitial end java

Info icon This preview shows pages 3–4. Sign up to view the full content.

DBMS_OUTPUT.PUT_LINE('My middle initial is ' || middle_initial); END; Java class myexample { public static void main (String args []) { int age; double salary; String middle_initial; age = 21; salary = 29521.12; middle_initial = "K"; System.out.println ("I am " + age + " years old "); System.out.println ("I make " + salary + " per year"); System.out.println ("My middle initial is " + middle_initial); } } Perl #!/usr/local/bin/perl $ age = 21; $salary = 29521.12; $middle_initial = "K"; print "I am " . $age . " years old "; print "I make " . $salary . " per year "; print "My middle initial is " . $middle_initial; Basic Dim age AS Integer Dim salary AS Decimal Dim middle_initial As String
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

age = 21 salary = 29521.12 middle_initial = "K" print "I am " & age & " years old " print "I make " & $salary & " per year " print "My middle initial is " & $middle_initial In the above examples it is clear that different programming languages have slightly different syntax and data types. However for the most part, variable declaration is straight forward. Real differences begin to appear when more complex data structures such as arrays and pointers are declared. Such discussion is best left for programming courses. Key Terms: Datatypes o INT o CHAR: character o Float Assignment OP o /* /* Variables o Printf Display to screen o Scanf Awaits input from user o Const Flt Chr Int Key Words o There are 29 keywords Operators o Operates on symbols
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern