Write the algorithm, flowchart, and pseudocode for the following problem:
Saleem's basic salary is input through the keyboard. His increment allowance is 40% of the basic salary, and his house rent allowance is 20% of the basic salary. Write a program to calculate and display the allowances and his gross salary.