QUESTION 1
Using for loops, and vectors or arrays, write a function named word_rev() that reverse any given word. Write your own code, do not use the invert function.Then put this in 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)
What is displayed will be your entry in backward
Submit your .cpp file
QUESTION 2
Write a function named prime() that determine whether or not a given number n (greater thanone) 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 primeUse this prime function in 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
Submit .cpp file
QUESTION 3
Write a function that turns the lower case characters of a string into upper case characters (Mangoes becomes MANGOES).You can use toupper(char c) function. So your function takes in a string and prints the same string in upper case.Then use this function in a program that requests a phrase from the user and print the entire phrase in upper case.Submit your program .cpp file.
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A quality paper that is free from plagiarism. Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.
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.
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 moreEach 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 moreThanks 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 moreYour 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 moreBy 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