Results 1 to 2 of 2
I have files that collect information like:
Monday.txt
xxx student a
xxx student b
xxx student b
xxx student b
xxx student c
xxx student c
xxx student c
Friday.txt
...
- 01-13-2012 #1Just Joined!
- Join Date
- Jan 2012
- Posts
- 1
Help Me Please
I have files that collect information like:
Monday.txt
xxx student a
xxx student b
xxx student b
xxx student b
xxx student c
xxx student c
xxx student c
Friday.txt
xxx student a
xxx student a
xxx student a
xxx student b
xxx student b
xxx student c
xxx student c
xxx student c
xxx student c
I want to create script to count the student and display like:
1. ask the day form user
Enter day:
2. If user input Monday the result is:
Student name: student a Total :1
Student name: student b Total : 3
Student name: student c Total : 3
Total : 7
3. And if user enter Friday, the result is:
Student name: student a Total :3
Student name: student b Total : 2
Student name: student c Total : 4
Total : 9
4. also, can ask like:
Do Yo want to view other day? (y/n)
y= return to program
n= exit
Who can I do?
Thank you very much,
- 01-13-2012 #2
hi and welcome
Sorry, but homework questions are not allowed by the forum rules.You must always face the curtain with a bow.


1Likes
