Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python please!!!!! In python please!!!!!!!!!!!!!! stack within a process. You'll also design and implement additional class(es) that will use the Process class. - Function

In Python please!!!!!image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedIn python please!!!!!!!!!!!!!!

stack within a process. You'll also design and implement additional class(es) that will use the Process class. - Function Class - A Function contain only two pieces of data: its name and if it can handle thrown exceptions - Process Class - A Process contains a call stack, which is a stack of function objects File overview The input file you receive will consist of the commands listed below. After each command is executed display appropriate output to terminal. If a command is impossible (e.g. calling a function when no processes are in the queue) display an appropriate error message. Example File START firefox CALL navigate yes CALL search no CALL download no RETURN RETURN RETURN RETURN Note this file would then display the following process list: firefox started firefox calls navigate firefox calls search firefox calls download firefox has download return firefox has search return firefox has navigate return firefox has main return firefox exited normally Example File START firefox CALL navigate yes CALL search no CALL download no RAISE Note this file would then display the following process list: firefox started firefox calls navigate firefox calls search firefox calls download firefox encountered a raised exception by: download firefox ends download due to unhandled exception firefox ends search due to unhandled exception firefox has exception handled by: navigate Stacks You will create node-base implementation of the Stack class. The Node class can be as simple as this: class Node: def _init_(self, entry): self.entry = entry self.next = None Your Stack class will need the following functionality: - 10pts Attendance - 20pts Modularity - Sensible class design - Completely object oriented (e.g. your main should invoke some kind of executive class) - 45pts Runtime functionality - Compatible with the provide format - You may assume the file will be formatted correctly but you need to be able to detect if a command is possible and react accordingly. - Well formatted output - 15 pts Stability - There should be zero unhanded exceptions when provided with a properly formatted file - Even if the command would cause an Exceptions to be raised, your program should be able to handle it - 10pts Comments and documentation: - Please provide docstrings in each of your functions and methods

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_2

Step: 3

blur-text-image_3

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 Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

Does it avoid using personal pronouns (such as I and me)?

Answered: 1 week ago

Question

Does it clearly identify what you have done and accomplished?

Answered: 1 week ago