subject

Q3write a program to sort a group of strings in alphabetical order. your program should prompt the user onhow many strings need to be sorted. this should be done in main. the max size of a string allowed is 80characters. the max number of strings allowed is 50 (you may run with 5-10 strings to show your output).then the program prompts the user to enter each string one by one - this should be done in a separatefunction defined in a separate file, called from main. then the program sorts the strings in alphabeticalorder (again done in a separate function defined in a separate file, called from main) and prints the list(again done in a separate function defined in a separate file, called from main).you may use the strcmp library function to compare strings, a simple search will be enough to beable to use it. you may use any sorting algorithm that you are comfortable with.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
question
Computers and Technology, 25.06.2019 03:10
Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)
Answers: 1
question
Computers and Technology, 25.06.2019 06:00
If an image has only 4 colors, how many bits are necessary to represent one pixel’s color?
Answers: 1
You know the right answer?
Q3write a program to sort a group of strings in alphabetical order. your program should prompt the u...
Questions
Questions on the website: 13722360