80% CSC1101 Introduction to Computing Due Tuesday, May 3, midnight Worksheet #3 Using replit.com for programming In D21,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

80% CSC1101 Introduction to Computing Due Tuesday, May 3, midnight Worksheet #3 Using replit.com for programming In D21,

Post by answerhappygod »

80 Csc1101 Introduction To Computing Due Tuesday May 3 Midnight Worksheet 3 Using Replit Com For Programming In D21 1
80 Csc1101 Introduction To Computing Due Tuesday May 3 Midnight Worksheet 3 Using Replit Com For Programming In D21 1 (34.75 KiB) Viewed 30 times
80% CSC1101 Introduction to Computing Due Tuesday, May 3, midnight Worksheet #3 Using replit.com for programming In D21, see "Recording Intro to using replit.com. Do the following programming exercises in replit.com You will be partly graded on style, so make sure variable and function names are appropriate (lower case, with words separated by underscores, and meanful, descriptive names). Download each program you do as part ola zip file (this is an option in replit.com) Submit each zip file in D2L under "Assessments / Assignments" (there may be a link from the weekly announcements). Program #1 Rectify a list In the main part of the program: 1. Input an integer lower cut-off value and an integer upper cut-off value 2. Input the number of elements in a list. 3. Input the (integer) elements of the list. 4. Print the list 5. Call a function that takes the list and cut-off values as arguments (and returns nothing). In the function A. Replace all values less than the lower cut-off with the lower cut-off and all values greater than the upper cut-off with the upper cut-off B.Sort the list After the function returns and back in the main part of the program 6. Print the modified list. Figure out the necessary prompts for the inputs and the desired outputs by looking at this example session below. Numbers in red are a possible set of inputs and are not what you print out Lower Cutoff-100 Upper Cutoff> 100 Enter the number of data tema>> 4 Data value #1> 12 2-259 Data value #2> Data value #3> 113 Data value 84 23 Original liat: 112,-259, 113,-23) Modified list 1-100,-21, 12, 100 ✰ S C 4 R F Search or type URL % 5 V T G > 6 Y B 27 H B U N CO 8 J 1 C K M 6
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply