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
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
read a number & print all its devisors using c-program?
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
write a c program to convert fahrenheit to celsius?
Write a program to interchange two variables without using the third variable?
17 Answers Accenture, College School Exams Tests, Infotech,
What is the value of c?
In C, What is the #line used for?
main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }
Stimulate calculators to perform addition,subtraction,multiplication and division on two numbers using if/else statement?
What is return in c programming?
Where are local variables stored in c?
What is a null pointer in c?