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)=””><>

WhatsApp
Hello! Need help with your assignments?

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

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X