Question
IIHT institution is offering a variety of courses to students. Students have a facility to check whether aparticular course is available in the institution. Write
IIHT institution is offering a variety of courses to students. Students have a facility to check whether aparticular course is available in the institution. Write program to help the institution accomplish this task. If the number is less than or equal to zero display "Invalid Range". Only file "Course.java" should be submitted.
Assume maximum number of courses is 20.
Sample Input 1:
Enter no of course:
5
Enter course names:
Java
Oracle
C++
Mysql
Dotnet
Enter the course to be searched:
C++
Sample Output 1:
C++ course is available
Sample Input 2:
Enter no of course:
3
Enter course names:
Java
Oracle
Dotnet
Enter the course to be searched:
C++
Sample Output 2:
C++ course is not available
Sample Input 3:
Enter no of course:
0
Sample Output 3:
Invalid Range
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started