Question: Please solve using python programming 1.Credit Card PaymentWrite a program to calculate the balance and minimum payment for a credit card statement. See Fig. 4.29.

Please solve using python programming

1.Credit Card PaymentWrite a program to calculate the balance and minimum payment for a credit card statement. See Fig. 4.29. The finance charge is 1.5% of the old balance. If the new balance is $20 or less, the minimum payment should be the entire new balance. Otherwise, the minimum payment should be $20 plus 10% of the amount of the new balance above $20. The main function should call three functionsone (multi-valued) for input, one (multi-valued) to calculate the new balance and minimum payment, and one for output.

Enter old balance: 200 Enter charges for month: 150 Enter credits: 100 New balance: $253.00. Minimum payment: $43.30

FIGURE 4.29 Possible outcome

2. EarningsWrite a program to determine a persons weekly pay, where he or she receives time-and-a-half for overtime work beyond 40 hours. See Fig. 4.31. The main function should call three functionsone (multi-valued) for input, one to calculate the value, and one for output.

Enter hours worked: 42 Enter hourly pay: 10.00 Weeks pay: $430.00

FIGURE 4.31 Possible outcome

Use the following list of tuples, where each tuple contains the name, land area in square miles, and population in millions of a New England state.

NE = [(Maine, 30840, 1.329), (Vermont, 9217, .626), (New Hampshire, 8953, 1.321),

(Massachusetts, 7800, 6.646), (Connecticut, 4842, 3.59), (Rhode Island, 1044, 1.05)]

3. New England StatesWrite a program that displays the names of the states in the list NE in ascending order by population density. See Fig. 4.19.

Sorted by population density in ascending order: Maine Vermont New Hampshire Connecticut Massachusetts Rhode Island

FIGURE 4.19 Outcome

Use the following list: numbers = [865, 1169, 1208, 1243, 329].

4. NumbersWrite a program that displays the values in the list numbers in ascending order sorted by their largest prime factor. Consult the flowchart in Fig. 3.30 of Section 3.3. See Fig. 4.21

Sorted by largest prime factor: [290, 1243, 1208, 1169, 865]

FIGURE 4.21 Outcome

5. Numbers Write a program that displays the values in the list numbers in descending order sorted by the sum of their digits that are odd numbers. See Fig. 4.23

Sorted by sum of odd digits: [1169, 290, 865, 1243, 1208]

FIGURE 4.23 Outcome

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!