Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5 CSE CSE GDP Tele A Ass x CSECSE CY GE pQLScFNmlyeh96A62IMGeOsKpZg32XrMzate K90468tp96K220Q/formResponse You are required to design and develop a C program that can
5 CSE CSE GDP Tele A Ass x CSECSE CY GE pQLScFNmlyeh96A62IMGeOsKpZg32XrMzate K90468tp96K220Q/formResponse You are required to design and develop a C program that can store up to 50 integers, print them in reverse and sum all the odd and even numbers separately. The program should ask user to first key in how many integers he/she would like to enter. Using a repetition structure (use a for loop), prompt user to enter the desired amount of integers into an array, then total up odd and even numbers separately. The program should then use another repetition structure to print user's input in reverse. Finally, print out the total of odd and even integers at the end. The example output is shown in Figure 5. Sample Output How many number would you like to enter (maximum 50 number only): 10 Enter number 1: 2 Enter number 2: 3 Enter number 3: 6 Enter number 4: 5 Enter number 5: 4 Enter number 6: 4 Enter number 7: 8 Enter number 8: 18 Enter number 9: 21 Enter number 10: 3 You entered numbers in reverse = 3 21 18 844 56 32 The sum of all odd numbers - 32 The sum of all even numbers - 42 End of Program Figures o acer GDI Tele Bass X CSE CSE CY G ms/d/e/1FAIpQLScFNmlyeh96A62 MGeOsKpZg32XrMzate 90Y63p962200/formResponse Figure 5 5 points a) Based on the given problem and requirements above, present your possible design and system flow of the program using a flowchart. You can draw, take a picture and upload. If you failed to do so, please email your image with complete (NAME, ID and SECTION) to limcoolstudents gemail.com Add File b) Write the program using the C language based on your design in Question 1 (a) above. 10 pont Your answer Back Next Page 11 of 12 et passwords through Google Forme This content is owned not endorsed by Google PTS acer
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started