A lathe is a machine tool which spins a block of material to perform various operations such as cutting,…