program to print total marks

program to print total marks

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

View Answers

February 17, 2012 at 1:35 PM

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");
        }
    }
}









Related Tutorials/Questions & Answers:
program to print total marks
program to print total marks  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
Modify the sales tax program to accept an arbitrary number of prices, total them, calculate the sales tax and print the total amount.
Modify the sales tax program to accept an arbitrary number of prices, total them, calculate the sales tax and print the total amount.  Modify the sales tax program to accept an arbitrary number of prices, total them, calculate
Advertisements
write a java program to print marklist of n students. input Register number, name and marks of three subjects.
write a java program to print marklist of "n " students. input Register number, name and marks of three subjects.  write a java program to print marklist of "n " students. input Register number, name and marks of three subjects
program to input marks
program to input marks  program to input marks ,name in computer... criteria Marks Scholarship(%)on Annual Fees =90... by candidate excluding the scholarship amount . Print the name,annual fees,scholarship
Java Program for Calculating Marks
Java Program for Calculating Marks  Hi Everyone, I have a assignment that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10
Java Program for Calculating Marks
Java Program for Calculating Marks  Hi Everyone, I have a assignment that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10
Java Program for Calculating Marks
Java Program for Calculating Marks  Hi Everyone, I have a assignment that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10
Java Program for Calculating Marks
Java Program for Calculating Marks  Hi Everyone, I have a assignment that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10
Write a program that takes the marks of user as input
Write a program that takes the marks of user as input  Write a program that takes the marks of user as input. If marks are greater then 60 the program should display "Great, you have passed the course", else the program should
Java program to generate the total count
Java program to generate the total count  I need a java program which would take a text file as an input and scans through it to generate the output. For Ex. : If the text file contains the following information: There is/are 3
Write a program to display grade message according to the marks
Write a program to display grade message according to the marks  pls give d answer how to Write a program to display grade message according to the marks     Write a program to display grade message according
How to write a program count total prices
How to write a program count total prices  Hi. all I've got a assignment to write a program that count total prices of 8 costumers. First class class PriceCalculator {print("code sample"); public void method(double quantity
write a program to print
write a program to print   write a program to print following 1 2 3 4 5 4 3 2 1 1 2 3 4 4 3 2 1 1 2 3 3 2 1 1 2 2 1 1 1
C program to print the following
C program to print the following  Hello, Some one help me with a "C Program" to print the following as output: 4444444 4333334..., that is why I choosed Java Beginners, but please give me a C program
A Program To Print A Equilateral Triangle
A Program To Print A Equilateral Triangle  Write A program to Print Following In Java : 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
How to write a program count total prices
How to write a program count total prices  Hi. all I've got a assignment to write a program that count total prices of 8 costumers. class PriceCalculator{ public void method(double quantity) { double result
Write a JSP program to display the grade of a student by accepting the marks of five subjects.
Write a JSP program to display the grade of a student by accepting the marks of five subjects.  Write a JSP program to display the grade of a student by accepting the marks of five subjects
Write a program to print using for loop
Write a program to print using for loop  Write a program to print using for loop * * * *  
write a program in C to print following triangles on the screen
write a program in C to print following triangles on the screen  write a program in C to print following triangles on the screen
write a program to use for loop print **********========== in c language
write a program to use for loop print **********========== in c language  write a program to use for loop print **========== in c language
ModuleNotFoundError: No module named 'my_print_haha_program'
ModuleNotFoundError: No module named 'my_print_haha_program'  Hi...: No module named 'my_print_haha_program' How to remove the ModuleNotFoundError: No module named 'my_print_haha_program' error? Thanks   Hi
Marks
Marks       Giving score to article as Digg does. Read full DescriptionADS_TO_REPLACE_1
C Program to Print Following Output - Development process
C Program to Print Following Output  Hello Sir I wnat to print Followning output in C Language with for loop How I Can Print it? 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1  Hi Friend, Try the following: #include
C Program to Print Stras - Development process
C Program to Print Stras  How I can Print Following Output using Two For loops in C Language? * * * * * * * * * * * * * * * *  Hi Friend, Try the following: #include #include void main(){ int i=0
C Program to Print Pascal Triangle - Development process
C Program to Print Pascal Triangle  I want C Program to Print Pascal Triangle.  Hi Friend, Try the following code: #include #include void main(){ int a[15][15],i,j,rows,num=25,k; printf("\n enter
How to print the following output using c program
How to print the following output using c program  1) 4 3 4 2 3 4 1 2 3 4 2) A B C D E F G H I J
total id
total id  how to print and total my id number ..for example if my id is 0123456789 the output will look like this : 0123456789 0+1+2+3+4+5+6+7+8+9=45 ADS_TO_REPLACE_1 help me plz
Student Marks
, and having trouble with it please help me. Write a program to compute the computer... of the students and store each in an array. The program should take the input.... (A,B,Cââ?¬Â¦..) Marks for ââ?¬Ë?Computer Programming Assignment 1ââ?¬â
Find total disk space in PHP, php disk_total_space, disk_total_space
Learn How to Get the total disk space in PHP Program. In this PHP Tutorial example we will use the disk_total_space() function in our PHP code to find the total disk space.ADS_TO_REPLACE_1 syntax disk_total_space() Function PHP
WRITE A PROGRAM TO PRINT OUT THE NUBERS 10 THROUGH 49
WRITE A PROGRAM TO PRINT OUT THE NUBERS 10 THROUGH 49   write a program to print out the number 10 through 49 in the following manner 10 11 12 13 ......19 20 21..............29 30 31..............39 40 4142............49
Student Marks
marks entered by user and find the grade. Create a simple application which can calculate 5 marks entered by user and find the grade. You must display the grade in a dialog message. You may choose whether to get input (5 marks) from TextField
how to write a program in java to print numbers in equalateral triangle
how to write a program in java to print numbers in equalateral triangle  the output must be 1 324 76589   Here is an example of pattern 1 2 3 4 5 6 7 8 9 Example: public class NumberTriangle{ public
marks - Java Beginners
marks  the marks obtained by 100 students in a subject are tabulated as fallow:- NAME MARKS wap a program to input the names and marks of the students in the subject of computer
array of students with marks list
array of students with marks list  There are 4 array of numbers or scores as below. They are called marks list and represent the scores individual... across all lists and also the number of students (4 in this case). Marks List 1
print
print  How to print JFrame All Componant?   Please visit the following link: http://www.roseindia.net/java/example/java/swing/Print.shtml
Write a java program that prints the decimal representation in reverse. (For example n=173,the program should print 371.)c
Write a java program that prints the decimal representation in reverse. (For example n=173,the program should print 371.)c  class rose { int n...); System.out.println("\nReverse the number"+i); S.out(); } }   print
ModuleNotFoundError: No module named 'total'
ModuleNotFoundError: No module named 'total'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'total' How to remove the ModuleNotFoundError: No module named 'total'
Print
into the stream and, as opposed to print() method, gets you to the new line after the text
ModuleNotFoundError: No module named 'pytest-marks'
ModuleNotFoundError: No module named 'pytest-marks'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'pytest-marks' How to remove the ModuleNotFoundError: No module named '
calculati marks for objective question set?
calculati marks for objective question set?  how to calculate marks for objective question set
ModuleNotFoundError: No module named 'total-ordering'
ModuleNotFoundError: No module named 'total-ordering'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'total-ordering' How to remove the ModuleNotFoundError: No module named
Total Hours Calculation.
Total Hours Calculation.   Hi,How to calculate the total hours by startime and endtime.not railway time just only normal time.please help. Thanks
PLEASE Help me write a Java program which will store, manipulate, and print student registration information.
PLEASE Help me write a Java program which will store, manipulate, and print..., ADDRESS AND ADMISSIONS CLASS PLEASE HELP!!! Write a Java program which will store, manipulate, and print student registration information. As part
ModuleNotFoundError: No module named 'print_print'
ModuleNotFoundError: No module named 'print_print'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'print_print' How to remove the ModuleNotFoundError: No module named '
program
program  write a java program to input a no. and print wheather the no. is a special no or not. (special no. are those no whose factorial of the sum of digit of the no is same as the original
Total summay from a sale table
Total summay from a sale table  Total summay from a sale table
ModuleNotFoundError: No module named 'mantid-total-scattering'
ModuleNotFoundError: No module named 'mantid-total-scattering'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'mantid-total-scattering' How to remove the ModuleNotFoundError
ModuleNotFoundError: No module named 'total-connect-client'
ModuleNotFoundError: No module named 'total-connect-client'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'total-connect-client' How to remove the ModuleNotFoundError
ModuleNotFoundError: No module named 'location-history-total'
ModuleNotFoundError: No module named 'location-history-total'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'location-history-total' How to remove the ModuleNotFoundError
ModuleNotFoundError: No module named 'mantid-total-scattering'
ModuleNotFoundError: No module named 'mantid-total-scattering'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'mantid-total-scattering' How to remove the ModuleNotFoundError

Ads