This is my assigned process in the paragraph below. Take the command line argument, divide it by
Fantastic news! We've Found the answer you've been seeking!
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 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."
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Q3: Prove: For any sets A and B, Ax B = B A ?
-
During the year, Summit produces 50,000 snow shovels and sells 45,000 snow shovels. Summit Manufacturing produces snow shovels. The selling price per snow shovel is $30. There is no beginning...
-
Imagine that the test tube pictured contains 2n grains of sand, n white and n black. Suppose the tube is vigorously shaken. What is the probability that the two colors of sand will completely...
-
Does Early Language Reduce Tantrums? A recent headline reads "Early Language Skills Reduce Preschool Tantrums, Study Finds," and the article offers a potential explanation for this: "Verbalizing...
-
Use the data in LOANAPP.RAW for this exercise. The binary variable to be explained is approve, which is equal to one if a mortgage loan to an individual was approved. The key explanatory variable is...
-
(QUESTIONS) 1. Facts of the Case Provide a very concise and clear summary of the case. Be brief but do include all information that you feel is essential to the case. 2. Arguments provided by the...
-
On May 1, 2014, the company sold an additional 150 bonds with warrants attached. The bonds, which mature in 2029, had a face value of $1,000 each, with 6% annual coupon rate, interest due June 1 and...
-
Suppose there are \(n\) firms selling a homogeneous product at a constant marginal cost, \(m=5\), in a Cournot market. The inverse market demand curve is \(p=20-Q\), where \(Q=n q\). What is the...
-
The preclosing trial balance for the Pension Trust Fund of Almen County at December 31, 20X8, is presented here. Prepare the Statement of Plan Net Assets at December 31, 20X8, and the Statement of...
-
Central Laundry is replacing an existing piece of machinery with a new model. The old machine was purchased 3 years ago for $50,000 and was being depreciated under MACRS, using a 5-year recovery...
-
The economic income in euros for the Fontenot Company is: A. 17.24 in year one and 9.11 in year two. B. 17.76 in year one and 24.89 in year two. C. 24.89 in year one and 17.76 in year two. Linda Pyle...
-
What is the tree's speed of growth, in feet per year, from t = 1 yr to t = 3 yr? A. 12 ft/yr B. 9 ft/yr The images of trees in Figure Pl.68 come from a catalog advertising fast-growing trees. If we...
-
If the exchange rate falls (the value of domestic currency has depreciated) then the domestic health care corporations are now more affordable to the foreigners, and this the demand of the service...
-
For the next several days, take notes on your listening performance during at least a half-dozen situations in class, during social activities, and at work, if applicable. Referring to the traits of...
-
If Charles, a 16-year-old child model, earns $50,000 a year and is completely self supporting even though he lives with his parents, can his parents claim him as a dependent? Why or why not?...
-
William sold Section 1245 property for $25,000 in 2012. The property cost $35,000 when it was purchased 5 years ago. The depreciation claimed on the property was $16,000. a. Calculate the adjusted...
-
In 2012, Gale and Cathy Alexander hosted an exchange student, Axel Muller, for 9 months. Axel was part of International Student Exchange Programs (a qualified organization). Axel attended tenth grade...
-
Give some examples of models in which the dependent variable is a count variable.
-
Explain why estimation of a supply and demand model requires an alternative to ordinary least squares (OLS).
-
Describe what is meant by the phrase "sample selection."
Study smarter with the SolutionInn App