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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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