Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1: Question2: python Task 2: Function Applications Write a function called check that accepts either two or three parameters of type integer. o It
Question 1:Question2:
python
Task 2: Function Applications Write a function called check that accepts either two or three parameters of type integer. o It should return the smallest number if the sum of the all the numbers is odd. o Otherwise, it should return the biggest number of all the numbers. You are required to write a complete Python program to test this how to use this function. Hint: You need to use default parameter in your function. . Description of Problem: A bank in your town updates its customer's accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer's balance falls below the minimum, there is a service charge of $15.00 for savings accounts and $30.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows: Savings accounts receive 4% interest with balances of at least $3000; otherwise, the interest is 1.5%. Checking accounts with balances of at least $4000 more than the minimum balance receives 2.0% interest; otherwise, the interest is 1.0%. Write a simple program that reads a customer's account number (int type), account type (char; s for savings, c for checking), minimum balance that account should maintain, and current balance. The program should then output the account number, account type, current balance, and an appropriate message. This program should continue to run until the user wants to quit. Sample input data (you could create your own fictitious input data): Account Current Number Account Type Minimum Requirement Amount 100111 103001 200011 120021 130011 200110 S S S 3000 4000 3000 4000 3000 4000 3700 6290 2800 3500 1280 8150 O Requirements: Your program must consist of at least three functions or more for performing different tasks. One function for reading in the data. One function for performing the calculation. o One function for displaying the output information. You must create a loop to keep this program running without quitting unless the users are being asked to do so. User will be asked to quit only after every three iterations. O OStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started