Write a program using a function and a series of if…else statements. The user sh
ID: 3618823 • Letter: W
Question
- Write a program using a function and a series ofif…else statements. The user should be prompted toenter a number in main. The function is called and thenumber entered is passed to the function. This function parameterwill then be used in a series of if…else statementsto discover and print out the number word within the function (forexample, 1=one, 2=two, 3=three, etc.).
You entered the number one.
You may choose to limit the number entered by the user to aparticular range. Be sure to prompt the user with this range, soyou can deal with correct and incorrect numbers entered. Enter a number:1
You entered the number one.
Explanation / Answer
#include using namespace std; void convertWord(int num) { if(num==1) coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.