
I have this menu: [1] load shapes, [2] exit the
rectangle, 500,500, 550,580, green
point, 200,50,black
triangle, 500,100, 600,100, 550,200, yellow
oval, 100,100, 400,200, red
text, 500,50, hello world!, blue
polygon, 300,550, 500,550, 450,350, 350,350, blue
and so on.
my program should be able load in a text file and draw the shapes no matter what the shapes parameters are. They wont be these specific colors and sizes. If my user chooses option [1] load shapes, it should give them the option to input the name of the file, then draw the shapes on that file that my program supports. It should also ignore any #comments or blank lines that the text file contains.
Also should close the program/window if the user chooses option [2]
if the user chooses option[3] it should give them the choice to add a drawing of either a rectangle or a circle to the window.

Step by stepSolved in 2 steps with 2 images

- Example Execution Trace You must exactly match the below layout. Melcome to a fun word replacement game Enter the name of the file to use: examplel.txt Please give a name Mark Please give a place Drexe ї Please give a day of the week Friday Please give a time Please give a verb eat Please give an animal Please give a body part mouth Here is your story: Mark is having a party! It's going to be at Drexel on Friday. Please make sure to show up at noon, or else you will be required to eat a/an raccoon with your moutharrow_forwardPython Soulution to 1arrow_forwardprofile-image Time remaining: 00 : 09 : 42 Computer Science C++. Need help writing a program that plays the game of Hangman. The program should pick a word (which is either coded directly into the program or read from a text file) and display the following: Guess the word: XXXXXX Each X represents a letter. The user tries to guess the letters in the word. The appropriate response yes or no should be displayed after each guess. After each incorrect guess, display the diagram with another body part filled. After seven incorrect guesses, the user should be hanged. The display should look as follows: O /|\ | / \ After each guess, display all user guesses. If the user guesses the word correctly, display: " Congratulations!!! You guessed my word. Play again? yes/no " Please help in making this code and if possible to include steps to learn what most of the lines and functions do in order to understand it better. Thank you.arrow_forward
- Need to do this in language as a while little confused on how to do it?arrow_forwardUse C++ Please do not copy and paste the same answer that is found on google. I have tried to get this to compile in visual studio and it always fails.arrow_forwardI'm making an app that reads through an input text file and shows the number of alphanumerical characters, punctuation marks, spaces, etc in the text. The problem is I can't figure out how to make it print out the contents of the file. It is only printing the amount of characters in the title of the text.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





