Badboy is defined who has ALL the following properties:
Does not have a girlfriend and is not married.
He is not more than 23 years old.
The middle name should be "Singh"
The last name should have more than 4 characters.
The character 'a' should appear in the last name at least
two times.
The name of one of his brothers should be "Ram"
Write a method:
boolean isBadBoy(boolean hasGirlFriend , boolean isMarried,
int age , String middleName , String lastName , String[]
brotherName);
isHaveGirlFriend is true if the person has a
girlfriend
isMarried is true if the person is married
age is the age of the person
middleName is the middle name of the person
lastName is the last name of the person
brotherName is the array of the names of his
brothers
No Answer is Posted For this Question
Be the First to Post Answer
What are the different pointer models in c?
Process by which one bit pattern in to another by bit wise operation is?
Explain the process of converting a Tree into a Binary Tree.
What is the use of printf() and scanf() functions?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Find occurence of a character in a sting.
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
write a own function to compare two strings with out using stringcomparition function?
which will be first in c compiling ,linking or compiling ,debugging.
what is difference b/w extern & volatile variable??
how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com