Hi, im new here, and im struggling with a hw assignment that asks me for:
a. The index of the first character of the last name
b. The first 3 characters of the first name
c. The last 3 characters of the last name
I think I am pretty much done with b and c, but got no luck getting a right. I would appreciate if someone let me know what should I do.
An example would be like:
Enter name: Grace Hopper
Index of the first character of the last name: 6
First 3 characters of the first name: Gra
Last 3 characters of the last name: per