Lab 11 1. Write a C++ program that reads characters from the file mess.txt and sorts them into letters, digits, and symb
Posted: Wed Apr 27, 2022 3:40 pm
Lab 11 1. Write a C++ program that reads characters from the file mess.txt and sorts them into letters, digits, and symbols, then prints them neatly into a new file sorted.txt. Assume the number of characters in the file is unknown Hints: use isdigte) to check ifc is a digit use isginhac) to check if c is an alphabet • Everything else is a symbol use the following lines to reset your itstream pointer to the beginning of the file to sleest: unseekg(0.ios-beg): . Sample Output ZOD I- sorted.txt Letters digits symbols f 2 j 8 f 7 H 4 & P. 8 DONO @* Rop de * N 2. At a gift shop, customers can choose to print their names on a small keyring. The maximum number of letters that can fit on the keyring is 12, including the space between the first and last TEL. AL