Declare and define the necessary function to calculate pension, growth salary, income tax, total deduction, and net salary of an employee when it is called and return a value to the caller.
Hint:
The program is expected to Input basic salary, allowance and credit association as an input and displays basic salary, allowance, credit association, growth salary, pension, income tax, total deduction and net payment as an output.
Employee earn additional money as allowance monthly (different values of allowance).
Employee must pay money monthly as a credit association (different values of credit association)
Pension=(BasicSalary*.07) when it is called and return a value to the main function ()
GrowthSalary=(BasicSalary +allowance) when a function is called and return avalue to the caller.
TotalDeduction=(Pension+IncomeTax+ CreditAssociation) when a function is called and return a value.
NetPay=(GrowthSalary-TotalDeduction) when it is called and return a value to the main program
Given three variables x, y, z write a function to circularly shift their values to right. In
shift y = 5, z = 8 and x = 10. Call the function with variables a, b, c to circularly shift
other words if x = 5, y = 8, z = 10 after circular shift y = 5, z = 8, x =10 after circular
values.
Anbu had got lots of homework and he have to do it fast. So, he wants your help Can u help him? The problem is to find the length of the last word in the given string
Input: My Business is my Business None of your Business
Output: 8
write a function which takes marks of student out of 100 as input and returns his grade pass/fail. Call this function into main() for 3 students
Odd even prime multiples
Create a program that will display the corresponding remark of a given input grade. The range of grades and its corresponding remark are given below:
Note: Use switch case statement
Range of Grades Remarks
90-10 Excellent
80-89 Good
75-7 Fair
50-74 Poor
Other grades Out-of-range
Problem: A company plans to pay bonus to their employees, the details are given
below:
• Those earning Rs. 30,000 or above are to be paid 20 percent of their
salary.
• Those earning less than Rs. 30,000 are to be paid Rs. 1000
• The input records contain the employee number, name and salary of
the employees.
• The output to be printed should contain the employee number,
name, amount of bonus and new salary to be paid to each employee.
1. Create a database console application to perform the following applications:
a) Define a dictionary to store details for library books consisting of book id, title, author name, year of publication and publisher.
b) Show how the information can be stored in a SQLite or MySQL database named books, retrieved by book id or author name, update using any book id or title and deleted using book id or title.
c) Handle all exceptions and validate data entry.
2. Redo question 1. above converting the application into a user-friendly GUI application using a python GUI library such as Tkinter and develop all operations stated above while connecting to the same database named books.
Demonstrate use OOP principles, data structures and file handling operations to carry out the following tasks.
a) Define a class named PERSON, with child classes named DAUGHTER and SON who also have derived classes named GRANDSON and GRANDDAUGHTER respectively. All children classes have derived genetic features and skills from PERSON.
Create 5 methods for getting and setting genetic features, setting and getting skills and demonstrate the concept of polymorphism.
b) Modify the answer in a) and show how the PERSON features are captured in a file called person.txt. Also create another method to read from the file person.csv and store the data in a list called persondata.
Clearly show how exceptions are handled in year program.
Create a program that will display the corresponding remark of a given input grade. The range of grades and its corresponding remark are given below:
Note: Use switch case statement
Range of Grades Remarks
90-10 Excellent
80-89 Good
75-7 Fair
50-74 Poor
Other grades Out-of-range
Range of Grades Remarks
90-10 Excellent
80-89 Good
75-7 Fair
50-74. Poor
Other grades Out-of-range