Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me understand how to do this? My last programming professor was not very interactive with us and didn't provide many lectures so

Can someone help me understand how to do this? My last programming professor was not very interactive with us and didn't provide many lectures so I am very behind in programming II.

image text in transcribed

image text in transcribed

Complete the application funWithCommandParameters to calculates the product of a series of integers that are passed to main() using command line parameters. Also output the high number, low number, odd number count, even number count, and the sum and average of the integers passed as parameters. Be sure to use modular programming techniques ( functions ) to determine things like isOdd, isEven. You should also use Test your application with several 'runs', using differing numbers and parameter counts. test cases: handle a parameter of zero handle an empty list of parameters handle floating points handle positive and negative integers note: you can assume that all parameters are valid integers ( we'll correctly handle invalid parameters later in the semester) Sample Runs ./funWithCommandParameters 12 product: 2, highest: 2, lowest: 1, odd count: 1, even count: 1, sum of values: 3, count of values: 2, avg of values: 1.5 ./funWithCommandParameters 10 20 30 0 5 15 25 product: 0, highest: 30, lowest: 0, odd count: 3, even count: 4, sum of values: 105, count of values: 7, avg of values: 15 ./funWith Command Parameters product: 0, highest: 0, lowest: 0, odd count: 0, even count: 0, sum of values: 0, count of values: 0, avg of values: 0 #include using namespace std; int main(int argc, char** argv) { int thisValue; for (int i = 1; i

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

What are the advantages and disadvantages of a sole proprietorship?

Answered: 1 week ago