Introduction

In this module, you'll explore the types of jobs available to computer programmers and the important soft skills employers are looking for.

Then, you'll explore the names and uses for typical programming data types, then write a program using those variables, expressions, statements, values, data types operators, operands, and input while adhering to the order of operations.

Regardless of the programming language being used, these concepts don't change, however, their usage and syntax might vary from language to language.

A typical programmer's desktop includes multiple screens.
Programmers typically display their work on multiple screens so they can compare one set to another, debug, and view the results.

Software Engineers use a variety of hardware and software to help them manage programming projects. Their computers are typically new, fast and connected to multiple displays so they can see what they are writing, how it looks, if it has errors, look up existing solutions, and communicate with their team.

They often must write locally on their computer (hard drive) and backup to a cloud server and deploy their application on a web server.

Julien Danjou's diagram of folder hierachy of a python program. A typical project python hierarchy of folders and files.

Careers in Computer Programming

Computer programmers are in high need within the Software Engineering industry. For this week's discussion synthesize what you've learned about one job, one skill, and/or one aspect of a computer programming job, based on one or more of these sources:

Top IT Skills in Demand in 2022. CompTIA, 2022
Rasumussen University's 5 Soft Skills Programmers Need 2017
Indeed's list of computer programming articles

Read Think Python

Read through Think Python's Chapter 2. Simple Python Data:

In-class Activity

In small groups, collaborate in your existing Google Sheet or Excel file named "Python Concept Reference Sheet" and add a new sheet for data types. Document the names, definitions, and examples of the differences in any order that makes sense. Document some or all of these concepts that might be hard to remember:

Then, add a new sheet for the Operators and their related concepts, such as:

Finish the definitions of the Operators as you finish reading through the textbook.

Program 2 is based off of Exercise 2.13.3 of the textbook. To help you develop Program 2 (detailed in the next tab of this page), discuss how you would:

Once you've done that in your groups, begin to code Program 2 on your own.

Write Program 2

Program 2 uses several data types to calculate input from an employee, 
    related to the number of hours left in their shift, and tasks they could finish.
Program 2 uses several data types to calculate input from an employee, related to the number of hours left in their shift, and tasks they could finish.

This program relies on information from Chapters 1 and 2 of the textbook as well as Exercise 2.13.3.

  1. In the second module's folder of your workspace folder, make a new file named p2-username-datatypes.py. Replace 'username' with your ONID username.
  2. In the file, write commands in Python to do the following:
    1. Comment your first and last name and the date.
    2. Comment the name of this assignment "Data Types on the Job".
    3. Write pseudocode comments that describe each step of your program, based on requirements provided in the next step.
    4. Using variables, input, float, integer, subtraction, multiplication, division, and strings, print a message (in complete sentences with proper grammar and punctuation) that tells you (specifially) how many hours you worked so far, the hours required in your shift, the hours remaining in the shift, the percentage of hours worked so far, the minutes remaining in the shift, and three tasks to complete during the remainder of the shift.
  3. Save the file using cntls or s.
  4. Run the program using one of these methods:
    • Click the run arrow ▶ at the top right of the editing screen.
    • In the terminal, type: python p2-username-datatypes.py
    • Right-click on the file in the file list (or from in the file) and choose Run Python file in terminal.
  5. Backup your work to a cloud drive and/or USB stick drive.

Submit Program 2

Zip the .py file and upload it to the Module > Assignment in Canvas. The Instructor/TA will download the zip archive and run your .py file to score it.

Respond to Feedback

Within 3 days of your submission, check the CanvasGrades area to view your score in the Rubric, along with our feedback.

Respond to the feedback if you have questions, by replying in the GradesAssignmentComment box.