Question: PYTHON my_Id = 12345678 num_let = 5 Assignment 2 - Arithmetic Make sure you have read and understood both m odules A and B this
PYTHON
my_Id = 12345678
num_let = 5
Assignment 2 - Arithmetic
Make sure you have read and understood
both modules A and B this week, and
module 2R - Lab Homework Requirements
before submitting this assignment. Hand in only one program, please.
Some Easy Arithmetic
Every programming assignment is as much a test of English language comprehension as it is a test of programming or mathematical skills. This week, the explanations of the formulae below are given clearly in plain English if you read carefully. However, if there is any question about what is being asked, you are urged to ask for clarification in the public forums.
Understand the Application
You will create two int variables into which you will store
Your Foothill College student ID. (This is normally an 8-digit number; don't confuse it with your social security # or a password, which it is not.)
The number of letters in your family (last) name.
In order to receive any credit for this assignment, these two values must match what I have for you on my class roster.
Your program will compute some values based on these two numbers, so each student will have a unique output.
The Program Spec
The following five expressions assume that you have stored your student ID into the variable myId, and the number of letters in your last (family) name into the variable numLet. (However in keeping with Python style, you would use variable names like my_id or num_let in your actual code.) You can manually enter both of these using assignment statements in your program source. No user input allowed. Compute the following five values:

First do the math on paper so you know what answers your program should generate (but don't hand this stage in). Write a program that computes and displays these five values. Your run should look something like this (although the values will differ for each student):
""" --------------- RUN ----------------- My family name is Locey My Student ID is 22222222 The number of characters in my last name is 5 Expression #1 ------------ : 9 Expression #2 ------------ : ... ... -------------------------------------- """
Note that the first three lines are output from your program, not added after the run. This should all be done in one run of a single program, not several runs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
