Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Python 3.6 I need the answer for question 16.10 it says to use listings 16.4 - 16.6 which is why I included them

Please use Python 3.6 I need the answer for question 16.10 it says to use listings 16.4 - 16.6 which is why I included them in the bottom..

image text in transcribedimage text in transcribed

16.10* (Execution time for prime numbers) Write a program that obtains the execution time for finding all the prime numbers less than 8,000,000, 10,000,000, 12,000,000, 14,000,000, 16,000,000, and 18,000,000 using the algorithms in Listings 16.4-16. 6. Your program should print a table like this 10000000 12000000 14000000 16000000 18000000 8000000 Listing 16.4 Listing 16.5 Listing 16.6 The programs you are doing this week will take a LONG time to run even on fast computers. To speed your development time I suggest you limit the size of the problem until you are ready to actually test the time your program takes to find the required values. For example, problem 16.10 says to test for values of 8,000,000 through 18,000,000. During the development of your program use values of 8,000 to 18,000. Only after you are satisfied that your program work correctly, you can change to the actual test values (then go out for dinner!). ere are the algorithims: 16.4 Pattern matching) Write a program that prompts the user to enter two strings and tests whether the second string is a substring in the first string (Don't use the find method in the str class.) Analyze the time complexity of your algorithm. Here is a sample run of the program:

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions