Asked by victor
2.Write only the select case statements for
the following problem statement.
The marital code of a person is stored in
the variable called marCode. Display the
corresponding description on the screen.
Provide for an incorrect marital code
Marital Code
S Single
D Divorced
M Married
W Widowed
I Incorrect
the following problem statement.
The marital code of a person is stored in
the variable called marCode. Display the
corresponding description on the screen.
Provide for an incorrect marital code
Marital Code
S Single
D Divorced
M Married
W Widowed
I Incorrect
Answers
Answered by
Steve
print
select code {
S: Single
D: Divorced
M: Married
W: Widowed
else: Incorrect
};
use syntax appropriate for your programming language.
select code {
S: Single
D: Divorced
M: Married
W: Widowed
else: Incorrect
};
use syntax appropriate for your programming language.
Answered by
Anonymous
if marital s=s then
Answered by
Fred
Select case marCode
case “S”
display “Single”
case “D”
display “Divorced”
case “M”
display “Married”
case “W”
display “Widowed”
case else
display ”Incorrect”
endselect
case “S”
display “Single”
case “D”
display “Divorced”
case “M”
display “Married”
case “W”
display “Widowed”
case else
display ”Incorrect”
endselect
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.