Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

pseudocode only
image text in transcribed
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 belt". 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 t. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

Students also viewed these Databases questions