Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 7 00pm Gm Q43785281
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 7:00PM GMT+8time zone:
Question 13
Some service fees (% of asset amount) of two investmentcompanies are shown in the following tables:
Company A:
Service Fee Type
Fee
Management Fee
1.5
Subscription Fee
5.0
Redemption Fee
1.0
Company B:
Service Fee Type
Fee
Platform Fee
0.2
Management Fee
1.0
Subscription Fee
2.0
The above information is to be storedin two maps (Map<String, Double>) referenced by companyA andcompanyB for Company A and Company B respectively. The service feetype is assumed to be unique in each map and it is the key ofit.
- Assume that there are many entries in the map referenced bycompanyA. Using an enhanced for loop and an array, write a programsegment to store the number of service fee types in each feecategory using an element of the array. The fee categories are “fee<= 0.5”, “0.5 < fee <= 1.0”, and “fee > 1.0”.
- Assume there are many entries in the maps and one company canhave some service fee types not available in the other company.Write a program segment with an enhanced for loop to print out thename of each service fee available in both of thecompanies (A and B) and its lowest fee. For example, the string”Subscription Fee, 2.0″ is printed when we are considering”Subscription Fee”.
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 7:00PM…
OR