Question: Codio - LAB - 7 . 1 . 2 Friends 2 Assignment name: ArrayList en Buffett's P . . . Countdown to FO . .
Codio LAB Friends
Assignment name: ArrayList
en Buffett's P
Countdown to FO
Crude Oil Prices T
it ArrayList Topic ArrayList Methods
FirstAndLast
Write a program that will prompt the user for a list of decimal numbers. The program should stop prompting for and entering numbers when the user enters After the user has entered all of their numbers, the program should print how many numbers were entered not counting the the first number and the last number. The numbers entered may be different, however, format and label the output just as you see in this sample run:
Enter a decimal number to quit:
Enter a decimal number to quit:
Enter a decimal number to quit:
Enter a decimal number to quit:
Enter a decimal number to quit:
Enter a decimal number to quit:
Enter a decimal number to quit:
There are numbers in your list.
First number is:
Last number is:
USE JAVA I ONLY KNOW FOR LOOPS, ENHANCED FOR LOOPS, WHILE LOOPS, AND IF LOOPS. KEEP IT SIMPLE Click on Check Itl to test your program.
ark as Completed
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
