Hello,
I need help with this ECE 2310 coding problem. Please show all the correct parts to all letter parts to thisproblem. I will provide the Problem that I want you to solve in the first image. please follow all of the directions for this problem.
What I want for you is to show a C# code in visual studio or use .NET Fiddle C# Complier , for this problem and explain how it works and how it produces the answer based on the problem.
Please provide a PICTURE or SCREENSHOT of the OUTPUT to make sure that the C# Code Program works and provide the code itself so I can see if it works or not.
Please be neat and provide detailed written explanations on how this C# code works, this is very important to me (since I want to understand how this problem works), and I promise that I will rate you. Thank you very much.
Prime number calculation (26%) 2. (26%) A prime integer or prime number is a positive integer n> 1 that has 1 and itself as the only factors or divisors. For example 2, 3, 5, ..., 97, 101, etc. are prime numbers and 4, 6, 8, 9, etc. are not prime numbers (4 has 3 factors 1, 2, and 4). (a) (8%) Write a C# method (function) primeNumber that checks if a positive integer k you input is a prime number. (b) (6%) Write C# program (with Main method) that uses your primeNumber method, to print out all the prime numbers from 2 until 200 with 8 prime numbers printed in a row (note 200 is NOT a prime number, so this means until the largest prime number <200). Enhance your program to also print out how many prime numbers are <200. (c) (12%) Generalize your program of part (b) to take an integer n> 1 from you that calculates all the prime numbers from 2 up to n. (so n = 200 as in part (b) is a particular case of part (c)) Since there may be too many prime numbers printed when n is big, customize your program this way: When n < 500, print prime numbers starting from 2, until n, 8 in a row. Also, print out the total number of such prime numbers When n >= 500, print out just the total number of such prime numbers (but do NOT print out prime numbers 8 in a row). Test your program with three integers, n = 400, n=1,000, and a third integer of your choice.
Hello, I need help with this ECE 2310 coding problem. Please show all the correct parts to all letter parts to thisprobl
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am