Skip to content

hell0w0orld/Assignment_02

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Assignment_02_20191018

The second OOP assignment on Oct 18, 2019

Deadline is 12:00PM Oct 25, 2019


Requirements

  1. C-style input/output is not allowed!
  2. Built-in array is not allowed!
  3. Commenting code is necessary!

P245

7.13 (Duplicate Elimination with array) Use a one-dimensional array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, validate it and store it in the array only if it isn’t a duplicate of a number already read. After reading all the values, display only the unique values that the user entered. Provide for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.

7.14 (Duplicate Elimination with vector) Reimplement Exercise 7.13 using a vector. Begin with an empty vector and use its push_back function to add each unique value to the vector.

About

The second Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%