Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started