program that requests integer numbers solution


Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment


5/5 - (1 vote)

Program Specification: Write a program that requests integer numbers from the user
repetitively though the keyboard (using printf and scanf) until the user enters 0 when
she/he wants to quit. Test each entry for whether the number entered is even or odd. Create
two variables that accumulate the numbers entered, one for the even numbers and the other
for the odd numbers. The program should also ask the name of the user and save it to a string
variable. Upon completion of the data entry process (when the user enters 0), the program
prints out the name of the user, the number and the total of the even numbers entered, and
the number and the total of the odd numbers entered. Use at least one user‐defined functions
besides main(). There is no need to save any of the individual values during the program
execution ‐ only their cumulative totals and the number of even and odd numbers (separately!)
entered. The output should be as follows: