Test Case 3 Enter five names n Enter friend 1\n Fred ENTER Enter friend 2 \n Bill ENTER Enter friend 3 \n Tom ENTER Enter friend 4 \n Frank ENTER Enter friend 5 \n Elon ENTER Here are all of those...

Show the user a list of the names (with integers before each name). Allow the user to select which friend is his/her best friend. Write in java and use test case examples as a result.
Test Case 3<br>Enter five names n<br>Enter friend 1\n<br>Fred ENTER<br>Enter friend 2 \n<br>Bill ENTER<br>Enter friend 3 \n<br>Tom ENTER<br>Enter friend 4 \n<br>Frank ENTER<br>Enter friend 5 \n<br>Elon ENTER<br>Here are all of those names \n<br>Friend 1 is Fred \n<br>Friend 2 is Bill \n<br>Friend 3 is Tom \n<br>Friend 4 is Frank \n<br>Friend 5 is Elon \n<br>Which friend is your best friend? (Enter an integer) \n<br>5 ENTER<br>Elon? Yes, Elon is awesome|\n<br>

Extracted text: Test Case 3 Enter five names n Enter friend 1\n Fred ENTER Enter friend 2 \n Bill ENTER Enter friend 3 \n Tom ENTER Enter friend 4 \n Frank ENTER Enter friend 5 \n Elon ENTER Here are all of those names \n Friend 1 is Fred \n Friend 2 is Bill \n Friend 3 is Tom \n Friend 4 is Frank \n Friend 5 is Elon \n Which friend is your best friend? (Enter an integer) \n 5 ENTER Elon? Yes, Elon is awesome|\n
Test Case 1<br>Enter five names \n<br>Enter friend 1 \n<br>Fred ENTER<br>Enter friend 2 \n<br>Bill ENTER<br>Enter friend<br>\n<br>Tom ENTER<br>Enter friend 4 \n<br>Frank ENTER<br>Enter friend 5 \n<br>Elon ENTER<br>Here are all of those names \n<br>Friend 1 is Fred \n<br>Friend 2 is Bill \n<br>Friend 3 is Tom \n<br>Friend 4 is Frank \n<br>Friend 5 is Elon \n<br>Which friend is your best friend? (Enter an integer) \n<br>3 ENTER<br>Tom? Yes, Tom is awesome \n<br>Test Case 2<br>Enter five names \n<br>Enter friend 1\n<br>Fred ENTER<br>Enter friend 2 \n<br>Bill ENTER<br>Enter friend 3 \n<br>Tom ENTER<br>Enter friend 4 \n<br>Frank ENTER<br>Enter friend 5 \n<br>Elon ENTER<br>Here are all of those names \n<br>Friend 1 is Fred \n<br>Friend 2 is Bill \n<br>Friend 3 is Tom \n<br>Friend 4 is Frank \n<br>Friend 5 is Elon \n<br>Which friend is your best friend? (Enter an integer) \n<br>1 ENTER<br>Fred? Yes, Fred is awesome \n<br>

Extracted text: Test Case 1 Enter five names \n Enter friend 1 \n Fred ENTER Enter friend 2 \n Bill ENTER Enter friend \n Tom ENTER Enter friend 4 \n Frank ENTER Enter friend 5 \n Elon ENTER Here are all of those names \n Friend 1 is Fred \n Friend 2 is Bill \n Friend 3 is Tom \n Friend 4 is Frank \n Friend 5 is Elon \n Which friend is your best friend? (Enter an integer) \n 3 ENTER Tom? Yes, Tom is awesome \n Test Case 2 Enter five names \n Enter friend 1\n Fred ENTER Enter friend 2 \n Bill ENTER Enter friend 3 \n Tom ENTER Enter friend 4 \n Frank ENTER Enter friend 5 \n Elon ENTER Here are all of those names \n Friend 1 is Fred \n Friend 2 is Bill \n Friend 3 is Tom \n Friend 4 is Frank \n Friend 5 is Elon \n Which friend is your best friend? (Enter an integer) \n 1 ENTER Fred? Yes, Fred is awesome \n

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here