subject

This project is to determine if a phone number is a prime number. if the number is a prime number, then print a message to that effect. if the number is not a prime number, then print the prime factors of the number. allow the user to continue entering numbers for as long as he or she wishes. we will discuss possible algorithms and determine the most efficient one to be used by everyone. this project is a two-part project. the first part is to write a program that will create a list of prime factors that can be stored in an arraylist. this list will be sent to a file. the second part of the project is to write a program that will read from a file the list of prime factors created in part one and use it to determine if the phone number is prime and if not what are its prime factors. (3 points) after it runs as a console program, using the gui example from my website as a guide, convert this program to a graphics program. to debug your compiled program, use system. out. println() to follow intermediate values of your variables to see where your code does not follow the algorithm.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Anew author is in the process of negotiating a contract for a new romance novel. the publisher is offering three options. in the first option, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. in the second option, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. in the third option, the author is paid 10% of the net price for the first 4,000 copies sold, and 14% of the net price for the copies sold over 4,000. the author has some idea about the number of copies that will be sold and would like to have an estimate of the royal- ties generated under each option. write a program that prompts the author to enter the net price of each copy of the novel and the estimated number of copies that will be sold. the program then outputs he royalties under each option and the best option the author could choose. (use appropriate named constants to store the special values such as royalty rates and fixed royalties.
Answers: 1
You know the right answer?
This project is to determine if a phone number is a prime number. if the number is a prime number, t...
Questions
question
Mathematics, 20.08.2019 01:40
question
Computers and Technology, 20.08.2019 01:40
question
Mathematics, 20.08.2019 01:40
question
Arts, 20.08.2019 01:40
Questions on the website: 13722363