Question: Looking for C# code for below problem. ----------------------------------------- Lia met with an accident and inorder to meet her medical expenses ,she claims from her insurance
Looking for C# code for below problem.
-----------------------------------------
Lia met with an accident and inorder to meet her medical expenses ,she claims from her insurance policy. Only a part of the applied claim amount was granted to her from the insurance company. Write a program to calculate the granted claim percentage. The granted claim percentage can be calculated by following formula, granted claim in percentage = (granted claim amount / applied claim amount)*100.
Use the following attributes,
| Data Type | Variable Name |
| double | _appliedClaimAmount |
| double | _grantedClaimAmount |
Input Format: First line of the input consists of a double value which corresponds to the applied claim amount Second line of the input consists of a double value which corresponds to the granted claim amount Output Format: Output should display the double value which corresponds to the granted claim in percentage correct to one decimal appended with a "%" symbol. Refer sample Input and Output for formatting specifications. All text in bold corresponds to the input and rest corresponds to the output. Sample Input and Output: Enter the applied claim amount : 20000 Enter the granted claim amount: 15700 Percentage of claim granted : 78.5%
------------------------------------
Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
