
A college is good if it satisfies the following conditions:
1.Its number of students is greater than 1000. 2.If the name ends wih a character 'e', then it should not start with character 'a' (case insensitive) 3.No. of courses offered should be greater than 5. 4.If "M.Tech" is one of the courses offered, it must also offer "B.Tech" and "MCA" courses. 5.If "MBBS" is one of the courses, it must not offer a "B.Tech" Course. 6.If it has a "B.Tech" course, atleast 30 compnies should have come for placement. (But see next condition) 7.If "Infosys" or "Wipro" have come for placement, the requirement of number of companies is relaxed to 15 companies. Write a method:
boolean isGoodCollege(String name, int numStudents, String[] coursesOffered, String[] campusPlacement)
name Name of the college. numStudents Number of students in the college. coursesOffered String array containing the list of courses offered by the college. campusPlacement String array containing the list of companies that have offered campus placement. Can be null if no companies have offered placement.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.