Solve the programs

0 comments

1. Write a Python program using the Python IDE based on recursion with trees that is both depth first and breadth first searches.

The Python program to be developed will demonstrate the use of both depth-first (DFS) and breadth-first (BFS) searches. A tree node structure will be developed that will be used both for DFS and BFS searches. The program will apply recursion both for the DFS and BFS searches to completion of the entire DFS and BFS. Also, the Python program will provide as output some of the intermediate nodes that are transverse during the execution of the DFS and BFS. This output of the intermediate nodes searched will demonstrate the different paths executed during a DFS versus BFS.

Problem

Develop functions to demonstrate understanding of implementing a recursive depth first search (DFS) and an iterative breadth first search (BFS) in Python using a simple graph made of nodes. This example will use nodes A, B, C, D, and E connected as follows:

A —–
/ |
B-D-C |
| / |
E —–

The program must have the following:

  • Demonstration of writing a recursive depth first search (DFS) function.
  • Demonstration of writing an iterative breadth first search (BFS) function.

Documentation Guidelines:

Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the ‘<‘ and ‘>’ angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program’s sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.

Deliverable(s):

Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.

2.Develop a simple Python program to demonstrate understanding of using the Tkinter module to design a simple widget and configure it using the layout manager. Then add an event handler that will accept text input to the button and display the content of the text when using the mouse to click on the “click here” button.

The program must have the following:

  1. Demonstration of using the Tkinter module to construct a simple widget and configure it using the layout manager.
  2. A GUI application as the output with a nonfunctioning button.
  3. Demonstration of using Tkinter to create an event handler that displays the text content of the button after executing the “click here” button.

Documentation Guidelines:

Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the ‘<‘ and ‘>’ angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program’s sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.

Deliverable(s):

Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.

3.For this assignment, you will develop working examples of a graphical user interface (GUI) and event handling and that demonstrate the following:

  • Working code with screenshots of a Python GUI application that includes 5 design widgets of your choosing
  • Working code with screenshots of event handling in Python based on 3 events of your choosing

Be sure to include a brief narrative of your code where you explain what the code is doing.

Documentation Guidelines:

Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the ‘<‘ and ‘>’ angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program’s sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.

Deliverable(s):

Your deliverable should be a Word document with screenshots showing the GUI and event handling you have created. Also, discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.

4. This is a file a did just redo this one with different data

Using the database completed so far, extend the design to accommodate degree programs. The new design should incorporate the following functionalities:

  • A degree has a name and description.
  • What degree is the student working towards? A student can only work on one degree at a time.
  • What classes are necessary to obtain a specific degree?
  • Provide the DDL script to add the tables for the new design changes. Include an updated diagram that shows all the tables in the system.
  • Write the DML script to insert 3 test records in each of the tables in the system. This data will be necessary to write the queries in the next assignment.
  • Copy and paste the work into your Key Assignment document and include screen shots of each step, describe what you did for each step and paste in the actual SQL text used to perform each step. Upload your document to the Submitted Tasks section.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}