Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions