Kjj M.

asked • 04/14/24

Write a python program that lets the user enter an account number and then search's the array to see if the number is in the array.

Write a program that lets the user enter an account number and then search's the array to see if the number is in the array. 

 

8149420

5333174

3080098

6755963

9526981

4449539

9387197

5104726

2931356

4282637

1750219

6086650

3164838

2419590

4578589

9718904

6749941

2545408

 

  1. Initialize a one-dimensional array with the values above. 
  2. Use the built in sort function to sort the numbers in the array.
  3. Then use a simple search to locate the number entered by the user in the array. 
  4. If the user enters a number that is in the array, the program should display a message indicating that the account number is valid. If the user enters a number not in the array, the program should display a message indicating it is invalid.

 

Complete the flowchart using draw.io . Export it as an PDF. 


2 Answers By Expert Tutors

By:

Yang W. answered • 04/15/24

Tutor
5 (16)

Data Scientist with 7+ Years of Experience in Python & R

Dorene S. answered • 04/14/24

Tutor
0 (0)

Experienced Tutor for Computer Science and Soft Skills

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.