Hi, I'm a professional programmer. I'll give you the required programs within 3hours after accepting the project. I have two milestones, one for each question. I have a doubt in the second question, how do you need the output to be? a fraction or float(like 4.56)?
Best Wishes,
Kishan Reddy.