Question: please do it in JAVA only Questions [10 points] Problem #1 Write a Java program (LetterGradeCalculator.java) that uses no more than three variables. One variable
please do it in JAVA only![please do it in JAVA only Questions [10 points] Problem #1](https://s3.amazonaws.com/si.experts.images/answers/2024/08/66c4eb79e84da_36966c4eb795d444.jpg)
Questions [10 points] Problem #1 Write a Java program (LetterGradeCalculator.java) that uses no more than three variables. One variable to hold three test scores. One variable to hold their average and the third variable to hold a letter grade The program should ask the user to enter three test scores, then calculate their average. Use the grading scheme in the following table to compute a letter grade. When computing the letter grade, use the mathematical floor of the average score. The program should display the average score and the letter grade. Make sure that your code compiles and runs without errors when the following commands are used For compilation: For execution javac LetterGradeCalculator.java java LetterGradeCalculator Question A year with 366 days is called a leap year. Leap years are necessary to keep the calendar synchronized with the sun because the earth revolves around the sun once every 365.25 days. Usually, years that are divisible by 4 are leap years, for example, 1996. Unless, the year is also divisible by 100 (for example, 1900), then it is not a leap year, but years that are divisible by 400 are leap years (for example, 2000). Write a Java program (LeapYearCalculator.java) that asks the user for a year and displays a message that indicates whether this year is a leap year. Make sure that your code compiles and runs without errors when the following commands are used: For compilation: For execution: javac LeapYearCalculator.java java LeapYearCalculator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
