Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 orStep 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