Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SISO Python programs Write a SISO program to perform the following computations. Please simply write your program source code in your write-up, instead of submitting

SISO Python programs

Write a SISO program to perform the following computations. Please simply write your program source code in your write-up, instead of submitting separate .py files. Make sure your programs are String In String Out (they take in a single string parameter and return a single string value). Hint: make sure to run your programs with a few inputs to ensure they are correct! a. Take in an integer and double it. b. Take in a list of integers (choose a string encoding of your choice) and add up all the numbers that are even and subtract all the numbers that are odd. c. Take in a list of string words (choose a string encoding of your choice) and output the unique ones, sorted alphabetically. Example showing in Python list format because its up to you decide on your string encoding: [banana, apple, banana, orange, coconut, coconut] [apple, banana, coconut, orange]

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: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Describe three other types of visual aids.

Answered: 1 week ago