Friday, April 5, 2019

Home Work 1 and 2

Home work based on Class 4 Java type, Primitive and non Primitive


* Homework Part 1: Primitive Data Types
         * Create a variable with value and assign appropriate primitive data types
         * 1. Distance between earth & moon
         * 2. Number of keys on a piano
         * 3. Average age of you and your siblings
         * 4. Is your gender male
         * 5. United State debt value
         * 6. Minimum age to purchase Alcohol in US
         *



         * Homework Part 2: String data types
         *  * 1. String myStatment = "I am a good programmer"
         *  * 2. Find the length of of "myStatment"
         *  * 3. Convert all values to lowercase
         *  * 4. See if statment contains mohammad
         *  * 5. find the 5th index of the statement
         *  * 6. find if the statment is empty
         *  * 7. compare the "myStatement" with "technosoft"
         *  * 8. Check if message starts with "Welcome"
         *  * 9. Check if message ends with "Good Bye"

No comments:

Post a Comment