subject

Lab Assignment ObjectivesObtain and user input at runtime. Work with expressions, variables and assignments. Be able to construct arithmetic and Boolean Python expressions and assignment statements that correspond to informal specifications in English. Construct Python expressions and statements involving strings and Python string operators (including format specifiers) that correspond to lab specifications. Construct, starting from a specified expression set, Python expressions and statements involving lists/tuples and Python list/tuples operators and methods. Use Python Basic Data Types understanding what is meant by an object's type and value. Understand how the type determines the operators and methods that can be applied to the object. Be aware of how implicit and explicit type conversion between the basic Python data types are done. Import and use a module from the Python Standard Library. Understand the ApplicationObtain the family (last name) and student ID of the user at run time. Based on the user input, you program will create two int variables, my_id and n_let, into which you will store:my_id = The sum of the numbers in your College Generated student ID. (This is the sum of an 8-digit number; not to confuse it with your social security # or a password, which it is not).n_let = 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 that each student will have a unique output. The Program SpecificationThe first thing your program needs to do is obtain valid user input for your family (last) name and your student ID. Next your program will generate the variables my_id and n_let. The expression set will be computed and the results displayed. Before exiting your program will display the current date and time. The following expressions assume that you have stored the calculation of the sum of the numbers of your student ID into the variable my_id, and the calculation of the number of letters in your last (family) name into the variable n_let. Your program should compute and display the results for the following expressions:expression1: my_id / 2expression 2: my_id % 2expression 3: 2 + 3 + ⦠+ n_letexpression 4: my_id + n_letexpression 5: abs(n_let â my_id)expression 6: (my_id) / (n_let + 1100)expression 7: (n_let % n_let) and (my_id * my_id)expression 8: 1 or (my_id / 0)expression 9: round(3.15, 1)Write a Python program that constructs an ordered collection data type whose elements consist of the Python expressions to realize the above expression set. Your program will compute and display the results of these nine expressions. Import and use the datetime (Links to an external site.) module to generate the date of your test run. Print this date in your run output. Input Error Checking: Validate all user input before computation. A valid student id contains only digits and is of length 8. A valid last name contains only characters and is of a minimum length 2, maximum length 15.Your program display should look something like this partial run (although the values will differ for each student):Enter your family name: StudentEnter your student ID: 12345678my_id is: 36n_let is: 7expression 1: 18.00...

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:40
You begin your first day of responsibilities by examining the recent is security breach at gearup to get ideas for safeguards you will take. at gearup, criminals accessed the company's improperly-secured wireless system and stole customers' credit card information as well as employee social security numbers. what kind of computer crime did gearup face?
Answers: 3
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
Lab Assignment ObjectivesObtain and user input at runtime. Work with expressions, variables and assi...
Questions
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
English, 14.09.2020 14:01
question
Chemistry, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
French, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Social Studies, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
question
Mathematics, 14.09.2020 14:01
Questions on the website: 13722359