Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Must be a Python Write a program that determines if a customer has exceeded the credit limit on a charge account. The user should input

Must be a Python

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, total of all items charged for the month, 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

Q.2 Write a program that reads an integer and prints whether it is divisible by only 2 or divisible by only 3 or divisible by both or divisible by neither 2 nor 3. This is a math problem.

Input/output would be as follows for the sample data:

Enter integer: 6

Divisible by 2 and 3

Enter integer: 4

Divisible by 2

Enter integer: 9

Divisible by 3

Enter integer: 11

Not divisible by 2 or 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions