Answered step by step
Verified Expert Solution
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.
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
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