Programming Challenge: 23 - Prime Number List
Prompt the user for the range to be used as well as the desiredoutput file name. The range entries can be in any order (just likethat temperature table assignment from a few chapters back); startat the smaller and end at the larger. The output file should showone value per line. As always, table columns of numbers areright-justified.
Deliverables:
Program file and screen shot using input values 100 and -5. Thisshould produce a list from the primes between -5 and 100. Pleaseprovide a screen shot of that output file as well (open it inNotepad to show the contents, then do the screen shot).
23. Prime Number List Use the isprime function that you wrote in Programming Challenge 22 (isPrime func- tion) in a program that stores a list of all the prime numbers from 1 through 100 in a file.
Programming Challenge: 23 - Prime Number List Prompt the user for the range to be used as well as the desired output fi
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am