Professional Documents
Culture Documents
StudentName: UID:
Branch: Section/Group:
Semester: Date ofPerformance:
Subject Name: Subject Code:
3. Algorithm/Flowchart:
fromuser
formula(sqrt(b*b-4*a*c))
Check:-
Remember a cannot
bezero
import java.util.Scanner;
double a = sc.nextDouble();
if(a==0){
}
else{
double b = sc.nextDouble();
double c = sc.nextDouble();
double r1,r2;
if(determinant>0){
r1 = (-b + sqroot)/(2*a);
r2 = (-b - sqroot)/(2*a);
else if(determinant==0){
r1=r2 = -b/(2*a);
else{
1. Use of ScannerClass
2. Java Syntax
3. Use of ConditionalStatement