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
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Write a program to find minimum between three no.s whithout using comparison operator.
Why do u use # before include in a C Progam?
what is a void pointer?
Why c language is called c?
What is a const pointer in c?
Explain Doubly Linked Lists?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.
What are the types of data types and explain?
what is a static function