What's new
  • Welcome to PHCorner forums. Take a moment to sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Java Object Orriented Programming Problem

Alphantomreaper

Leecher
Joined
Aug 26, 2015
Messages
4
Reaction
2
Age
22
Need help idols must be finished in 11pm pls help me if you have some time
Thanks

ACTIVITY: • Make a java program, OOP form, that ask for your first name, middle name, last name, age, course, and Year level. You just need to input and output your information. (Object-Oriented Programming) • Make a java program that will tell if your inputted number is odd or even.
 

edryanjoshua

Journeyman
Sana hindi kanalang nag comment kung wala kanaman ding alam (n)

Yan tayo eh.. sa mga bagay bagay eh hinihingi natin hindi natin pinag hihirapan o mag exert man lang ng effort kaya hindi tayo natututo. Kung nag bigay si TS ng code snippet nya pwede kong tulungan si TS eh pero binigay lang yung tanong eh hindi man lang nag effort. Punta kang stackoverflow kung ganyan mga tanong mo tatanggalin agad post mo. Di ka mag su survive ng cs or it kung ganyan ang utak mo kaya dapat habang maaga ka agapan mo na.

Wag pamarisan ang ***** para hindi magmukhang *****.
 
Comment

Princess Hart

Eternal Poster
Yan tayo eh.. sa mga bagay bagay eh hinihingi natin hindi natin pinag hihirapan o mag exert man lang ng effort kaya hindi tayo natututo. Kung nag bigay si TS ng code snippet nya pwede kong tulungan si TS eh pero binigay lang yung tanong eh hindi man lang nag effort. Punta kang stackoverflow kung ganyan mga tanong mo tatanggalin agad post mo. Di ka mag su survive ng cs or it kung ganyan ang utak mo kaya dapat habang maaga ka agapan mo na.

Wag pamarisan ang ***** para hindi magmukhang *****.
Talaga? :dead::sour:eek:_O
 
Comment

Yukinoshita

Honorary Poster
Pero mas okay talga sa mga ganito di nagsesearch sa google or mga forums eh :/ ginagamit talga dapat pag iicip or intindi. Ang pag Code naman kasi parang ineexpress mo lang sarili mo eh.
 
Comment

asnar001

Leecher
kung nakinig ka lang sana sa prof. mo edi easy lang sayo yan :)
google bro . pero pag aralan mo yung code wag mabuhay sa spoon feed lang .
 
Comment

blankstares

Journeyman
Here's what i did, hope it helps:

Code:
import java.io.* ;
import java.util.Scanner;

class Dcoder {

    public static void main(String args[]){

//set up scanner for user input
        Scanner user_input = new Scanner(System.in);

//ask for inputs
        
        System.out.println("Please Enter In Your First Name: ");
        String firstName = user_input.nextLine();

        System.out.println("Please Enter In Your Middle Name: ");
        String middleName = user_input.nextLine();

        System.out.println("Please Enter In Your Last Name: ");
        String lastName = user_input.nextLine();

        System.out.println("Please Enter In Your Course: ");
        String course = user_input.nextLine();
        
        System.out.println("Please Enter In Your Age: ");
        int age = user_input.nextInt();

        System.out.println("Please Enter In Your Year: ");
        int year = user_input.nextInt();
    
        System.out.println("Hello " + firstName + " " + middleName + " " + lastName + ".");
        System.out.println("You are " + age + " years old." );
        System.out.println("Your course is: " + course + ".");
        System.out.println("Your year of acceptance is: " + year + ".");
        
        //declare whether year variable is even or odd
        if ((year % 2) == 0 )
        System.out.println("Which is" + "even");
        
        else
            System.out.println("Which is" + "odd");
    }
}
 
Comment

Online statistics

Members online
835
Guests online
1,862
Total visitors
2,697

Forum statistics

Threads
1,089,817
Messages
18,304,520
Members
1,524,814
Comments
1,187,247
Attachments
1,423,396
Profile posts
97,928
Top