Question #137029

1.) A circular racetrack is composed of 4 portions: concrete, mud, sand, and asphalt. Schumacher’s car takes 15 seconds to cross the concrete, 20 seconds to cross the mud, 35 seconds to cross the sand, and 30 seconds to cross the asphalt.

Expert's answer

using System;


namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            double
                concreteTime = 20,
                mudTime = 35,
                sandTime = 35,
                asphaltTime = 30;


            Console.WriteLine($"Schumacher’s car needs about {concreteTime + mudTime + sandTime + asphaltTime} seconds to complete one circle");
            Console.ReadKey();
        }
    }
}
LATEST TUTORIALS
APPROVED BY CLIENTS