employer cover photo
employer logo
employer logo

CA Technologies

Acquired by Broadcom

Is this your company?

CA Technologies Interview Question

Write a program in Java that will take input strings like "Nine-hundred forty three dollars and 19/100 cents" and output the double "943.19"

Interview Answer

Anonymous

May 27, 2017

Parse the string , split it into digits and keep adding the parsed digit to strinbuilder ,convert to double

1