Question: Must be a Python Q1: Write a program that determines if a customer has exceeded the credit limit on a charge account. The user should
Must be a Python
Q1: Write a program that determines if a customer has exceeded the credit limit on a charge account. The user should input the account number, the beginning balance, the total of all items charged for the month, the total of all credits applied to the account for the month, and the allowed credit limit. The program will calculate the new balance and determine whether the new balance exceeds the credit limit.
Input/output would be as follows for the sample data:
Enter account number: 6789
Enter the beginning balance 100.0
Enter charges for the month 55.0
Enter credits for the month 75.0
Enter credit limit 250.0
Balance is $80.00
Q2:
Write a program that asks the user for income and computes the income tax according to the following table.
1 percent on the first $50,000.
2 percent on the amount over $50,000 up to $75,000.
3 percent on the amount over $75,000 up to $100,000.
4 percent on the amount over $100,000 up to $250,000.
5 percent on the amount over $250,000 up to $500,000.
6 percent on the amount over $500,000.
Input/output would be as follows for the sample data:
Enter income: 100000
Income is $100,000.00
Tax is $1,750.00
Enter income: 600000
Income is $600,000.00
Tax is $26,250.00
Enter income: 500000
Income is $500,000.00
Tax is $20,250.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
