Question: help me write these programs please - Create a Python program that does the following Prompts the user for the size of a pyramid to

- Create a Python program that does the following Prompts the user for the size of a pyramid to draw Verifies that the input is in range and does not allow the program to continue until the program entered is valid Creates a pyramid by drawing lines one on top of another to create a pyramid of the requested height Prompts the user to continue - Enter your name, the lab number, and the current date into a set of comments at the top of the code. - Upload the program source code to the class web site Sample Output: Grading: 2 - General, compiles, comments, proper indentation, etc 4 - Input validation 6 - Pyramd creation 16-Totalpoints4-Continueloop - Jane's Stuff Store sells a variable number of items to every customer. Recently Jane's customers have been requesting a printout showing the average cost of each item purchased and the total cost of all items purchased. Create a program that asks the user how many items they wish to purchase. The program should then use a loop to prompt the user for the price of each item and to calculate the total cost of all items. The program should calculate the average cost of each item purchased. The program should print out the total cost for all items as well as the average cost of each item purchased. - Enter your name, the lab number, and the current date into a set of comments at the top of the code. - Upload the program source code to the class web site Sample Output: ane's Stuff Store How many items would you like purchase? 3 Enter the price of item 1: 1.50 Enter the price of item 2: 2.45 Enter the price of item 3: 2.00 The total cost of your meal is $6.95 The average cost ex each item is $2.32 Grading: 2 - General, compiles, comments, proper indentation, etc 2 - Input 2- Output 4 - Total calculation (accumulator) 4 - Average calculation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
