Write a python program using Functions to do the following, • Input Employee's CALLS and MESSAGES. • Create User Defined Function which calculates CALL CHARGES by multiplying CALLS with 0.025 baisa and retums the CALL CHARGES. • Create User Defined Function which calculates MESSAGE CHARGES based on MESSAGES and returns. If MESSAGES >=50: • Multiply MESSAGES with 0.02 Else: • Multiply MESSAGES with 0.05 • Use a Built in Function which calculates the DISCOUNT as 0.7 power of the CALLS used. • Create a Void Function which displays pattern(S) before and after the input and output of the program. • Calculate the TOTAL CHARGES by adding CALL CHARGES and MESSAGE CHARGES and subtract DISCOUNT. • Display all details.
Write a python program using Functions to do the following, • Input Employee's CALLS and MESSAGES. • Create User Defined Function which calculates CALL CHARGES by multiplying CALLS with 0.025 baisa and retums the CALL CHARGES. • Create User Defined Function which calculates MESSAGE CHARGES based on MESSAGES and returns. If MESSAGES >=50: • Multiply MESSAGES with 0.02 Else: • Multiply MESSAGES with 0.05 • Use a Built in Function which calculates the DISCOUNT as 0.7 power of the CALLS used. • Create a Void Function which displays pattern(S) before and after the input and output of the program. • Calculate the TOTAL CHARGES by adding CALL CHARGES and MESSAGE CHARGES and subtract DISCOUNT. • Display all details.
Step by step
Solved in 3 steps with 3 images