63 214
Assignments Done
99,3%
Successfully Done
In July 2018

Answer to Question #44779 in C# for Aman Kumar Saini

Question #44779
Worker A can do a job in 15 days while worker B can do the same job in 20 days. Write a program to calculate the total number of days required to finish the work if both the workers work simultaneously.
Expert's answer
using System;
namespace Q44779
{
    class Program
    {
        static void Main(string[] args)
        {
            double result = 1 / (1 / (double)15 + 1 / (double)20);
            Console.WriteLine("If worker A can do a job in 15 days");
            Console.WriteLine("while worker B can do the same job in 20 days");
            Console.WriteLine("So the total number of days required to finish the work ");
            Console.WriteLine("if both the workers worksimultaneously is {0:#.##}", result);
            Console.ReadKey();
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions