Write a program to generate a random identity number


Question I: XYZ Corp has an employee identity number which is of the format: ABCD-12345-67890-ABCD Write a program to generate a random identity number for a new employee using the above format. Hint: Use Math.random() function

Question II: Write a program to calculate Simple Interest using following formula. The input should be in form of ONE single string from which you will extract the value of principal amount, rate of interest. You can hardcode time as 2 years: Sample string: PA:1000, R:5.7 Rules: - Principal amount range is 1000 to 9999 - Rate of Interest range is 0.1 to 9.9 Simple Interest = A = P(1 + rt) where: A = Total Accrued Amount (principal + interest) P = Principal Amount r = Rate of Interest per year in decimal; t = Time Period involved in years.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program to generate a random identity number
Reference No:- TGS03319597

Expected delivery within 24 Hours