You will write a Java program (using if statement) for a student information system. You will first ask the user whether he/she has any failed courses. If the user replies as Yes, then you should redirect him/her to the advisor. Any other answer should result in an error message.
(I am directing you to your advisor. Please choose which course you would like to register.)
If the user replies as No, then you should list the courses he/she can take this semester. There are 5 possible courses. You should print the related output according to the answer of the user.
1) You are registered for Fundamentals of Programming 1
2) You are registered for Fundamentals of Programming 2
3) You are registered for Electrical Circuits Laboratory
4) You are registered for Mathematical Modeling and Optimization 1
5) You are registered for Structural Analysis.
Sample Outputs:
Do you have any failed courses? No
1) CMPE 112
2) CMPE 211
3) EE203
4) IE 232
5) CE 311
Choose a course to register: 2
You are registered for Fundamentals of Programming 2
Do you have any failed courses? Yes
I am directing you to your advisor.
Do you have any failed courses? Dunno
Invalid answer!