answersLogoWhite

0

AllQ&AStudy Guides
Best answer

first you guess where the first switch could be, then the second switch is in the trash can below of the first switch.

t t t 1S t

t t t 2S t

t t t t t

t t t t t

t t t t t

This answer is:
Related answers

first you guess where the first switch could be, then the second switch is in the trash can below of the first switch.

t t t 1S t

t t t 2S t

t t t t t

t t t t t

t t t t t

View page

t of t is t is what you say t

View page

1 2 3 4

h h h h

h h h t

h h t h

h h t t

h t h h

h t h t

h t t h

h t t t

t h h h

t h h t

t h t h

t h t t

t t h h

t t h t

t t t h

t t t t

View page

What is 3= T in a T? What is 3= T in a T? What is 3= T in a T?

View page

import java.util.*;

import java.lang.String;

import java.io.*;

import java.util.Date;

import java.util.Timer;

class project

{

public static void main(String args[]) throws IOException

{

String sub1,sub2,sub3,sub4,sub5,sub6;

String name,sem;

int m1,m2,m3,m4,m5,m6,m7;

//Date dt = new Date(now.getTime()

int prn_no,seat_no,total;

float per;

float temp;

String msg="*";

long currentTimeInMillis = System.currentTimeMillis();

Date today = new Date( currentTimeInMillis );

Scanner in=new Scanner(System.in);

BufferedReader b=new BufferedReader(new InputStreamReader(System.in));

System.out.println("Enter name of student=");

name=b.readLine();

System.out.println("Enter prn number =");

prn_no=in.nextInt();

System.out.println("Enter name of semester=");

sem=b.readLine();

System.out.println("Enter Roll number =");

seat_no=in.nextInt();

System.out.println("Enter first subject name =");

sub1=b.readLine();

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

m1=in.nextInt();

System.out.println("Enter second subject name =");

sub2=b.readLine();

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

m2=in.nextInt();

System.out.println("Enter third subject name =");

sub3=b.readLine();

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

m3=in.nextInt();

System.out.println("Enter fourth subject name =");

sub4=b.readLine();

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

m4=in.nextInt();

System.out.println("Enter fifth subject name =");

sub5=b.readLine();

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

m5=in.nextInt();

System.out.println("\t\t\t\t\t\t DR.BABASAHEB AMBEDKAR MARATHWADA UNIVERSITY");

System.out.println("\t\t\t\t\t\t\tAurangabad-431004");

System.out.println("STUDENT NAME:"+name+"\t\t\tprn :"+prn_no+"\t\t\tSEAT NO:"+seat_no+"\t\t\tSEMESTER:"+sem);

System.out.println("------------------------------------------------------------------------------------");

System.out.println("\n\n| SUBJECTS"+"\t\t\t\t|\tMAXIMUM MARKS"+"\t|\t min marks"+"\t|\tOBTAINED MARKS");

System.out.println("------------------------------------------------------------------------------------");

if(m1>40)

msg="";

else

msg="*";

System.out.println("|"+sub1+"\t\t\t\t\t\t|\t100\t\t\t\t|\t40\t\t\t|\t"+m1);

if(m2>40)

msg="";

else

msg="*";

System.out.println("|"+sub2+"\t\t\t\t\t\t|\t100\t\t\t\t|\t40\t\t\t|\t"+m2);

//System.out.println(+sub2+"\t\t\t"+"|"+"\t\t100"+"\t\t\t"+"|"+"\t\t40"+"\t\t\t\t"+"|"+"\t\t"m2+msg+"\t|");

if(m3>40)

msg="";

else

msg="*";

System.out.println("|"+sub3+"\t\t\t\t\t\t|\t100\t\t\t\t|\t40\t\t\t|\t"+m3);

//System.out.println(+sub3+"\t\t\t"+"|"+"\t\t100"+"\t\t\t"+"|"+"\t\t40"+"\t\t\t\t"+"|"+"\t\t"m3+msg+"\t|");

if(m4>40)

msg="";

else

msg="*";

System.out.println("|"+sub4+"\t\t\t\t\t\t|\t100\t\t\t\t|\t40\t\t\t|\t"+m4);

//System.out.println(+sub4+"\t\t\t"+"|"+"\t\t100"+"\t\t\t"+"|"+"\t\t40"+"\t\t\t\t"+"|"+"\t\t"m4+msg+"\t|");

if(m5>40)

msg="";

else

msg="*";

System.out.println("|"+sub5+"\t\t\t\t\t\t|\t100\t\t\t\t|\t40\t\t\t|\t"+m5);

//System.out.println(+sub5+"\t\t\t"+"|"+"\t\t100"+"\t\t\t"+"|"+"\t\t40"+"\t\t\t\t"+"|"+"\t\t"m5+msg+"\t|");

System.out.println("------------------------------------------------------------------------------------");

total=m1+m2+m3+m4+m5;

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t TOTAL ::"+total+"/500");

temp=(float)total/500;

per=temp*100;

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t PERCENTAGE ::"+per+"%");

System.out.println("------------------------------------------------------------------------------------");

if(m1<40&&m2<40&&m3<40&&m4<40&&m5<40)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT ::DROPPED");

System.out.println("------------------------------------------------------------------------------------");

}

else if(m1<40&&m2<40m3<40&&m4<40&&m5<40)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT ::A.T.K.T.");

}

else if(per<35)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT ::FAILED");

}

else if(per>=35&&per<40)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT ::passed");

}

else if(per>=40&&per<59)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT :::passed with SECOND CLASS");

}

else if(per>=60&&per<75)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT :passed with first class");

}

else if(per>=75)

{

System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t"+"|"+"\t\t RESULT :passed with DISTINCTION class");

}

System.out.println( today );

}

}

View page
Featured study guide

Biology

7 cards

Which of the following is most likely to not acidic

If four coins are tossed what is the probability of 2 heads 2 tails

Unscramble the letters A E E H L S T T to form a word

Which of the following parts of the brain would a lesion most likely result in aphasia

➡️
See all cards
4.5
4 Reviews
More study guides
No Reviews

No Reviews
Search results