I am having some trouble getting this program to open so I re did it according to some notes taken from another program I found and now it won't even compile! If anyone could possibly help with this situation and maybe if I am actually doing this correct that would be great!
Purpose of program(s) - to write one that will process information for an unknown number of household utilities expenses and have the other one open and read the newly created file.
p.s. I haven't done anything to the second program so if there are any problems with that one too, please let me know! THANKS IN ADVANCE FOR EVERYONE'S HELP!!!
I haven't written the second part of the code that will display the output (I am having some trouble writing that as well) but here is how it should look.
Output
Here is the output for this assignment.
*** gas ***
sum over 12 months: $1400.23 average: $ 116.69
highest cost: $ 207.14 lowest cost: $ 52.55
*** electricity ***
sum over 12 months: $1149.10 average: $ 95.76
highest cost: $ 188.32 lowest cost: $ 50.90
*** water ***
sum over 12 months: $ 629.84 average: $ 52.49
highest cost: $ 78.33 lowest cost: $ 40.56
*** cable ***
sum over 12 months: $1310.95 average: $ 109.25
highest cost: $ 152.64 lowest cost: $ 46.93
*** phone ***
sum over 12 months: $ 957.65 average: $ 79.80
highest cost: $ 83.57 lowest cost: $ 79.15
Jikax (113) Apr 17, 2012 at 9:11am
and now it won't even compile!
Please show us the compiler errors. It makes it much easier ...
OOPS! Im sorry.........
cpp 51.error: incompatible types in assignment of 'double' to 'double [12]'
There were more but I fixed those. With this one tried redefining the array using the constant 12 instead of NUM_MON but it still does the same error. THANKS FOR THE RESPONSE TOO!!!!