Computer Science, asked by ruhi668, 1 year ago

6. An ICSE School displays a notice on the school notice board regarding
Class XI for choosing stream according to marks obtained in English, Maths
in Class 10 Council Examination.
L in different subjects Stream
Marks obtained in different subjects
Pure Science
Eng, Maths and Science >= 80%
Eng and Science >= 80%, Maths >= 60% Bio. Science
Commerce
Eng, Maths and Science >= 60%
Print the appropriate stream allotted to a candidate. Write a program to accept marke
in English, Maths and Science from the console.​

Answers

Answered by sswaraj04
86

Answer:

import java.util.Scanner;

public class HelloWorld{

    public static void main(String []args){

        Scanner sc=new Scanner(System.in);

        int eng,math,sci;

       System.out.println("Enter english marks");

       eng=sc.nextInt();

       System.out.println("Enter math marks");

       math=sc.nextInt();

       System.out.println("Enter science marks");

       sci=sc.nextInt();

       if(eng>=80&&math>=80&&sci>=80)

       System.out.println("Stream : Pure Science ");

       else if(eng>=80&&sci>=80&&math>=60)

       System.out.println("Stream : Bio Science");

       else if(eng>=60&&sci>=60&&math>=60)

       System.out.println("Stream : Commerce");

    }

}

Explanation:

Answered by nidhisingh4621
19

pls like and comment

Attachments:
Similar questions