Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve in java Write a program that asks the user how many numbers will be entered and then has the user enter those numbers.

Please solve in java

Write a program that asks the user how many numbers will be entered and then has the user enter those numbers. When this is done, report to the user the position of the first 7 entered and the last 7 entered. By position we mean, for example, that if the first 7 is the 2nd number entered then its position would be 2. Turn in the following 3 outputs exactly as you see them below to demonstrate that your program works in each case.

image text in transcribed

Turn in your source code followed by 3 outputs, one that matches each of the three sample screen outputs given above.

Sample screen output 1: How many numbers will be entered? 8 Enter num: 5 Enter num: 7 Enter num: 6 Enter num: 7 Enter num: 7 Enter num: 3 Enter num: 8 Enter num: 6 The first 7 was in position 2 The last 7 was in position5 Sample screen output 2: How many numbers will be entered? 8 Enter num: 5 Enter num Enter num: 6 Enter num Enter num: 1 Enter num Enter num: 8 Enter num: 6 The first 7 was in position 4 The last 7 was in position4 Sample screen output 3: How many numbers will be entered? 8 Enter num: 5 Enter num 1 Enter num 6 Enter num 5 Enter num: 9 Enter num 3 Enter num 8 Enter num 6 sorry, no s were entered

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Compare the advantages and disadvantages of external recruitment.

Answered: 1 week ago

Question

6. What data will she need?

Answered: 1 week ago

Question

1. How did you go about making your selection?

Answered: 1 week ago