Project consists of multiple portions

Assignment Help Basic Computer Science
Reference no: EM131953484

The project consists of multiple portions. The first three parts consists of writing functions and the final part consists of sorting a list of numbers using those functions. They are as follows:

Part 1

A palindrome is a number which reads the same forward and backwards.

To illustrate:

10101,131,1331,1225221,2 are examples of palindromes

122,100,19 are examples of numbers which are not palindromes.

function that given a number determines if the number is a palindrome or not. Your function should take in a number and return "yes" or "no" depending if it's a palindrome or not.

Part 2

function that given a number determines if the number is near prime. To understand what is near prime let us first understand what a prime number is.

A number is prime is it is only divisible by 1 and itself.

2,5,13,23 are examples of prime numbers.

4,22,100,60 are examples of numbers which are not prime numbers.

Consider a number such as 49. It is not a prime number because it is divisible by 7. However, it is not divisible by anything else apart from 1, 7 and 49.

We call a number near prime if it is divisible by 1, itself and at most 2 other numbers. To illustrate:

49 is near prime as only 1,7 and 49 divide it.

22 is near prime as only 1,2,11,22 divide it.

4 is near prime as only 1,2,4 divide it.

60 is not near prime as 1,2,3,5,6,10,12,20,30,60 divide it.

17 is near prime as only 1,17 divide it

20 is not near prime as 1,2,4,5,10,20 divide it.

function which determines if a number is near prime or not.

Your function should take in a number and return "yes" or "no" depending if it's a near prime or not.

Reference no: EM131953484

Questions Cloud

Describe the mini mindset and the characteristics : Describe how, and explain why Oreo cookies are co-branded with different brands from their brand portfolio across the globe according to the video case.
Sdlc task force was composed of four subgroups : The SDLC Task Force was composed of four subgroups. Which one of the following subgroups recommended that IT centers and software assurance groups
Prompt the user for the three strings : The function is to be called from the main method. In the main method, prompt the user for the three strings.
Compose a thesis that has a debatable claim about the theme : Compose a thesis that has a persuasive, debatable claim about the significance of the message or theme in the essay or the success of the essay as a whole.
Project consists of multiple portions : The first three parts consists of writing functions and the final part consists of sorting a list of numbers using those functions. They are as follows:
Determine which expenses and income should be disclosed : FNSORG505 - Prepare financial reports to meet statutory requirements - how does management determine which expenses and income should be disclosed
Are the key issues of the law highlighted : Are the key issues of the law highlighted? Provide a rationale. What are the key changes to the implementation of the ACA over the years?
Developing secure applications : Explain why adhering to the four fundamental design principles are important considerations when developing secure applications.
Discuss where you see improvements could be made : Discuss where you see improvements could be made. Would anything change in your decision based on the proposed adaptation of Grundy's model?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Latest real gdp statistics available

According to the latest Real GDP statistics available, China is ranked the 2nd largest economy in the world and New Zealand is ranked 54th.

  What is the maximum number of nodes possible in binary tree

Indicate all of the structure properties that apply to each tree: full, perfect, complete.

  What windows server 2008 capability

The IT Department wants to install Windows Server 2008 Standard Edition on 14 new servers in its primary location. The servers have arrived, are unpacked, and have been tested.

  Describe an instance where you not have experience with gui

Describe an instance where you did not have an intuitive experience with a GUI. Recommend the key areas that could have been improved.

  Write a program that has 5 functions

Write a program that has 5 functions. Name your functions based on its functionality. Avoid naming your function, funtion1, fucntion2, etc.

  New privacy issues related to cyberspace

New Privacy Issues Related to Cyberspace

  Create at least six screens representing various states

Make the purpose small and achievable. For example, imagine an application that constantly keeps you updated on what is happening in the class, with classmates posting and commenting on your work and assignments. Be sure to explain the purpose of ..

  Explaining the advantages and disadvantages of using ldap

Search the public web using a search engine like Google or Bing to find three (3) popular sites explaining the advantages and disadvantages of using LDAP

  Health care finance environment

Assess the role of ethics and compliance in the health care finance environment.

  Explain make-buy decision for management prerogative

Make-buy decision is the significant management prerogative. You are manager of software organization which has average software development cost of $20.00/LOC.

  Describe three main types of testing

What is Camtasia and why would you use it? What is the Windows Snipping Tool and why would you use it?

  Write a single statement that performs the indicated task

Use a stream manipulator that causes the exponent in scientific notation and the letters in hexadecimal values to print in capital letters.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd