Question: C program USE A WHILE LOOP Create a program that prints a class roll sheet in alphabetical order. The user inputs the students' first name
C program
USE A WHILE LOOP
Create a program that prints a class roll sheet in alphabetical order. The user inputs the students' first name and last names (separately!), and presses enter on the first name when done. The program prints out the roster like this...
HATFIELD, HEIDI KAISER, RUSSELL LIPSHUTZ, HOWARD PENKERT, DAWN WRIGHT, ELIZABETH
The input should work for 30 students and first name should be 15 characters. Add another array and get input for last name which will also be an array of 30 with 15 characters. Combine last and first into an third array. You may use sprintf() for this one. There are other ways.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
