Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program that will accept a number that will be the basis of the number of times a user can input different numeric values.

Create a program that will accept a number that will be the basis of the number of times a user can input different numeric values. The user will then input numbers based on the initial input. Identify the sum/total of all numbers but segregating the total for ODD and EVEN. Display the sum of both ODD and EVEN.

Sample output:

Please enter the count of input: 5

Please input No.1: 3 Please input No.2: 2 Please input No.3: 10 Please input No.4: 7 Please input No.5: 1

The total no of ODD is 3 and the sum is 11. The total no of EVEN is 2 and the sum is 12.

Using Matlab. Thanks!

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago