Write a program that produces a pyramid using ASCII art

Assignment Help Programming Languages
Reference no: EM132030846

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

Reference no: EM132030846

Questions Cloud

Opportunity to invest in alternative project : What should you do if you have an opportunity to invest in an alternative project and receive a 14% rate of return?
Vulnerable to inhibition of pdc activity : Why are some tissues more vulnerable to inhibition of PDC activity? How does this selective tissue vulnerability explain the cardinal clinical manifestations
Some type of secondary structure : A length of ten amino acid residues in a prote in is involved in some type of secondary structure. What are the various types of secondary structure
What major differences would exist in protein structures : What major differences would exist in protein structures between earth and this hypothetical planet.
Write a program that produces a pyramid using ASCII art : 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?
Explain the domestic politics impacts related to trade : After you find the data above, write 1-2 pages about a political economy issue related to the good or product, such as: Domestic politics impacts related.
What would the value of this firm : What would the value of this firm be if it borrowed $140000 to buy back some of its stock? Assume corporate tax rate of 40%.?
What the role of ethanol in cellular energy supply : What the role of ethanol in cellular energy supply, the metabolism of ethanol (alcohol), the regulation of its metabolisbm and the disease
Compute the annual net cash flows expected from the proposal : Compute the annual net cash flows expected from the proposal.

Reviews

len2030846

6/26/2018 3:05:15 AM

Program Description: This homework assignment will test your understanding of the material covered up through lecture notes 8. You will have 1 small programs that will prepare you for a larger problem. All your programs should be well-formatted and easy for the TAs to read and comprehend. Some points are allocated to style and commenting.

len2030846

6/26/2018 3:05:11 AM

Style Guidelines (Problem 1) Use nested loops where appropriate - This program is intended to test your knowledge of while loops and nested while loops. This will be a warm up to problem 2 of this assignment. Style Guidelines Use of while loops (nested when appropriate) - This program is intended to test your knowledge of loops and nested loops. You may only use Python constructs introduced in this course. If you are wondering whether or not you are allowed to use something, ask us.

len2030846

6/26/2018 3:05:06 AM

Submission and Grading - It is due Thursday, (Shifted this due date a bit to account we had the exam) You should put all of your code for problem 1 should be in to a python file named pyramid.py and all your code for problem 2 should be in to a python file named rocketship.py. Submit pyramid.py and rocketship.py to the associated D2L dropbox. Following these turn-in and naming instructions closely is very important, because our grading scripts will depend on some of the details. You may lose points if these instructions are not followed precisely! Based on an assignment from the University of Washington by Stuart Reges and Marty Stepp.

Write a Review

Programming Languages Questions & Answers

  Create class to calculate perimeter and area rectangle

Create class Rectangle. The class has attributes length and width, each of which defaults to 1. It has read-only properties that calculate the Perimeter and the Area of the rectangle.

  Write a program that can erase information in a directory

Write a program that can erase the information (including the block pointers) in a directory inode so that you can test and demonstrate your results.

  Write a complete java program that produces the sequence

Write a complete Java program that produces this sequence of numbers using a for loop. Create a complete Java program in a class named Bday that declares four variables and assigns appropriate values to them.

  Write the program to display company-s payroll report

Write down the program to display company's payroll report in list box. The program must read each employee's name, hourly rate, and hours worked from file and produce report in a table format.

  Research on dynamic arrays

Write a 2 page research paper (excluding title and reference pages) on dynamic arrays. Explain the concepts discussed in the textbook using at least an example not included in the textbook.

  Create milestones and summary tasks

A nonprofit organization would like you to lead a Web site development project. The organization has Internet access that includes space on a Web server.

  Write a program to solve to find loan on tv

Write a program to solve follwoing problem: A TV set is bought with loan of $563 to be paid off with 5 monthly payments of $116. Interest rate is 1 percent per month.

  Write a fully functional UNIX shell

CSE 451/851 Programming Assignment - Writing a Unix Shell. It is not the purpose of this assignment to write a fully functional UNIX shell

  Write a program that prints a list with separated by a comma

Write a program that prints a list with all the items separated by a comma and a space, with and inserted before the last item

  Implement a menu-driven program for a hardware store

Perform a sales transaction - allow several hardware items to be purchased Remove a sales transaction based on invoice number and Edit a sales transaction by changing the hardware item's barcode and/or quantity purchased

  Prepare clear button which will clear result text box

Make the compute button the Accept button. Prepare Clear button which will clear result text box and reset all text boxes, 4. controls, and internal variables used.

  Card generator program by linked list

Address Book-Card Generator Program Using a Linked List. This program will have names and addresses saved in a linked list. In addition, a birthday and anniversary date will be saved with each record.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd