Computer Science, asked by Nishakankarwal4291, 3 days ago

5. Write a program to find the eligibility of admission for a course based on the following criteria:
Eligibility Criteria :
Marks in PF >=65
Marks in English >=55
Marks in Database>=50 and Total in all three subject >=190 or Total in PF and Database >=140
Input the marks in all three subjects from the user and display on the console in case the user is eligible or not.

Answers

Answered by pateltithi175
0

Answer:

of 456

Explanation:

mark brainlist in PF >=65

Marks in English >=55

Marks in Database>=50 and Total in all three subject >=190 or Total in PF and Database >=1

Answered by samarthkrv
0

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    System.out.print("Enter name of the student:");

 Scanner sc = new Scanner(System.in);

 String name = sc.nextLine();

 System.out.print("Enter marks in PF:");

 int pf = sc.nextInt();

 System.out.print("Enter marks in English:");

 int eng = sc.nextInt();

 System.out.print("Enter marks in database:");

 int dat = sc.nextInt();

 int total = pf + eng + dat;

 int total1 = pf + dat;

 if(pf >=65 && eng >=55 && dat >=50){

     System.out.println(name + " is eligible");

 }

 else if(total >=190){

     System.out.println(name + " is eligible");

 }

 else if(total1 >= 140){

     System.out.println(name + " is eligible");

 }

 else{

     System.out.println(name + " is not eligible");

 }

 

}

}

Explanation:

Similar questions