Drawing Shapes Program

Verified

Added on  2019/09/23

|3
|256
|556
Practical Assignment
AI Summary
This practical assignment presents a program solution that allows users to draw different shapes: circles, Xs, and boxes, with options to include Xs within boxes. The program presents a menu to the user, prompting them to select a shape to draw. Based on the user's choice, the program requests additional input such as size or radius. The program then outputs an ASCII art representation of the selected shape with the specified dimensions. The program continues to loop, presenting the menu until the user chooses to exit. The provided solution demonstrates a successful build, indicating the code's functionality and correctness.
Document Page
1. Draw Circle
2. Draw X
3. Draw Box
4. Draw Box with X
5. Exit
Please enter your choice ?3
Please enter Size of Box ?2
* *
* *
1. Draw Circle
2. Draw X
3. Draw Box
4. Draw Box with X
5. Exit
Please enter your choice ?1
Please enter radius of circle ?3
*******
** **
** **
* *
** **
** **
*******
1. Draw Circle
2. Draw X
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
3. Draw Box
4. Draw Box with X
5. Exit
Please enter your choice ?2
Please enter Size of X ?3
* *
*
* *
1. Draw Circle
2. Draw X
3. Draw Box
4. Draw Box with X
5. Exit
Please enter your choice ?3
Please enter Size of Box ?3
* * *
* *
* * *
1. Draw Circle
2. Draw X
3. Draw Box
4. Draw Box with X
5. Exit
Please enter your choice ?4
Please enter Size of Box ?5
Document Page
* * * * *
* * * *
* * *
* * * *
* * * * *
1. Draw Circle
2. Draw X
3. Draw Box
4. Draw Box with X
5. Exit
Please enter your choice ?5
BUILD SUCCESSFUL (total time: 46 seconds)
chevron_up_icon
1 out of 3
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]