Calculate the average rainfall over a period of years

Assignment Help Python Programming
Reference no: EM132357183

Question

All programs should be written using Python programming languageEach question should be saved in a file name following the format Q#.py.

Q1) Write a program that uses loops to draw this pattern (first raw we have 0 white space, second raw 1 white space,third raw 2 white spaces, fourth raw 3 white spaces, and finally 4 white spaces)

##

# #

# #

# #

# #

Q2) Running on a particular treadmill you burn 4.2 calories per minute. Write a program that uses a loop to display thenumber of calories burned after 10, 15, 20, 25, and 30 minutes.

Q3) Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. Theprogram should first ask for the number of years. The outer loop will iterate once for each year. The inner loop williterate twelve times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall forthat month. After all iterations, the program should display the number of months, the total inches of rainfall, and theaverage rainfall per month for the entire period.

Q4) At one college, the tuition for a full-time student is $8,000 per semester. It has been announced that the tuition willincrease by 3 percent each year for the next 5 years. Write a program with a loop that displays the projected semestertuition amount for the next 5 years.

Q5) Design a program that asks the user to enter a store's sales for each day of the week. The amounts should be storedin a list. Use a loop to calculate the total sales for the week and display the result.

Reference no: EM132357183

Questions Cloud

What were the opsec procedures : What were the OPSEC procedures? Describe what problems you envision the lack of an effective OPSEC program could hold for a local, county, state, tribal.
What must the department or agency do to limit liability : What must the department or agency do to limit liability in the event of injury or death resulting from a police pursuit-related collision? Who are the.
Create a class hand in its own module : Create a class Hand in its own module. One object of class Hand represents a hand of cards and so one object stores a number of Card objects.
Create a chart or graph to help you present the crime data : A simple map is a basic representation of space-boundaries, a route, and landmarks. You may consider it to be two-dimensional. However, maps can also be.
Calculate the average rainfall over a period of years : COMP 3140-Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. Theprogram should first ask.
Examine efforts at health reform in the united states : Please respond to the following: Examine two (2) efforts at health reform in the United States that occurred during the 1900s. Determine the major political.
Write about the validity of the political dogma : CSE 231-Write a paragraph on your conclusions of the validity of the political dogma that "Democrats want big government and Republicans create jobs."
Regulates pornography on the internet : Please identify and cite one state statute that regulates pornography on the internet and summarize
Explain the concept of information stores : Explain the concept of information stores as they relate to email. Use Internet to research how and where email data is stored on different computer platforms

Reviews

Write a Review

Python Programming Questions & Answers

  Tower of hanoi game

Tower of Hanoi game that you can let a player to move discs between the towers using a mouse - Each move consists of taking the upper disk from one of the pegs and sliding it onto another rod, on top of the other disks that may already be present o..

  Design a program for the hollywood movie rating guide

Design a program for the Hollywood Movie Rating Guide, in which users continuously enter a value from 0 to 4 that indicates the number of stars.

  Construction of the data dictionary

A first systematic step to a data science process, as we have learned from the lectures and practical sessions, is to construct a data dictionary for the dataset.

  Modern optimisation - modern optimisation report

CMP7213 - Modern Optimisation - BIRMINGHAM CITY UNIVERSITY - Coursework Assignment Brief - Critically evaluate different optimisation techniques

  Find the output of the given script in python

Find the output of the following script in Python. Note: All statements are valid. Rewrite the following for loop Python statements using while loop.

  Write an expression that concatenates the string

Write an expression that concatenates the String variable suffix onto the end of the String variable prefix .

  Create a function that takes filename as a parameter

Create a function that takes fileName as a parameter. The file is a CSV file where the first column is the test number and the second column is the test score.

  Write a function reformat date that takes a string argument

Write a function reformat date that takes a string argument containing a date in one format it and returns the date in another format.

  Write a body of function run that generates a sequence

A run is a sequence of adjacent repeated values. Write a body of function Run() that generates a sequence of 20 random die tosses in a list.

  Define an init method that has one parameter named self

Define an init method that has one parameter named "self." In the init method, create an instance variable named dice that holds an empty list.

  Write a python program that reads in academic achievements

Write a Python program that reads in the academic achievements of three international applicants and determines which one is the best candidate.

  Compute the tax withholding for the employee

Compute the tax withholding for the employee by multiplying the total pay by the tax rate divided by 100. Store withholding in an appropriately-named variable.

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