import [Link].
*;
class Video
{
int averageRating;
boolean checked=true;
String videoName;
void rent()
{
}
void getRating()
{}
void checked() {}
void returned() {}
}
class VideoStore extends Video{
String inventorylist[]=new String[50];
int i;
void addVideo(String name)
{
}
void recieveRating(String name,int rating) {}
void returnedVideo(String name){}
void inventoryList()
{
if([Link]<=0)
[Link]("List is Empty");
else
{
for(i=0;i<[Link];i++)
{
[Link]("Video name"+inventorylist[i]+"\trating
"+averageRating);
}
}
}
}
public class VideoRentalInventorySystem
{
public static void main(String []args)
{
String videoname;
VideoStore vs1=new VideoStore();
Video v1=new Video();
[Link]("Are You A User or Admin?\n1.U for User \n2.A for Admin.");
Scanner sc=new Scanner([Link]);
char ch=[Link]().charAt(0);
if(ch=='U')
{
[Link]("ENTER YOUR CHOICE:\[Link] Inventory List\[Link]
video\[Link] rating\[Link] the video\[Link]\n");
int choice1=[Link]();
switch(choice1)
{
case 1:
break;
case 2:
break;
case 3: break;
}
}
else if(ch=='A')
{
[Link]("ENTER YOUR CHOICE:\[Link] Inventory List\[Link]
video\[Link]\n");
int choice2=[Link]();
switch(choice2)
{
case 1:[Link]();
break;
case 2:[Link]("enter the name of video");
videoname=[Link]();
[Link](videoname);
break;
case 3: break;