Customize your vs code environment (the linked video has a lot of info; focus on what...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Customize your vs code environment (the linked video has a lot of info; focus on what you need: https://www.youtube.com/watch?v=yvXHM2NByh4. You may check YouTube Create a virtual environment for coding Practice usage of basic Python built-in functions and output formatting Task 0-0: Follow submission instructions (6 points) Instructions: 1. Create a document file (MS World, Google Docs, or equivalent) and name it after your name and the assignment number. 2. For every task below: a. write your code that performs the task (if needed) and run it. Display the code and the result on your screen. You must test the code with all test data provided; b. use a snipping (Windows snipping tool) or "print screen" tool to take one or two screenshots that contain the code and the result, and paste the illustration or picture into the document you created in 1. Your goal is to allow me to assess your code and its results. 3. Submission: When all the tasks are completed, save and upload the document (1 document) and all .py files (1.py file per task) to the learning management system as your assignment submission. 4. DO NOT include or hard-code the test data into your code; your code should ask the user to input the data. 5. Add a comment for every block of code. Task 0-1: Change color theme (6 points) Change the color theme to another one of your choosing (install new one if needed). Take a screenshot and paste it in a word document (or equivalent). Task 0-2: Change font size (6 points) Change the font size of your VS code GUI. Take a screenshot and paste it into a word document (or equivalent). Task 0-3: Change icon theme (6 points) Change the icon theme to "material icon theme" (install a new one if needed). Take a screenshot and paste it into a Word document (or equivalent). Task 0-4: Virtual Environment Setup (6 points) Create a Python virtual environment (the name should include your last name) through the CLI as shown in the video below. Start a VS Code GUI inside the virtual environment from the CLI. Display the virtual environment in your VS Code GUI, take a screenshot and paste it in a word document (or equivalent). https://www.youtube.com/watch?v=fBBAGXjg2fk Task 1: Printing and Displaying Data (10 points) 1 ### 2 # Task 1: Printing and Displaying Data 3 # Scenario: Create a program that asks the user 4 # for their first name, last name, and year of birth. 5 # The program will then print a message like (Use f-strings) 6 # "Hello, [First Name] [Last name]! You are [Age] years old." 7 ####: 8 # YOUR CODE STARTS BELOW THIS LINE Test: Use your own name and a random date of birth to test your code. Task 2: Checking and Displaying Data Types (10 points) 1 ## 2 # Task 2: Checking Data Types 3 4 # Scenario: Write a program that takes user input 5 # and determines its data type, then displays # a message indicating the data type using f-strings. 6 7 8 # Instructions: 9 # Use the input() function to get user input. 10 # Use the type() function. 11 # DO NOT use IF conditions. 12 # Display the data type using an f-string. 13 Test: Use the following to test your code: "Monday", 89, "3459.89", -5, -23.990 Task 3: Creating Lists and Generating Sequences (10 points) # ####. 1 # 2 # TASK: Creating Lists and Generating Sequences 3 # SCENARIO: Write a program that generates a list of 4 # even numbers in a given range provided by the user 5 # using the range() and list() functions. 6 # INSTRUCTIONS: 7 # Use input() to get the range's limits from the user. 8 # Convert the input values to integers using the int() function 9 # Use range() to create a range of numbers 10 # Remember that the range() function excludes the ending value. 11 # Convert the range object to a list using the list() function. 12 # Display the list of even numbers. 13 # Do not use loops or IF conditions. 14 Test: Test your code with the following: range start = 5, range stop = 100, step = 15. Task 4: Employing print() for Output Formatting (10 points) 1 ##: 2 # TASK: Employing print() for Output Formatting 3 4 # SCENARIO: Write a program that converts temperatures 5 # from Celsius to Fahrenheit and 6 # displays the results in a neatly formatted table. 7 8 # INSTRUCTIONS: 9 # Use input() to get a range of temperatures in Celsius. 10 # Convert the input to Fahrenheit with 2 decimal points. 11 # F = (C * 9/5) + 32. 12 # Format the output in a table-like structure using print(). 13 ##; Test: Test your code with: range start = -20.0, range end = 52.0, step= 10.0 ERWCANA Task 5: Listing Attributes and Methods (10 points) 1 ##: 2 # TASK: Listing Attributes and Methods 3 4 # SCENARIO: Create a program that takes an object 5 # (e.g., a string or list) as input from the user 6 # and uses dir() to display its attributes and methods. 7 8 # INSTRUCTIONS: 9 # Retrieve all attributes and methods of the object. 10 # Display them way using the print() function. 11 # Display the data type of the object obtained from dir(). 12 ##### Test: Test your code with the following: [1], (1), "abcd", 6, and 78.9 ABAW.COMm Customize your vs code environment (the linked video has a lot of info; focus on what you need: https://www.youtube.com/watch?v=yvXHM2NByh4. You may check YouTube Create a virtual environment for coding Practice usage of basic Python built-in functions and output formatting Task 0-0: Follow submission instructions (6 points) Instructions: 1. Create a document file (MS World, Google Docs, or equivalent) and name it after your name and the assignment number. 2. For every task below: a. write your code that performs the task (if needed) and run it. Display the code and the result on your screen. You must test the code with all test data provided; b. use a snipping (Windows snipping tool) or "print screen" tool to take one or two screenshots that contain the code and the result, and paste the illustration or picture into the document you created in 1. Your goal is to allow me to assess your code and its results. 3. Submission: When all the tasks are completed, save and upload the document (1 document) and all .py files (1.py file per task) to the learning management system as your assignment submission. 4. DO NOT include or hard-code the test data into your code; your code should ask the user to input the data. 5. Add a comment for every block of code. Task 0-1: Change color theme (6 points) Change the color theme to another one of your choosing (install new one if needed). Take a screenshot and paste it in a word document (or equivalent). Task 0-2: Change font size (6 points) Change the font size of your VS code GUI. Take a screenshot and paste it into a word document (or equivalent). Task 0-3: Change icon theme (6 points) Change the icon theme to "material icon theme" (install a new one if needed). Take a screenshot and paste it into a Word document (or equivalent). Task 0-4: Virtual Environment Setup (6 points) Create a Python virtual environment (the name should include your last name) through the CLI as shown in the video below. Start a VS Code GUI inside the virtual environment from the CLI. Display the virtual environment in your VS Code GUI, take a screenshot and paste it in a word document (or equivalent). https://www.youtube.com/watch?v=fBBAGXjg2fk Task 1: Printing and Displaying Data (10 points) 1 ### 2 # Task 1: Printing and Displaying Data 3 # Scenario: Create a program that asks the user 4 # for their first name, last name, and year of birth. 5 # The program will then print a message like (Use f-strings) 6 # "Hello, [First Name] [Last name]! You are [Age] years old." 7 ####: 8 # YOUR CODE STARTS BELOW THIS LINE Test: Use your own name and a random date of birth to test your code. Task 2: Checking and Displaying Data Types (10 points) 1 ## 2 # Task 2: Checking Data Types 3 4 # Scenario: Write a program that takes user input 5 # and determines its data type, then displays # a message indicating the data type using f-strings. 6 7 8 # Instructions: 9 # Use the input() function to get user input. 10 # Use the type() function. 11 # DO NOT use IF conditions. 12 # Display the data type using an f-string. 13 Test: Use the following to test your code: "Monday", 89, "3459.89", -5, -23.990 Task 3: Creating Lists and Generating Sequences (10 points) # ####. 1 # 2 # TASK: Creating Lists and Generating Sequences 3 # SCENARIO: Write a program that generates a list of 4 # even numbers in a given range provided by the user 5 # using the range() and list() functions. 6 # INSTRUCTIONS: 7 # Use input() to get the range's limits from the user. 8 # Convert the input values to integers using the int() function 9 # Use range() to create a range of numbers 10 # Remember that the range() function excludes the ending value. 11 # Convert the range object to a list using the list() function. 12 # Display the list of even numbers. 13 # Do not use loops or IF conditions. 14 Test: Test your code with the following: range start = 5, range stop = 100, step = 15. Task 4: Employing print() for Output Formatting (10 points) 1 ##: 2 # TASK: Employing print() for Output Formatting 3 4 # SCENARIO: Write a program that converts temperatures 5 # from Celsius to Fahrenheit and 6 # displays the results in a neatly formatted table. 7 8 # INSTRUCTIONS: 9 # Use input() to get a range of temperatures in Celsius. 10 # Convert the input to Fahrenheit with 2 decimal points. 11 # F = (C * 9/5) + 32. 12 # Format the output in a table-like structure using print(). 13 ##; Test: Test your code with: range start = -20.0, range end = 52.0, step= 10.0 ERWCANA Task 5: Listing Attributes and Methods (10 points) 1 ##: 2 # TASK: Listing Attributes and Methods 3 4 # SCENARIO: Create a program that takes an object 5 # (e.g., a string or list) as input from the user 6 # and uses dir() to display its attributes and methods. 7 8 # INSTRUCTIONS: 9 # Retrieve all attributes and methods of the object. 10 # Display them way using the print() function. 11 # Display the data type of the object obtained from dir(). 12 ##### Test: Test your code with the following: [1], (1), "abcd", 6, and 78.9 ABAW.COMm
Expert Answer:
Related Book For
Intermediate Accounting Reporting and Analysis
ISBN: 978-1111822361
1st edition
Authors: James M. Wahlen, Jefferson P. Jones, Donald Pagach
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
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...
-
Generate a matrix of random integer temperatures in Fahrenheit from 70 to 100 for 10 weeks (rows) and 7 days per week (columns). The result should look something like this. Assume the first column is...
-
Propose a project management approach that might be successful in accommodating team members from the U. S. and Guatemala without allowing the individualism/collectivism contrast to be a problem
-
Suppose that we use the tree protocol of Section 16.1.5 to manage concurrent access to a B+-tree. Since a split may occur on an insert that affects the root, it appears that an insert operation...
-
Interpret the following information regarding Westlake Corporations cash flows. Net income Depreciation expense Profits before depreciation $680 125 805 Increase in accounts receivables (200)...
-
A firm is having a large piece of equipment overhauled. It anticipates that the machine will be needed for the next 12 years. The firm has an 8% minimum attractive rate of return. The contractor has...
-
4. The atomic numbers of elements, U, V, W and X are 13, 14, 16 and 17 respectively. Which one of the elements will react with oxygen to form an ionic compound? (Atomic number of oxygen is 8) X A. B....
-
1. How will you characterize Tupperwares distribution strategy in relation to the theoretical models? 2. What are the advantages and disadvantages of Tupperwares distribution model? 3. How do you...
-
Which of the following statements is supported by the trophic relationships shown in the diagram? Which of the following statements is supported by the trophic relationships shown in the diagram?...
-
Match the measures of worth in the first column with an appropriate definition from the second column. Measure of Worth (a) Annual worth Definitions (1) Converts all cash flows to a single sum...
-
True or False: If \(C W>0\), then \(P W>0\).
-
How is vega defined?
-
True or False: If \(\mathrm{PW}(\mathrm{A})>\mathrm{PW}(\mathrm{B})>\$ 0\) and \(\mathrm{PBP}(\mathrm{A}) \mathrm{PBP}(\mathrm{B})\).
-
Galvanized Products is considering purchasing a new computer system for their enterprise data management system. The vendor has quoted a purchase price of \(\$ 100,000\). Galvanized Products is...
-
1-Define, discuss, and give example by details and your suggestions about negotiations 2-Discuss Negotiations tools and techniques 3-Strengths Successful Negotiations 4-Advanced Negotiator 5-Types of...
-
Pearson Education, a publisher of college textbooks, would like to know if students prefer traditional textbooks or digital textbooks. A random sample of students was asked their preference and the...
-
At December 31, 2013, Roko Co. has two fixed price construction contracts in progress. Both contracts have monthly billings supported by certified surveys of work completed. The contracts are: a. The...
-
The inventories of Berry Company for the years 2013 and 2014 are as follows: Required: 1. Assume the inventory that existed at the end of 2013 was sold in 2014. Prepare the necessary journal entries...
-
Gundrum Company purchased equipment on January 1, 2009 for $850,000. The equipment was expected to have a useful life of 10 years and a salvage value of $30,000. Gundrum uses the straight-line method...
-
A child receives \($100\),000 as a gift, which is deposited in a bank account earning 6 percent compounded semiannually. If \($5\),000 is withdrawn at the end of each half year, how long will the...
-
The plan was to leave $5,000 on deposit in a savings account for 15 years at 6.5 percent interest compounded annually. It became necessary to withdraw $1,500 at the end of the fifth year. How much...
-
A deposit of $3,000 is made in a savings account that pays 7.5 percent interest compounded annually. How much money will be available to the depositor at the end of 16 years? a. $8,877 b. $10,258 c....
Study smarter with the SolutionInn App