Computer Science, asked by monapanday131, 3 months ago

Using if else statement, write a program in Java
to calculate the grade as per the given
criteria:
Percentage Marks
Gerade
from 75 to loo
passed with star
From 60 to 75
1st Division
from uo to co
11nd Division
less than 40
failed​


kamalrajatjoshi94: Type the question properly.
kamalrajatjoshi94: Then i will answer
kamalrajatjoshi94: Type 1 more time.

Answers

Answered by atrs7391
1

package com.company;

import java.util.Scanner;

public class Main {

   public static void main(String args[]) {

       Scanner sc = new Scanner(System.in);

       System.out.println("Enter the Percentage");

       double per = sc.nextDouble();

       if (per > 74 && per < 101) {

           System.out.println("You passed with a Star");

       } else if (per > 59 && per < 75) {

           System.out.println("You have been passed by 1st division");

       } else if (per > 39 && per < 60) {

           System.out.println("You have been passed by 2nd division");

       } else if (per < 40) {

           System.out.println("You have been failed");

       }

   }

}

Attachments:
Answered by preethimpagaria
0

Answer:

this is the answer chutiyo paad lo pehle

Attachments:
Similar questions