i have to write a code to figure out medical the price of out of pocket premiunms and I'm having some issues with it if you could help me i would really appricate it heres the question and the code is under it this is my first time posting on this forum and if you could help me i would really appreciate it.
Premium discount
• If employee has 20+ years of service, they get 20% discount from the total premium.
• If 10 - 20 years of service, 10% discount
Inputs from user
• Benefits selections: Medical, Dental, Vision
• Use Employee-only: e
• Employee+spouse: s
• Employee+child(ren): c
• Employee+family: f
• Years of service
For example:
Enter your selections
Medical: f
Dental: c
Vision: e
Years of service: 15
Total out-of-pocket premium: 405.00
Here is the calculation…
(200+225+25)-10%(200+225+25) = 450-45 = 405
and heres the code ive been woring on my problem is i don't know how to define the different types of variables