Help me with the project

Part 1: In your program, write a method that accepts a positive integer and returns true if the number is a prime number and false otherwise. Note that 2 is the only even prime number. An odd integer is prime if it not divisible by any odd integer less than or equal to the square root of the number. Part2: A prime number whose reversal is also a prime number is called emirp. For example, 11, 13, 79 and 359 are emirps. Write a program that outputs to a ListBox the first 100 emirps. Your program must contain the method from Part 1 that returns true if a number is prime; false otherwise and another method that returns the reversal of a positive number. You can reverse the integer in the following way: Convert the integer into a stringUse the following code to reverse the integer value = num.ToString(); string newNum = “”; for (int l = value.Length; l > 0; l–) newNum = newNum + value[l-1]; Also, your program should have a TextBox that will accept a positive integer from the user and then display whether the positive integer if an emirp. Add the following comments to the beginning of the program. Name: Your Name Class and Section: CS 165 02 Program Description: You write a short description of what the program will do Extra Credit: 10 Points In addition to using a ListBox for the output of the 100 emirps, also write these values to an output file. Add this as a method. You should use the values from the ListBox as output to the file.
project.docx

Unformatted Attachment Preview

Don't use plagiarized sources. Get Your Custom Essay on
Help me with the project
Just from $13/Page
Order Essay

Part 1:
In your program, write a method that accepts a positive integer and returns true if the number is a
prime number and false otherwise. Note that 2 is the only even prime number. An odd integer is prime
if it not divisible by any odd integer less than or equal to the square root of the number.
Part2:
A prime number whose reversal is also a prime number is called emirp. For example, 11, 13, 79 and 359
are emirps. Write a program that outputs to a ListBox the first 100 emirps. Your program must contain
the method from Part 1 that returns true if a number is prime; false otherwise and another method that
returns the reversal of a positive number. You can reverse the integer in the following way:
• Convert the integer into a string
value = num.ToString();
• Use the following code to reverse the integer
string newNum = “”;
for (int l = value.Length; l > 0; l–)
newNum = newNum + value[l-1];
Also, your program should have a TextBox that will accept a positive integer from the user and then
display whether the positive integer if an emirp.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section:
CS 165 02
Program Description: You write a short description of what the program will do
Extra Credit: 10 Points
In addition to using a ListBox for the output of the 100 emirps, also write these values to an output file.
Add this as a method. You should use the values from the ListBox as output to the file.

Purchase answer to see full
attachment

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 15% with the discount code ESSAYHELP