[Tutor] Help Writing a Bill Calculating Program
andreas at kostyrka.org
Fri Mar 28 11:48:47 CET 2008
Hint: When you want help with your homework, you should first try to
program something. Pasting the requirements to this mailing list will
not help you. Homeworks are there so that YOU learn something. Not that
you can prove that you are capable to find someone that does it for you.
Am Freitag, den 28.03.2008, 00:50 -0400 schrieb Amin Han:
> Hi, I'm currently a novice at Python, and I need help creating the
> following program...
> # Write a program that asks the user to enter a package number and the
> total number of hours spent online that month (you may assume that the
> user will enter an integer number of hours). Using the information
> below, calculate and print the user's bill for that month.
> # Modify your program so that it first asks for the total number of
> bills to generate. Your program should use a loop to calculate that
> many customer bills.
> #If possible, modify your program so that it also calculates and
> prints what the user would have spent if he had one of the other two
> packages. If the user would have saved money using a different
> package, print out an appropriate message (e.g., "Package 3 would have
> been cheaper").
> * Package 1: For $9.95 per month, up to 10 hours of access are
> provided. Each additional hour costs $2.00.
> * Package 2: For $13.95 per month, up to 20 hours of access are
> provided. Each additional hour costs $1.00.
> * Package 3: For 19.95 per month, a customer receives an unlimited
> number of hours of access.
> If you could help, that would be much appreciated. Thanks so much.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.python.org/pipermail/tutor/attachments/20080328/a5f8b30b/attachment.pgp
More information about the Tutor