4. Using nested if, write a program that prompts the user to input choice of University, program code and grade of particular course. University Code Program Offered code & examine course code UiTM (i) Computing (c) – CSC099, Engineering (e) – PHY065 USM (s) Mathematics (m) – MAT064, Pure Chemistry (p) – CHM062 Table 4 The program should display qualification status of user, user is qualified for the program if grade for the particular course is A or B. Example output should be as follow, print out all the possible output:
the output should be : enter the university code : <UiTM-i, USM -s > >> i enter the program <computing - c, engineering -e > >> e enter the grade that you get in physic >> A *** you're qualified for this program***
Why not show us how far you've gotten? Or a more precise pseudo-code description of the task? Example: collect University code valid? no: collect again yes: collect program code valid? no: collect again ..... I suggest the pseudo code because I almost always start a new program with the pseudo code (as comments) and the write the C or C++ or shell script from there. The comments are also nearly the best sort of comments: they say *what* the code is doing, not *how* it's being done.
Join our real-time social learning platform and learn together with your friends!