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

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago

Question

3. What are the current trends in computer hardware platforms?

Answered: 1 week ago