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.
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 = [url removed, login to view]();
• Use the following code to reverse the integer
string newNum = “”;
for (int l = [url removed, login to view]; 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 01
Assignment: Final Project
Due Date: See above
Date Turned in:
Program Description: You write a short description of what the program will do
When you complete the program, do the following.
1. Turn in a printout of the source code with this sheet attached to the front
2. Create a folder with the following name: FinalProject
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
9 freelance font une offre moyenne de $27 pour ce travail
Hello Sir/ Ma’am We are a group of Software Engineers having 10+ years of experience. Expert in java, C, C++ , C#. Please check our profile for reference. Thank you Relevant Skills and Experience C# ---- 10+ years P Plus
hi. i can do it Relevant Skills and Experience c# is my main language. 6 years of experience Proposed Milestones $25 USD - code
Hi there, I can do this simple C# assignment within 2 [login to view URL] me a message with the assignment specification if you are interested. Relevant Skills and Experience C# algorithms Proposed Milestones $25 USD - complet Plus
Hi. -- Best quality -- Affordable Price-- I checked your job in depth and i can add value and complete your project professionally and in a timely manner with my 7+ years of c# development. Relevant Skills and Experi Plus
I have great proficiency in C#. I will create perfect solution for you. I will also do the extra credit. You will have no complaints with my work. I will deliver this within the day Relevant Skills and Experience C# Plus