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.
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Tutoracer is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download