R1: PSDS
R3: LLD
R4: HM
Asked how the Adobe process looks
Project and prev work
Q. Design:
/*
currency values
1 Dollar -> 80 Rs
1 Dhiram -> 35 Rs
.
.
.
.
.
1 Dollar -> 81 Rs
- What is the value for 1 currency to another
Dollar, Dhiram, USD -> Rupees
(125 Dollar) -> 125
- can also asked in the past or current
*/
Money
- float amount
- CurrencyEnum currency
CurrencyEnum
- Dollar
- Dhiram
- Rupees
GET public Money convert(Money input, Timestamp time){
if(time==null){
time = System.time;
}
...
...
...
...
...
}
POST public bool createConversion(CurrencyEnum fromCurrency,
float conversionFactor){
...
}
Map<String, Vector<pair<cf, time>>
HashMap -> currency -> (timstamp, conversionFactor)
Dollar-> (75 T1), (76 T2), (75, T3)
Dhiram 35 T3