Computer Science, asked by navyagonnuru, 1 month ago

Hi I have to solve this program in java please help me:

the concept is

1) user gives date range like 01-sep-2021 to 30-sep-2021..let it name as "dr".
2) he will give another date range it may be one or more with value. let it name as "dr1".
like.. if he gave no.of ranges as 3. it will ask for 3 ranges.

enter 1st range: 01-sep-2021 to 10-sep-2021
enter 1st range value: 10

enter 2nd range: 11-sep-2021 to 20-sep-2021
enter 2nd range value: 20

enter 3rd range: 21-sep-2021 to 30-sep-2021
enter 3rd range value: 15
so dr dates ranges should split with values.

expected output:

01-sep-2021 to 10-sep-2021 is with value 10,
11-sep-2021 to 20-sep-2021 is with value 20,
21-sep-2021 to 30-sep-2021 is with value 15.
I don't know how to run a loop for this... please help me.

Answers

Answered by purushothamvajjula
0

Answer:

Explanation: yess

Similar questions