Write a program using a function and a series of if…else statements. The user sh
ID: 3618816 • 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. And help answering this C== programming promblem?
- Write a program that reads data entered at run time consistingof positive integers and averages them. Assume the data entereddoes not get a preset number of data items. The last number of thedata set should be a 999. Make sure to include appropriateinput and output statements.
You entered the number one. And help answering this C== programming promblem?
- Write a program that reads data entered at run time consistingof positive integers and averages them. Assume the data entereddoes not get a preset number of data items. The last number of thedata set should be a 999. Make sure to include appropriateinput and output statements.