Question: Write pseudo code and create a flowchart. (30/30) You must use nested if statements to recieve credit. a. Declare an integer variable formsknown and an
Write pseudo code and create a flowchart. (30/30) You must use nested if statements to recieve credit. a. Declare an integer variable formsknown and an integer variable daysAttended. Declare a string variable rank. b. Prompt the user for the forms known. c. Prompt the user for number of days attended d. If the karate student knows more than 14 forms, set the rank to "black belt". Else if the karate student knows more than 10 forms, add a nested conditional statement if the has attended more than 500 classes, set the rank to "brown belt", else set the rank to "green belt". Else if the karate student knows more than 5 forms or add a nested conditional statement if the has attended more than 200 has attended more than 200 classes, set the rank to "orange belt", else set the rank to "blue belt". Otherwise, set the rank to "white belt. e. Print out the rank
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
