Question: This is my assigned process in the paragraph below. Take the command line argument, divide it by 2 and round the result down, add it

This is my assigned process in the paragraph below.

"Take the command line argument, divide it by 2 and round the result down, add it to the integer that is one less than itself, subtract 7 from it, add the return value from the input function call to it, multiply it by 7.636364, convert it to an integer, and finally convert it to a character."


Carleton University Specification for Assignment 02 Your submission for this assignment must

Carleton University Specification for Assignment 02 Your submission for this assignment must include your full name and your nine-digit student number as a comment at the top of the source file you submit. All source code files must be written using the Python 3 programming language. Do not compress your submission into a "zip" file. Submissions that crash (i.e., terminate with an error) on execution will receive a mark of 0. COMP 1405/1005 (Winter 2023) "Introduction to Computer Science I" Officially, the Due Date for this Assignment is: Friday, February 3, 2023, at 11:59pm EST. Late Submissions are Accepted Without Penalty Until Sunday, February 5, by 11:59pm EST. Submissions received after that will not be accepted and will receive a mark of 0. For this assignment you will demonstrate that you can use type conversion functions and arithmetic operations as part of a program that observes the "pipeline" design pattern. You will do so by creating a program that takes input from the user (using a command-line argument to receive one values and a call to the input function to receive the other) and then performs a complex series of operations that was assigned specifically to your student number. In order to complete this task, you will need to: receive your assigned instructions via email know how to use a command-line argument read about the conversion functions and arithmetic operators evaluate your instructions (by hand) for several inputs (to design test cases for yourself) Your submission for this assignment: must be a source code file with filename 'comp1405_w23_#########_assignment_02.py' must NOT import anything other that 'sys' (which is required for command-line arguments) must use both a command-line argument and a single call to the 'input' function must store the result in a variable, updating and printing that variable after each operation must print the final result to the screen using "triangle brackets" (e.g., ) can assume that the user will always enter a positive integer at any opportunity for input You may wish to refer to "live_demo_05_echo_utility.py", as that demo exhibited the use of a command-line argument. 2 You must replace the number signs in the filename with your official nine-digit student identification number. 3 Such arguments are provided on the command-line, before the program is executed, regardless of where they are used

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It seems like youve been assigned a specific process to implement i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!