Question: Write pseudo code only. (15/15) You must use Boolean operators to recieve credit. Determine the karate rank using a single if ... else if ..

 Write pseudo code only. (15/15) You must use Boolean operators to

Write pseudo code only. (15/15) You must use Boolean operators to recieve credit. Determine the karate rank using a single if ... else if .. else statement with Boolean AND operators. 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 AND has attended more than 500 classes, set the rank to "brown belt". Else if the karate student knows more than 10 forms AND has attended more than 200 classes, set the rank to "green beit". Else if the karate student knows more than 5 forms AND the has attended more than 50 classes, set the rank to "blue belt". Otherwise, set the rank to "white belt. e. Print out the rank f. Write a second condition if statement if the karate student knows less than or equal to 10 forms or has attended more than 200 classes, print "Attend Bo Kata Seminar" Use a Boolean OR operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!