Category: Problem Solving

Write a java program to compare two dates(Date Format)

Write a program to read two String variables in DD-MM-YYYY.Compare the two dates and return the older date in ‘MM/DD/YYYY’ format. Input and Output Format: Input consists of two string. The output consists of a string. Refer sample output for formatting specifications. Sample Input 1: 8-11-2010 05-12-1987 Sample Output 1: 12/05/1987 Compare two dates(Date Format)

Write a java program to calculate discount rate.

Write a  program to calculate discount of the account holders based on the transaction amount and registration date using below-mentioned prototype: 1. Read account details from the User. The details would include id, DOR (date of registration) and transaction amount in the given order. The datatype for id is the string, DOR is the string