Assignment 04D– ASCII Art

ALIGNMENT: The purpose of this assignment is to provide practice with nested loops (for or while) as well as the use of a sentinel value in a while loop


ASSIGNMENT: Write an original Python program that asks the user to choose a shape created as ASCII art. The choice range from rectangle, triangle, diamond, fir tree, and sailboat. The program should allow the user to continue choosing shapes to draw, until they enter a sentinel value to exit. The size of the rectangle, triangle, and diamond shapes should be determined by input from the user. The user should also enter the character to be utilized in each drawing.


  • Save your file with as “CIS156_04D_ASCII_Art_YourLastName.py

  • Print the project title on the first line. Print the next line showing your name as the developer, followed by a blank line (remember you can use \n). Then provide a description of what the program does.

  • The program must use a while loop to insure the user enters size values for the rectangle (rows = 3 to 30); triangle (rows = 3 to 30) and diamond (ODD number of rows between 2 and 31) in keeping with the instruction, re-entering until the specifications are met.

  • RESTRICTION; At least two drawings must utilize at nested loops in printing the desired shape. (typically a for loop inside a for loop)

  • Any additional features such as def (functions), built-in or custom methods, etc. will not be recognized as a solution and would likely be indicative of a solution found on the internet! No points given!


Output:

The output look like that:



You need solution of this please contact through official website or send mail at this link.

Need help in python assignment please visit codersarts official website and send your query related to python assignments. Get fast and efficient code by codersarts experts.


If you like Codersarts blog and looking for Assignment help,Project help, Programming tutors help and suggestion  you can send mail at contact@codersarts.com.

Please write your suggestion in comment section below if you find anything incorrect in this blog post. 

Contact Us

Tel: (+91) 0120  4118730  

Time :   10 : 00  AM -  08 : 00 PM IST 

Registered address: G-69, Sector 63, 

 Noida - 201301, India

We Provide Services Across The different countries

USA    Australia   Canada   UK    UAE    Singapore   New Zealand    Malasia   India   Ireland   Germany

CodersArts is a Product by Sofstack Technology Solutions Pvt. Ltd.

  • CodersArts | Linkedin
  • Instagram