Answer to Question #278958 in Java | JSP | JSF for Letso

Question #278958

Draw a flowchart and write pseudo code for a program that allows a student to enter his/her name, student number, sex arid age. If the age is below 18 years, the program should reject the student, otherwise the student is allocated class LBIS12O1 if they are male, else they are allocated to LBIS12O2. The program prints the details of the student and informs him/her which class they are allocated. Write the pseudocode for the same problem

1
Expert's answer
2021-12-13T00:02:20-0500


name = readString
number = readString
sex = readString
age = readInt
IF age < 18 THEN
    print("Refjected")
ELSE
    IF sex == "M" THEN
        class = "LBIS1201"
    ELSE
        class = "LBIS1202"
    ENDIF
    print(name + " " + number + " " + sex + " " + age + " " + class)
ENDIF

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog