PRACTICLE - 1
- Install JDK and set proper
path for environment variables.
- Write JAVA program that displays strings Welcome to java, Learning java now and Programming is fun in three separate line.
- Install JDK and set proper path for environment variables.
- Write JAVA program that displays strings Welcome to java, Learning java now and Programming is fun in three separate line.
* Tap here to view assignment.....
PRACTICLE -2
1. Write JAVA program that reads a temperature value from the user in Celsius and converts it to Fahrenheit and Kelvin and prints the result.
(Tf = Tc(9/5) + 32 , Tk = Tc + 273.15)
2. Write a program that takes three numbers (integers) from the user and display the integers decreasing order. (User should give space separated input for three numbers (Ex. 5 15 10). User should not be asked three times to enter the number.)
3.Write a program that asks the user to enter a letter and check whether a letter is a vowel or constant.
4.Assume a vehicle plate number consists of three uppercase letters followed by four digits separated by ‘ - ’ (Ex. AGM-1326 ) . Write a program to generate ten plate numbers at a time. Output should display ten number plates in new lines.
5.Java Program to Check Whether a Number is Even or Odd.
...
PRACTICLE -3
1. Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. Write a program that prompts the user to enter a weight in pounds and height in inches and displays the BML. (1 pound = 0.45359237 Kg and 1 inch = 0.0254 meters.)
2. Create a student class that has following properties
a. First Name
b. Last Name
c. Enrollment Number
d. College Name
e. Branch Name
f. Hometown
g. Current Percentage (CPI)
1. Use idea of Encapsulation and provide getter and setter method for all properties.
2. Create a second class (which is your public class with main method) and create five objects of students and set the values for above properties .
3. Ask the user to enter first name of the student to search.
4. If the first name entered by user matches with the first name of any of the five student objects, all the properties of those object should get pronted. Else print error message saying none of the exiting student objects matches with search criteria.
No comments:
Post a Comment