Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 below. a) Based on the given problem and requirements above, present your possible design and system flow of the program using a pseudocode. [5 marks] Enter number 6:4 Enter number 7: 8 Enter number 8: 18 Enter number 9: 21 Enter number 10:3 b) Write a complete program using the language based on your design in Question (a). [10 marks] Sample of output: How many number would you like to enter (maximum 50 numbers only): 10 Enter number 1:2 You entered numbers in reverse = 3 21 18 8 445632 The sum of all odd numbers = 32 The sum of all even numbers = 42 Enter number 2:3 End of Program... Enter number 3: 6 Enter number 4: 5 Enter number 5: 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago

Question

Organizing Your Speech Points

Answered: 1 week ago