Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE PYTHON 3 CPSC 217 Exercise 5: Forward and Backward Due: Tuesday November 21, 2007 at 11:55pm This exercise may be completed individually or

PLEASE USE PYTHON 3image text in transcribed

CPSC 217 Exercise 5: Forward and Backward Due: Tuesday November 21, 2007 at 11:55pm This exercise may be completed individually or as part of a group. If the exercise is completed as a group then all members of the group are expected to make a meaningful contribution to the solution. Task: Write a program that reads a collection of values from the user. After all of the values have been read, display all of the values in the opposite order from which they were entered, with one value appearing on each line. The user will indicate that no further values will be entered by entering a blank line. Sample Run #1: Enter a value (blank line to quit): Alice Enter a value (blank Iine to quit): Bob Enter a value (blank line to quit): Charlie Enter a value (blank ine to quit): Derek Enter a value (blank line to quit): Derek Charlie Bob Alice Sample Run #2: Enter a value (blank ine to quit): 50 Enter a value (blank line to quit): 50 Sample Run #3: Enter a value (blank line to quit): t Enter a value (blank line to quit): a Enter a value (blank line to quit): c Enter a value (blank ine to quit): o Enter a value (blank ine to quit): c Enter a value (blank line to quit): a Enter a value (blank line to quit): t Enter a value (blank line to quit): Grading: Your program will be graded by testing it with two different sets of input, which may be different from the examples shown above. Submission Instructions: Submit your solution as a Python source code file electronically to the Exercise 5 drop box in D2L. You do not need to submit a paper copy of your solution. If you choose to complete this exercise as part of group then each member of the group must submit a copy of the exercise using D2L

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions