Algorithm for a program that calculates the take home pay of an employee. The two employees are salaried and hourly. Allow the user to input employee type. If an employee is salaried, allow the user to input the salary amount. If an employee is hourly, allow the user to input the hourly rate and the number of hours clocked for the week. For hourly employees, overtime is paid for hours over 40 at a rate of 1.5 of the base rate. For all employees’ take-home pay federal tax of 18% is deducted. A retirement contribution of 10% and a social security tax rate of 6% should be deducted. Use appropriate constants. Design an object oriented solution.
Algorithm for a solution that prints the amount of profit an organisation receives based on its sales. The more sales documented, the larger the profit ratio. Allow the user to input the total sales figure for the organisation. Compute the profit based on the following table. Display the sales and profit formatted with commas, decimals, and a rand symbol. Display the profit ratio formatted with a percent symbol. 0 – R1000: 3.0% / R1000.01 – R5000: 3.5% / R5000.01 – R10000: 4.0% / over R10000: 4.5%
The Ministry of Home Affairs and Immigration would like to introduce an automated id number and passport generation system. The system takes into consideration the following:
Your task is to create a program that can achieve the above requirements to assist the ministry automate it’s operations
Input
Input is a single line with the person's first name, date of birth(format YYYY-MM-DD) and five-digit postfix through keyboard input, all separated by single spaces
write a function to add any number of numbers for Eg. add(1,2) add(1,2,3) add(1,2,3,4,5)
How to reverse a string in a given sentence. a. Example: Given string is “ Ram is learning in CCBP Intensive course”. Reverse the word “learning” in the above sentence
Write the java Program to reverse the letters present in the given string.
Write the java program that calculates maximum of the given two numbers.