Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions IndexPoint.java
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@

import java.util.Scanner;

public class No3 {
public static void main(String[] args) {

double mscore, escore, qscore, fscore;

Scanner score = new Scanner (System.in);
System.out.print("Input Mid-term Score : ");
mscore = score.nextFloat();
System.out.print("Input End-term Score : ");
escore = score.nextFloat ();
System.out.print("Input Quiz Score : ");
qscore = score.nextFloat ();

fscore = (0.35 * mscore + 0.40 * escore + 0.25 * qscore);

System.out.print("Your Final Score : "+ fscore);

if (fscore>=85 && fscore<=100){
System.out.println("Excellent");
}
else if(fscore>=75 && fscore<=84){
System.out.println("Very Good");
}
else if(fscore>=65 && fscore<=74){
System.out.println("Good");
}
else if (fscore>=50 && fscore<=64){
System.out.println("Accepted");
}
else{
System.out.println("Failed");

}
}
}

25 changes: 25 additions & 0 deletions PrimeNumber.java
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@

import java.util.Scanner;

public class No1 {
public static void main(String[] args) {

int numb , n ,i, temp;
Scanner apn = new Scanner (System.in);
System.out.println("Input Number : ");
numb = apn.nextInt();
temp=0;

for (i=1; i<=numb ; i++){
if (numb % i == 0) {
temp+=1;
}
}
if (temp==2)
System.out.println("Prime Number");
else
System.out.println("Not Prime Number");



}
}
19 changes: 19 additions & 0 deletions TemperatureConvert.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

import java.util.Scanner;

public class No2 {
public static void main(String[] args) {
float c;
float r, f, k;
Scanner tempt = new Scanner (System.in);
System.out.print("Input Number of Temperature : ");
c = tempt.nextInt();

r = (c*4/5);
f = (c*9/5)+32;
k = (c+273);
System.out.println("Celcius to Fahrenheit = "+f);
System.out.println("Celcius to Reamur = "+r);
System.out.println("Celcius to Kelvin = "+k);
}
}