answersLogoWhite

0


Best Answer

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

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

#include<iostream.h>

#include<stdio.h>

#include<dos.h>

class student

{

int roll;

char name[25];

char add [25];

char *city;

public: student()

{

cout<<"welcome in the student information system"<<endl;

}

void getdata()

{

cout<<"\n enter the student roll no.";

cin>>roll;

cout<<"\n enter the student name";

cin>>name;

cout<<"\n enter ther student address";

cin>>add;

cout<<"\n enter the student city";

cin>>city;

}

void putdata()

{

cout<<"\n the student roll no:"<<roll;

cout<<"\n the student name:"<<name;

cout<<"\n the student coty:"<<city;

}

};

class mrks: public student

{

int sub1;

int sub2;

int sub3;

int per;

public: void input()

{

getdata();

cout<<"\n enter the marks1:";

cin>>sub1;

cout<<"\n enter the marks2:";

cin>>sub2;

cout<<"\n enter the marks3:";

cin>>sub3;

}

void output()

{

putdata();

cout<<"\n marks1:"<<sub1;

cout<<"\n marks2:"<<sub2;

cout<<"\n marks3:"<<sub3;

}

void calculate ()

{

per= (sub1+sub2+sub3)/3;

cout<<"\n tottal percentage"<<per;

}

};

void main()

{

mrks m1[25];

int ch,i;

int count=0;

do

{

cout<<"\n1.input data";

cout<<"\n2.output data";

cout<<"\n3. Calculate percentage";

cout<<"\n4.exit";

cout<<"\n enter the choice";

cin>>ch;

switch (ch)

{

case 1:

m1[i].input();

count++;

break;

case 2:

m1[i].output();

break;

case 3:

m1[i].calculate();

break;

}

}while (ch!=4);

}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

public class Test {

public static void main(String[] args) {

System.out.println("*");

}

}

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

hi i m ccet

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in c to print a mark sheet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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?


What is the 10th class mark sheet Sr.no meant by?

The serial number is also the mark sheet number. So when asking for the serial number you will input the mark sheet number.