Python 3 Questiones (write the program 2)

May 27th, 2015
Anonymous
Category:
Engineering
Price: $30 USD

Question description

Requirement:

1. You cannot import any module

2. The programs must be solved by Recursion 

3. Please use Python 3

4. Your answer must passed the tester.py before submit

-----------------------------------------

Question 1:Write a program that displays all the possible words that can be created from the given letters.

1.Your program should first ask the user for the name of the file that contains all the possible 
words

a. There will be one word on each line of the file 


b. All of the words in the file are lower case 


2.Next your program should ask the user for the letters. The letters will be given on 1 line with a space between each character. 


3.Your program should then display all of the possible words that can be created using those letters. 


a. Each letter can only be used one time


  1. For example if the letters input were: a p, then app would not be a valid word because it used p twice even though there was only 1 p entered. In order for app to be a valid word the user would have to at least enter 'a p p' as input.

b. The results should be displayed in alphabetical order

c. Each word should only be displayed one time.

4.Example


screen_shot_2015_05_26_at_8.17.15_pm.png

Tutor Answer

(Top Tutor) Studypool Tutor
School: UT Austin
PREMIUM TUTOR

Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1830 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors