Write about the validity of the political dogma

Assignment Help Python Programming
Reference no: EM132357181

Programming Project

Assignment Overview

The goal of this project is to gain more practice with functions, files, exception handling, and dictionaries.

Let's tackle a political question. It is standard political dogma that Democrats "want big government" and that Republicans "create jobs." Let's see if data supports the dogma.

The official source of employment statistics is the U.S. Bureau of Labor Statistics and we have collected data for private employment and government employment.

Our assumption is that if a party is creating jobs, then private employment will increase, and if a party is creating bigger government, then government employment will increase. Your job is to extract that information from the files provided.

Project Specification

There are two employment data files provided. Both have comma-separated data. Look at the headings to understand their format. Numerical values are in thousands. The data for 2015 is, of course, incomplete.

• government_employment.txt

• private_employment.txt

There is also a comma-separated file on presidents, their years, and their political party.

• presidents.txt

Since the transition from one term to another occurs partway through January, the last year listed for any president is the same as the first year of the next president.

To keep things simple let's count January entirely for the incoming president. That is, in the file the last year listed for a president will not count.

For example, George W. Bush's last year is listed as 2009 but he was president for only a few weeks that year so we will not count him as being president in 2009. Also, watch out for the "Jr." for President Carter when you are reading the file-there is an extra comma.

Finally, we will consider only the full years for each president so for Obama we will not count any data from 2015 (especially since the data for March and April is preliminary, not final data).

1. Your program will prompt for the file names. Use exceptions to check that each file was opened without an error.

2. All president data can only come from the presidents.txt file, i.e. you cannot code specifics about presidents into your program. We will test your program using a file of that format, but with different entries, for example we may test on a file that has three of the lines of that file.

3. As an academic requirement your program must define and use two functions in a meaningful way. (Feel free to use more functions; I did.)

4. Calculate and display in columns (see sample below):

1. the average monthly private employment for each political party

2. the average monthly government employment for each political party

3. the private employment of the first month and last month of each president

4. the change in private employment from the first month to the last month of each president; report the change as both a difference and as a percentage

5. the government employment of the first month and last month of each president

6. the change in government employment from the first month to the last month of each president; report the change as both a difference and as a percentage

5. Write a paragraph on your conclusions of the validity of the political dogma that "Democrats want big government and Republicans create jobs." Refer to your program output as evidence for your conclusion. Put the paragraph in a separate document (either as proj05.txt, proj05.tex or proj05.doc) and hand it in. Feel free to be creative.

6. Order to read files (added so we can preprocess your project).

a. Read president's file

b. Read private employment file

c. Read government employment file

Reference no: EM132357181

Questions Cloud

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
Snmp is only one of several management protocols : SNMP is only one of several management protocols. What other management protocols exist? Who created them? What types of situations do they manage?
What are the current certifications that companies : What are the current certifications that companies are looking for with respect to network administrators

Reviews

Write a Review

Python Programming Questions & Answers

  Display the future day of the week using python code

Python only please. Write a program that prompts the user to enter an integer for today's day of the week

  Develop and test a python program

Develop and test a Python program that displays the day of the week that the following holidays fall on for a year entered by the user New Year's Eve

  Create a simple web interface for a to-do list application

Create a simple web interface for a To-Do list application, using what was learned in the reading for week - Flask web development framework

  Write program that allows teacher to read in student names

Write program that allows teacher to read in student names. The program must be written in accordance with the following specs.

  Program for simulating a supermarket self-service

Design and model two classes: Product and CheckoutRegister - Create an activity chart which describes the behaviour of the checkout system

  Write new python program that contains a main function

Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem.

  Design and implement program that check whether some numbers

COMP9021, Python Programming Assignment - You will design and implement a program that will check whether some numbers, stored in a file

  Write a program in python that requests a user to enter

Write a program in Python that requests a user to enter: percentage of students who received higher than 90 points.

  Write a python class definition for class sumi

Write a python class definition for class ‘Sumi' with a single instance variable self.num of type ‘int' and single instance method called "sum_of_digits".

  Write an expression that concatenates the string

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

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

  Write a program that prompts the user to enter a point

Write a program that prompts the user to enter a point with x- and y- coordinates and determines whether the point is inside the triangle.

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