Keith B. Smith's Projects
Runs a bubble sort and a selection sort on the same array and outputs the number of swaps each one takes.
Assignment asks for program that keeps track of 5 contestant's performances across 5 events and returns the winner for each performance and the overall winner at the end.
Dynamically generates an array of integers based on user input of size. Uses pointers.
Gets a number from the user and then generates an array of that size dynamically to store user entered test scores. The program then sorts and displays these to the user using pointer notation.
Modifies 09-02 to drop the lowest test score when calculating the average.
Sorts two arrays, student names and scores according to score
Rewrite a function that uses reference variables to preform a simple math operation to use pointers instead.
This program is a modification of an existing program that accepts a dynamically sized array of donations and sorts them.
Modification from PRG-09-08 to sort in descending instead of ascending order of size.
Determines the mode of a set of user entered values.
Determines the median value from an array of user entered integer values.
Makes a copy of an array and returns an array with reversed values
This program takes an array and uses a second array to double the initial array's size and intializes the values with 0
Takes an array and resizes it by one, moves everything over by one and sets element 0 to be 0
Gets input from user and calculates average, median, and mode.
Gets string from user and returns its length
Gets a string from the user then returns it in reverse order
Gets a string from the user and returns how many words are in that string.
Counts the words in a user entered string and returns average number of letters in each word
This program gets a string from the user and capitalizes the first word of each sentence.
Gets string from user and displays a menu to count the vowels, the consonants, or both to the user (or enter another string or exit the program)
Takes first, middle, and last name from user and rearranges to last, first, middle.
Sums integer values from a string and keeps track of lowest and highest integer values
Gets string from user and returns most common character.
Takes three strings from the user and searches the first for the second and replaces the second with the third.
Displays a menu and converts a string to uppercase, lowercase, or reverses the case based on user selection and input
Gets password from user and checks that it has lowercase/uppercase letters, is at least 6 characters long, and has at least one digit.
Gets a day in mm/dd/yyyy format and converts to month day, year.
Converts a run-on sentence where each word starts with a capital letter into a regular sentence with lowercase words and spaces.
Converts a string to pig latin.