Please answer all question and specify each answer to a question.
Which pseudocode keyword would you use in each scenario?
Group of answer choices
1) Display “Hello world”
[ Choose ] WHILE INT FOR GET WRITE IF DO FOREACH PUT SWITCH PRINT INPUT X (multiplication) <-
2) Prompt the user for his/her age
[ Choose ] WHILE INT FOR GET WRITE IF DO FOREACH PUT SWITCH PRINT INPUT X (multiplication) <-
3) Set a variable to zero
[ Choose ] WHILE INT FOR GET WRITE IF DO FOREACH PUT SWITCH PRINT INPUT X (multiplication) <-
4) Convert feet to meters
[ Choose ] WHILE INT FOR GET WRITE IF DO FOREACH PUT SWITCH PRINT INPUT X (multiplication) <-
5) Choose between “Mr.” if male and “Mrs.” if female
[ Choose ] WHILE INT FOR GET WRITE IF DO FOREACH PUT SWITCH PRINT INPUT X (multiplication) <-
6) Count from 1 to 10
1)To dislplay hello word You will use PRINT keyword
since display operation is use to print the value so PRINT keyword is use for that
2)To take user innput for asking his/her age yoy want to take input from user so INPUT keyword is meant for that
3)to set the variable <- is used
4) you can use DO to Convert feet to meters
eg. DO meter<- 0.3048*feet
5)you can use IF keyword to choose between Mr and Ms eg. if(male) PRINT(Mr) if(female) PRINT(Ms)
6)to count from 1 to 10 you can use FOR or WHILE eg. for(i<-1 to 10) count++;
Get Answers For Free
Most questions answered within 1 hours.