Question: A + Computer Science LAST FIRST Lab Goal : This lab was designed to teach you more about if statements, if else statements, and if
A Computer Science
LAST FIRST
Lab Goal : This lab was designed to teach you more about if statements, if else statements, and if else if else statements. You will use Strings as well.
Lab Description : If the first letter is bigger than the last, return "aplus". If the last letter is bigger than the first, return "compsci". If the first and last letters are the same, return "apluscompsci".
You will need to use compareTo for this lab to compare the first and last letters of the string.
Sample Data :
chickenisa
trog
theapluscompsci
aa
racecar
mommy
dogsarebadboy
Files Needed :: LastFirst. java LastFirstRunner java
Sample Output :
aplus
compsci
aplus
apluscompsci
apluscompsci
compsci
apluscompsci
compsci
C A Computer Science if else if
wwwapluscompsci.com
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
