subject
English, 28.04.2021 04:00 edog32

(Wattan Corporation) is an Internet service provider that charges customers a flat rate of $7.99 for up to 10 hours of connection time. Additional hours or partial hours are charged at $1.99 each.
Write a function charges that computes the total charge for a customer based on the number of hours of
connection time used in a month. The function should also calculate the average cost per hour of the time
used (rounded to the nearest 0.01), so use two output parameters to send back these results.
You should write a second function
round_money that takes a real number as an input argument and returns as the function value the number
rounded to two decimal places. Write a main function that takes data from an input file usage. txt and
produces an output file charges. txt. The data file format is as follows:
Line 1: current month and year as two integers
Other lines: customer number (a five-digit number) and number of hours used
Here is a sample data file and the corresponding output file:
Data file usage. txt
10 2009
15362 4.2
42768 11.1
11111 9.9
Output file charges. txt
Charges for 10/2009
15362 4.2 7.99 1.90
42768 11.1 10.18 0.92
11111 9.9 7.99 0.81

ansver
Answers: 2

Another question on English

question
English, 21.06.2019 19:30
Write two paragraphs describing how your chosen theme relates to the characterization and setting in "the yellow wallpaper." one paragraph should focus on characterization, and the other should focus on setting. back up your ideas in each paragraph by summarizing the story in a way that emphasizes the most important details.
Answers: 3
question
English, 21.06.2019 22:00
Which statement best paraphrases these sentences from the text
Answers: 1
question
English, 22.06.2019 08:00
Why do you think both wiesel and solzhenitsyn speak of the importance of telling the truth?
Answers: 3
question
English, 22.06.2019 09:30
Which is one of the reasons that swift gives for his proposal? a.) the threat of harvesting babies would engourage stronger discipline among the young b.) thereis a famine inthe land, nd the children are plentiful c.) the meat of the irish infandts goes well with many dofferent vegetables d.) children would become valuable property
Answers: 2
You know the right answer?
(Wattan Corporation) is an Internet service provider that charges customers a flat rate of $7.99 for...
Questions
question
History, 02.07.2019 03:00
Questions on the website: 13722367