Question: I need to use a while loop to prompt the user to either rerun the program or to exit the program. import java.util.*: public class

I need to use a while loop to prompt the user to either rerun the program or to exit the program.

I need to use a while loop to prompt the user to

import java.util.*: public class register public static void main(Stringl1 args) ( Scanner in - new Scanner (System.in): String name: System.out.print("Enter first and last name: " namein.nextLine) System.out . printf("Has 's completed Calculus ? Enter TRUE or FALSE: ",name); boolean completedCalculusl -in.nextBoolean() if (completedCalculusl) System.out.printf("Enter ts\'s grade for calculus : int grade - in.nextInt) ",name); if (grade>-70) System.out.printf("%s can register for Calculus2 .",name); else if (gradec70) System.out.printf ("s cannot register for Calculus 2 due to non-passing grade.",name): else if (completedCalculusl) System. out.printf ("is has not taken Calculus 1; Ineligible to take Calculus 2!",name System.out.printf("SnDo you want to check another student's eligibility? Enter or

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!