answersLogoWhite

0

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

}

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

Write a c program to generate student mark details using union and find total and average and grade?

write a c program to display marks,total,average,grade using union


Write a program in pascal that declares two integers and gives there sum?

This is not a question so you do not need to use a question mark at the end of your sentence.


What does the exclamation mark do on Python?

we use exclamation mark for "not equal to" function. for example: if we want to write 3 is not equal to 4


How do you write a program in C that will captures details The details to be captured are student name mark and age The program should calculate and display the average marks for all the students?

Create a data structure to store the details for each student: typedef struct student_t { char name[30]; unsigned age; unsigned mark; } student; Establish an array to store the student data: size_t max = 100; // replace 100 with the actual number of students student students[max]; Use a loop to enter the data: for (size_t i=0; i&lt;max; ++i) { printf ("Student name: "); scanf ("%s", students[i].name); printf ("Student age: "); scanf ("%u", students[i].age); printf ("Student mark: "); scanf ("%u", students[i].mark); } Calculate and display the average mark: unsigned sum = 0; for (size_t i=0; i&lt;max; ++i) sum += student[i].mark; printf ("Average mark: %d\n", sum / max_students);


How do you append a output of a program to a program?

you mean like show some sample output? Just put it in comments at the bottom. Run the program, and in the top left of the command prompt there is a button you can click. Select mark, highlight the output, then select copy. Paste it onto the end of the program.

Related Questions

C program to print mark sheet of 5 subjects and the number of students is user input?

hhh


How do you get the duplicate mark-sheet of 10th and 12th c.b.s.e?

by blue print


How do you write a requesition letter to get the mark sheet from past working place?

requestion letter to get mark sheet


What does exclaming mean?

It means an expression of surprise, pain or anger, etc and is denoted in print with this mark: ! Often people say or write 'exclamation' when they mean 'exclamation mark'.


How do you get board mark-sheet?

i have lost my mark-sheet of 10. tell how would i get it i have lost my mark-sheet of 10. tell how would i get it


When can you get 2010 sslc mark sheet?

i wnt my sslc mark sheet


What is mark sheet?

Mark sheet is the total collection of the mark which you have gain in the exam or any competition .


Admission requirements for colleges under spp program in Canada?

ADMISSION REQUIREMENTS FOR S.P.PPassport size PhotographsLeaving CertificatePassport copy (First & Last Page with Observation)10th Mark sheet, Credit Certificate12th Mark sheet, Credit CertificateDiploma's Mark sheet, Degree CertificateITI's Mark sheet, Degree CertificateBachelor's Mark sheet, Degree Certificate (Transcript) if requiredMaster's Mark sheet, Degree Certificate (Transcript) if requiredIELTS (Overall 6 Band and No Less than 5 Each Module minimum for SPP)Work Experience letter if anyCredit Card Details or DD in Favor of College or University(Application Fees)


What does exclamation?

It means an expression of surprise, pain or anger, etc and is denoted in print with this mark: ! Often people say or write 'exclamation' when they mean 'exclamation mark'.


How do you write application to principal for lost my mark sheet?

You can write a letter to the principal explaining that you have lost your mark sheet and requesting a duplicate copy. Include details such as your name, roll number, date of birth, and any other information that can help them identify your records. Be polite and provide a genuine reason for the request.


How do you get duplicate diploma mark sheet from stae board of technical education chennai?

my 1st sem mark sheet is correction, so i have a duplicate mark sheet


Write a C program to declare result of a student using multilevel?

This is a statement with a question mark?