C++ basic work

huojian
ProgrammingAssignment5.pdf

Object-Oriented Programming I Fall 2018 CIS 3100

Programming Assignment 5 For this assignment you are implement a program to compute the (population) variance up to 100 values. The program should begin by asking the user how many values are to be processed. If the user inputs a value that is less than 0 or greater than 100, the program should prompt the user to input a valid value (in the range of 0 to 100), and continue to do so until the user inputs a valid value. Once the user has input a valid value, say n, then the program should prompt the user n times to input a value. Once all of the values has been input, the program should output the list of values in ascending order, followed the variance of the input values. Your code will be graded not only on the correctness of the results, but also to the extent that it adheres to the programming guidelines that I have distributed, as well as the clarity (i.e., user-friendliness) of the program’s output. For this assignment, you may not use any of the functions available in C++. Also, iostream is the only header file that you can use. I will provide you with the data that is to be used for your assignment submission. However, you should create your own data sets for testing your code. Due Date: November 29, 2018

  • Programming Assignment 5