
program to input total marks out of 600 marks as an argument and print the stream allotted using the following criteria
401 & above - PCM 301-400 - ZBC 201-300- Commerce 101-200 - Arts otherwise(<101)-Admission not granted.you are in waiting list

import java.util.*;
class Marks
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
System.out.println("Enter total marks: ");
int mm=input.nextInt();
if((mm>=401)&&(mm<=600))
{
System.out.println("PCM is allotted");
}
else if ((mm>=301)&&(mm<=400))
{
System.out.println("ZBC is allotted");
}
else if ((mm>=201)&&(mm<=300))
{
System.out.println("Commerce is allotted");
}
else if ((mm>=101)&&(mm<=200))
{
System.out.println("Arts is allotted");
}
else if(mm<101)
{
System.out.println("Admission not granted");
}
}
}
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.