For this problem your assignment is to write a program that


Programming Assignment -

Program Description: All your programs should be well-formatted and easy for the TAs to read and comprehend.

Problem 1: Pyramid

For this problem, your assignment is to write a program that produces a pyramid using "ASCII art". Your Python program file is be named pyramid.py?. Your program should prompt the user to enter the height of the pyramid as follows:

Enter height of pyramid: X

X should be replaced with a user integers of 6, 8, 10, 12 . Write a function called pyramid? that takes the height of the pyramid as a parameter.

Problem 2: Rocketship

For this problem, write a program that produces a specific text figure that is supposed to look like a rocket ship. You must name your Python file rocketship.py?. You should exactly? reproduce the format of the output shown below. This includes having the identical characters and spacing. You can use the diff tool I provided for the first 2 homeworks and the text files I've provided to ensure your output matches exactly.

When your program first runs, it should prompt for a single input from the python shell. The prompt for the value should look as follows:

Enter rocket size: X

The user of the program may enter any value for X greater than or equal to 2.

Using the value entered, your program will print out a rocketship with corresponding width, height, and patterns.

Attachment:- Assignment File.rar

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: For this problem your assignment is to write a program that
Reference No:- TGS02824314

Expected delivery within 24 Hours