Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Object-Oriented Programming Programming Assignment The purpose of this assignment is to provide you with an opportunity to use many of the operators and control constructs

Object-Oriented Programming

Programming Assignment

The purpose of this assignment is to provide you with an opportunity to use many of the operators and control constructs that have been introduced. For the assignment you are implement a program that will process a sequence of real (i.e., floating point) number values, and then output various statistics derived from these values.

The program should begin by prompting to specify the number of values that are to be processed.. Once this value has been input, the program should prompt the user to input the specified number of values. There should be one prompt per input value.

Once the user has input the specified number of values, your program should output the following information that has been compiled by your program from the input values.

  • The number of input values
  • The sum of the input values
  • The average of the values entered
  • The largest value entered
  • The smallest value entered
  • The number of negative values
  • The number of even numbers

The program should terminate normally after outputting this information.

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

Students also viewed these Programming questions