Posts Tagged ‘Array’
Read two text files into arrays and query the arrays for boy and girl names
LANGUAGE: C++ CHALLENGE: Read in boynames.txt and girlnames.txt into separate arrays and search by the user entered boy name or girl name. The most popular names are listed first and the least popular names are listed last. write a program that allows the user to input a name. The program should then read from the…
Read MoreC++ Sort Array in ascending Order
LANGUAGE: C++ CHALLENGE: Write a function, sort, that accepts an array of integers , and the number of elements in the array and sorts the array in ascending order (basic sort)
Read MoreC++ Read In Array with Fewer than 50 integers, sort, print Unique numbers and there number of occurrences.
LANGUAGE: C++ CHALLENGE: C++ Write a program that reads in an array of type int. You may assume that there are fewer than 50 entries in the array. Your program determines how many entries are used. The output is to be a two-column list. the first column is a list of the distinct array elements;…
Read More