Plot of P-V diagram for otto cycle.
Objective: This Program will deal with the Pressure and Volume variation of an Otto Cyle: This is the plot of the P-V Diagram for parameters fixed in the program pasted below: %main program close all clear all clc %Inputs bore=100; stroke=200; con_rod=250; rc=22; n=1.4; Vs= pi/4*bore^2*stroke; Vc=Vs/(rc-1);…