c++ questions

Description

Having Trouble Meeting Your Deadline?

Get your assignment on c++ questions  completed on time. avoid delay and – ORDER NOW

1. Using vectors or arrays, write a function named word_rev() that reverse any given word.

2. Write a program that will:

  • Ask the user to enter a word.
  • Save the entry as word_entered.
  • Call word_rev on the entry
  • Display the reversed entry (word_entered)

3. Write a function named prime() that determine whether or not a given number n (greater than

one) is prime. The algorithm:

  • If n is even then n is not a prime number except n = 2
  • For all odd numbers less or equal to the square root of n, if any of them divide n, then

n is not prime

4. Write a program that:

  • Asks the user to enter an integer
  • Saves the entry as var
  • Calls the function prime() on the entry
  • Displays whether or not the entry is prime

5. Write a function named eratos() that find all the prime number less than a given number, its

argument n

6. Write a program that:

  • Asks the user to enter an integer
  • Saves the entry as bound
  • Passes bound onto eratos()
  • Displays all the prime numbers less or equal to bound
Explanation & Answer

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Order Now and we will direct you to our Order Page at Litessays. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Similar Posts