pls answer my questions this is very important(java) only
Answers
Q1
public class Main {
public static void main( String args[] ) {
int Math = 98;
int English = 86;
int Science = 97;
int Bengali = 80;
int HCG = 85;
int totalMarks = (Math + English + Science + Bengali + HCG);
double percentage = (totalMarks / 5);
System.out.println("Sunil received a total score of " + totalMarks + " and a percentage of " + percentage + "%");
}
}
Q2
import java.util.Scanner;
public class Main {
public static void main( String args[] ) {
double principalAmount = 5500;
Scanner scan = new Scanner(System.in);
System.out.println("Enter desired rate of interest: ");
double interestRate = scan.nextDouble();
System.out.println("Enter desired time: ");
double time = scan.nextDouble();
double calculatedInterest = ((interestRate/100)*time)*5500;
System.out.println("Interest owed after " + time + " years is $" + calculatedInterest);
}
}
Hope this helps, mark as brainliest :P