World Languages, asked by Naveel1111, 1 month ago

Java program that will dispaly the content of student details table on the monitor

Answers

Answered by AnindyaMukherjee
0

Answer:

Enter Name: Mike

Enter Roll Number: 101

Enter marks in Maths, Physics and English: 88 77 99

Roll Number:101 Name: Mike

Marks (Maths, Physics, English): 88,77,99

Total: 264 Percentage: 88.0

Explanation:

//program to get student details

import java.util.Scanner;

public class GetStudentDetails

{

public static void main(String args[])

{

String name;

int roll, math, phy, eng;

Scanner SC=new Scanner(System.in);

System.out.print("Enter Name: ");

name=SC.nextLine();

System.out.print("Enter Roll Number: ");

roll=SC.nextInt();

System.out.print("Enter marks in Maths, Physics and English: ");

math=SC.nextInt();

phy=SC.nextInt();

eng=SC.nextInt();

int total=math+eng+phy;

float perc=(float)total/300*100;

System.out.println("Roll Number:" + roll +"\tName: "+name);

System.out.println("Marks (Maths, Physics, English): " +math+","+phy+","+eng);

System.out.println("Total: "+total +"\tPercentage: "+perc);

}

}

Answered by zulqarnainQuadri
1

Answer:

(JDBC) Java Database Connectivity

Explanation:

JDBC makes it possible to do establish a connection with a data source, send queries and update statements, and process the results.

JDBC Driver is a set of classes that...implement the JDBC interfaces to process JDBC calls and return result sets to a Java application. The database (or data store) stores the data retrieved by the application using....the JDBC Driver.

Similar questions