✍️ Get Writing Help
WhatsApp

The desired result

The following code is intended to find the area and perimeter of a rectangle. However, it fails to do so. Provide the correct code to accomplish the desired result. Also, do not modify the numeric values assigned to the variables in the code. After correcting the code, what is the output?   (2, 3, 6)

double *length;

double *width;

cout < fixed=””>< showpoint=””><>

length = new double; length = 6.5;

&width = 3.0;

cout < “area:=”” “=””>< (*length)=”” *=”” (&width)=””>< “,=”” “;=””>

cout < “perimeter:=”” “=””>< 2=”” *=”” (*length=”” 1=”” width)=””><>

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102