Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 LeapYearCalculatorStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started