Please up vote ,comment if any query . Thanks for Question .Be safe .
Note : check attached image for output and indentation .code compiled and tested in python3 spyder ide.
Program :
#main program execution starts here
if __name__=="__main__":
package = input("Enter package (A,B,C,D:
")#prompt package
package=package.upper() #convert into upper case
package
hour = int(input("Enter hours used : ")) #prompt
and convert into integer
choice = input("Are you a non-profit
organization?(y/n) : ") #get y or n choice
if(package[0]=='A'): #if package is A
totalPay=0.0
if(hour>10): #if hour
greater than 10
extraHour=hour-10 #get extra hour
totalPay=(12.95)+(4*extraHour) #calculate
else:
totalPay=12.95 #if less than 10 total pay is 12.95
if(choice.lower()[0]=='y'): #if non profit org than get 20%
discount
totalPay=totalPay-(totalPay*20.0/100.0)
#print float value till
2 decimal point
print("The service
charge is: $%.2f"%totalPay)
#same goes for package
b
elif(package[0]=='B'):
totalPay=0.0
if(hour>20):
extraHour=hour-20
totalPay=14.95+(2*extraHour)
else:
totalPay=14.95
if(choice.lower()[0]=='y'):
totalPay=totalPay-(totalPay*20.0/100.0)
print("The service
charge is: $%.2f"%totalPay)
elif(package[0]=='C'):
totalPay=0.0
if(hour>30):
extraHour=hour-30
totalPay=20.0+(1*extraHour)
else:
totalPay=20.0
if(choice.lower()[0]=='y'):
totalPay=totalPay-(totalPay*20.0/100.0)
print("The service
charge is: $%.2f"%totalPay)
#package D get unlimited
access
elif(package[0]=='D'):
totalPay=35.95
if(choice.lower()[0]=='y'):
totalPay=totalPay-(totalPay*20.0/100.0)
print("The service
charge is: $%.2f"%totalPay)
else:#print invalid input
print("Invalid
Input.")
Output :
Program :
Please up vote ,comment if any query .
An Internet service provider offers four subscription packages to its customers, plus a discount for nonprofit...
An Internet service provider has three different subscription packages for its customers: Package A: For $15 per month with 50 hours of access provided. Additional hours are $2.00 per hour over 50 hours. Assume usage is recorded in one-hour increments. Package B: For $20 per month with 100 hours of access provided. Additional hours are $1.50 per hour over 100 hours. Package C: For $25 per month with 150 hours access is provided. Additional hours are $1.00 per hour...
write in java and you must use methods.... Part I Internet Service Provider An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill....
Problem: Mobile Service Provider A mobile service provider has three different subscription packages for its customers: • Package A: For $50 per month, 5 GB data are provided. Additional data is $15 per GB. • Package B: For $65 per month, 10 data are provided. Additional data is $10 per GB. • Package C: For $75 per month unlimited data provided. Text messaging and voice services are included in all of the company's data packages. The Mobile Service Company offers...
Package A = $9.95 per month 10 hrs access provided. Additional hrs are $2 per hour.Package B= $13.95 per month 20 hrs access provided. Additional hrs are $1 per hour.Package C = $19.95 per month unlimited access provided.Write a program that calculates a customer's monthly bill to display the letter of the packaged purchased and the number of hours used. Finally display the totalcharges.
Part 1: A mobile phone service provider has three different data plans for its customers: Package A: For $39.99 per month 4 gigabytes are provided. Additional data costs $10 per gigabyte. Package B: For $59.99 per month, 8 gigabytes are provided. Additional data costs $5 per gigabyte. Package C: For $69.99 per month, unlimited data is provided. Write a program that calculates a customer's monthly bill. It should ask which package the customer has purchased and how many gigabytes were...
write in C++ Problem 1: Mobile Service Provider A cell phone service provider has three different subscription packages for its customers. Package A: For $39.99 per month 450 minutes are provided. Additional minutes are $0.45 per minute. Package B: For $59.99 per month 900 minutes are provided. Additional minutes are $0.40 per minute. Package C: For $69.99 per month unlimited minutes provided. Write a program that calculates a customer’s monthly bill. It should ask which package the customer has purchased...
Limited Resource Decisions Luxury Auto Care Company offers three different service packages (A, B, and C) to its customers. These packages vary from a complete detailing of the automobile (wash, wax, carpet shampoo, etc.) to a simple hand wash. A limitation of 120 labor hours per week prevents Luxury from meeting the demand for its services. Information for the three service packages is as follows: A B C Unit selling price $100 $80 $50 Unit variable costs (60) (35) (25)...
Java Programming Problem description with its major requirements labeled from A to I. A mobile phone service provider has three different subscription packages for its customers: Package A: For $39.99 per month 450 minutes are provided. Additional minutes are $0.45 per minute. Package B: For $59.99 per month 900 minutes are provided. Additional minutes are $0.40 per minute. Package C: For $69.99 per month unlimited minutes are provided. Design a class MobileCharges that calculates a customer’s monthly bill. It should...
In PYTHON code: Examples of output are as follows: If the user entered Package A and 30 GB of data, then you should get the following output: Mobile Service Provider Enter your mobile phone package (A, B or C): A How many gigabytes data did you use? 30 Your total cost for Package A is 299.99 If you had chosen Package C you would have saved $ 230.00 If you had chosen Package B you would have saved $ 130.00...