Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

Open the NetBeans IDE and create a new project named MyGradeLoops.java. Your program should do the following:

declare and initialize a char variable for the student grade;
use a for loop that has five iterations;
use the System.out.println() method in the for loop to request a grade from the student;
use the System.in.read() method to receive student grades in the for loop;
use the System.out.println() method to tell the student to try again if they enter anything other than one letter for a grade;
use the System.out.println() method after the for loop to output a message for the student; and,
compile and run your program.