. In a competitive examination, there were 150 questions. One candidate got 80% correct and the other candidate 72% correct. Write a program to calculate and display the correct answers each candidate got. write a javaa program
Answers
Answered by
1
Explanation:
gcd ghua bde 9th 10th g come what is hydra?
Answered by
2
Answer:
public class KboatCompetitiveExam
{
public static void main(String args[]) {
int totalQuestions = 150;
int c1 = (int)(80 / 100.0 * totalQuestions);
int c2 = (int)(72 / 100.0 * totalQuestions);
System.out.println("Correct Answers of Candidate 1 = " + c1);
System.out.println("Correct Answers of Candidate 2 = " + c2);
}
}
Similar questions
Math,
5 hours ago
Math,
5 hours ago
Computer Science,
5 hours ago
Economy,
9 hours ago
Computer Science,
9 hours ago
Math,
8 months ago
Social Sciences,
8 months ago
English,
8 months ago