I'm stuck on an issue with my coding and have been having trouble trying to figure it out. I'm hoping that someone can help me or point me into the right direction.
So this is my problem with my program:
I'm writing a program for class where we have to list the names of our "customers" and state how many items they have checked out. One of the things that needs to be done is that there needs to be a function to fix the string for the customer names and another to count how many customers (lines of input). The input data will come from a file containing the data, and each line will represent a customer and the number of items they have checked (ex- lastName,firstName #).
I've written my code so that it capitalizes the first letter in the string (which is the first letter of the last name), but I'm having trouble figuring out how to also make it format the first letter of the first name (first letter after the comma, and no space inbetween names). In addition to that, I'm also having trouble with getting the count for the lines of input correct (I get some ridiculous number like 4201296 or something like that for only 8-9 lines of input when tested).
Any help is greatly appreciated! Thank you in advance!