[XoL]
2013-09-09 09:50:26
So I have this assignment that I thought would work by now, but I still haven't been able to get input and output working correctly. I need to be able to input a file and have it create a new file and output the results. Here is my code, below are an example of one input and one output
input
Output
This is due in about two hours, any help would REALLY be appreciated right now.
I keep getting "usage: input_file_name output_file_name"
Solved Thanks!
input
Hong Kong Phooey, number one super
guy. Hong Kong Phooey, quicker than
the human eye.
He's got style, a groovy style, and
a car that just won't stop.
When the going gets tough, he's
really rough, with a Hong Kong
Phooey chop (Hi-Ya!).
Hong Kong Phooey, number one super
guy. Hong Kong Phooey, quicker than
the human eye. Hong Kong Phooey,
he's fan-riffic!Output
A:13
B:2
C:5
D:1
E:29
F:3
G:21
H:29
I:7
J:1
K:8
L:4
M:4
N:25
O:35
P:10
Q:2
R:11
S:10
T:16
U:13
V:1
W:3
X:0
Y:15
Z:0
The letter with the highest frequency is O, and its frequency is 35This is due in about two hours, any help would REALLY be appreciated right now.
I keep getting "usage: input_file_name output_file_name"