Printing ShapesCreate a program that:Prompt the user to choose between a rectangle and a trianglePrompt user for shape parametersRectangleAsk user to choose between supplying a word or a widthAsk user for heightTriangleAsk user to choose between supplying a word or a width, and whether the triangle points up or downRead inputPrint the desired shapeIf the user chooses to draw a rectangle with a word, print it to a file named “shape.txt” in addition to Ask the user if they would like to exit, or return to step 1Points:2 – Documentation, readability, format3 – Proper program flow (conditionals, loops, etc)1 – File output2 – Filename and Header2 – Output testingHeader//
//CPSC 120 Lab 4//
Filename
lab4.cpp//DrawRectangle(5,3)***************//DrawRectangle(‘VOTE’, 3)shape.txt:VOTEVOTEVOTE//DrawTriangle(4, true)**********//DrawTriangle(‘VOTE’, false)VOTEOTETEE//DrawTriangle(‘VOTE’, true)ETEOTEVOTE