Program language - JAVA
1) Write a program that will display the following.
My name is ____(Shelby)_________. (your name)
My major is ___Psychology________. (your major)
My hobbies are ___Surfing_____, ___Eating_____, and ___Reading______. (your hobbies)
Code:
Output:
CODE IN JAVA:
class Info{
public static void main(String ar[]){
String name="Shivam Tayal.";
String major="Mathematics.";
String hobby1="Listening
Music";
String hobby2="Playing
Cricket";
String hobby3="Playing Mobile
Games.";
System.out.println("My name is
"+name);
System.out.println("My major is
"+major);
System.out.println("My hobbies are
"+hobby1+", "+hobby2+" and "+hobby3);
}
}
OUTPUT :
My name is Shivam Tayal.
My major is Mathematics.
My hobbies are Listening Music, Playing Cricket and Playing Mobile
Games.
class Info{
public static void main(String ar[]){
String name="Shivam Tayal.";
String major="Mathematics.";
String hobby1="Listening Music";
String hobby2="Playing Cricket";
String hobby3="Playing Mobile Games.";
System.out.println("My name is "+Kairo Valenzuela);
System.out.println("My major is "+UAS);
}
}
Program language - JAVA 1) Write a program that will display the following. My name is...
Homework description::::: Write JAVA program with following description. Sample output with code will be helful... A compiler must examine tokens in a program and decide whether they are reserved words in the Java language, or identifiers defined by the user. Design a program that reads a Java program and makes a list of all the identifiers along with the number of occurrences of each identifier in the source code. To do this, you should make use of a dictionary. The...
1. Write a machine-language (hex) program to output your first name on the output device. Object code. My name is Gabby and so far I can only get it to output "Gab". That's my code. D1 00 13 F1 FC 16 D1 00 14 F1 FC 16 D1 00 15 F1 FC 16 D1 00 16 00 47 61 62 62 zz
(NEED FULL CODE PLEASE)write a java program class to calculate and display the areas of 10 rectangles using arrays. * input validation sizes must be between 0-50 inches output to be displayed on the screen and send to an output file. *the output must appear in the following format. rectangle length width area 1 2.0 3.0 6.0 2 - - - - 10 display the rectangle with largest area. rectangle1 area= display the rectangle with smallest area. rectangle2 area=
Write a program in Java language to prompt the user to enter 3 integers (A, B, and C) then display these numbers from the lowest to the highest (sorted ascendingly) . Note that there are 6 different cases to handle proper order. As an example, a user entered 10 for A, 5 for B and 14 for C: the output of the program should look like this Enter number A? 10 Enter number B? 5 Enter number C? 14 Your...
Need to write the program..
In java language.
And That the program should be according to given scenario..
You need to design and implement the following structure for your organization. You must follow the instructions given below 1 - Name of you organization is your surname. For example, if your name is "Qasim Ali", then "Ali" will be organization name. 2- Organization and Person must be interfaces. 3 - Staff and infrastructure must be abstract classes. 4 - Rest of...
In Java, write a program that asks the user for the name of a file. The program should read all the numbers from the given file and display the total and average of all numbers in the following format (three decimal digits): Total: nnnnn.nnn Average: nnnnn.nnn Class name: FileTotalAndAverage
Write a Java application or applet program that asks users enter name, university, city, state, and zip code, and store the information in the text area. The ComboBox for states has the following items: FL, GA, NC, and SC. The output of a sample run of your program is shown in Appendix 2 the department,
IN C++ LANGUAGE PLEASE::: Design and implement a program (name it Favorites) to print out on separate lines the following: your name, your birthday, your hobbies, your favorite book, and your favorite movie.
Q 4(b) 6 Marks] Write the code for a single Java class of your own choice that demonstrates the use of the following features in the Java language: Method overloadingg The use of super and this Identify clearly where in your code each of these points is being demonstrated Q 4(c) [6 Marks] Write an abstract Student class in Java which has a name, id_number, year and programme_code as member variables. Add a constructor to your class and a display()...
Write a java program to create a student file which includes first name, last name, and GPA. Write another Java program to open the students file. Display the students list and calculate the average GPA of the class.