Description
1 program assignment and the other one is write a paragraph about codes
Unformatted Attachment Preview
Use the fraction.py file located in the I:\kopp\outbox\CS 222 01\Programming Assignments\Chapter 01
folder. Complete the following:
1.
Modify the Constructor for the Fraction class so that GCD is used to reduce fractions
immediately. This means that the __add__ function no longer needs to reduce.
2.
Implement the remaining simple arithmetic operators (__sub__, __mul__, and __truediv__).
3.
Implement the remaining relational operators (__gt__, __ge__, __lt__, __le__, and __ne__).
4.
Modify the constructor for the Fraction class so that it checks to make sure that the numerator
and denominator are both integers. If either is not an integer the constructor should raise an
exception.
You must use the Fraction class created in class and located on the Instructor drive as shown above. If
you do not do this, you will receive a grade of 0.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section:
CS 222 01
Assignment:
Program Assignment 04
Due Date:
See above
Date Turned in:
Program Description: You write a short description of what the program will do
When you complete the program, do the following.
1. Turn in a printout of the source code
2. Create a folder with the following name: ProgramAssignment04
3. Copy your program to this folder
4. Copy the folder to your folder in the I:\kopp\inbox\CS 222 01 folder
Research the __radd__ method. Explain in a paragraph how it differs from __add__. When is it used?
Implement __radd__ in the Fraction class. This class can be found in the I:\kopp\outbox\CS 222
01\Program Assignments\Extra Credit folder.
Research the __iadd__ method. Explain in a paragraph how it differs from __add__. When is it used?
Implement __iadd__ in the Fraction class.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section:
CS 222 01
Assignment:
Program Assignment 02 Extra Credit
Due Date:
See above
Date Turned in:
Program Description: You write a short description of what the program will do
When you complete the program, do the following.
1. Create a folder with the following name: ProgramAssignment02EC
2. Copy your program and all appropriate files to this folder
3. Copy the folder to your folder in the I:\kopp\inbox\CS 222 01 folder
Purchase answer to see full attachment
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Review
Review
Anonymous
Great! 10/10 would recommend using Studypool to help you study.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
Auburn University Finance and Blockchain Discussion
Review the article below called "Finance and the Blockchain: A Primer." In 2-3 pages, discuss the article and explain how ...
Auburn University Finance and Blockchain Discussion
Review the article below called "Finance and the Blockchain: A Primer." In 2-3 pages, discuss the article and explain how blockchain and finance have integrated. Describe the future of blockchain and finance and how you foresee the current profession changing.
https://www.moneyandbanking.com/commentary/2018/5/13/finance-and-the-blockchain-a-primer
INFO 321 American Military University Week 8 Airline Industry Database Report
Note : Need Original WorkASSIGNMENT INSTRUCTIONSYou were just hired by an airline industry to create a database to record ...
INFO 321 American Military University Week 8 Airline Industry Database Report
Note : Need Original WorkASSIGNMENT INSTRUCTIONSYou were just hired by an airline industry to create a database to record the various airlines and the pilots that work for themDiscussions with the industry representatives focused on two initial entities, Airlines and Pilots; the following key points were agreed:1. Each pilot is assigned a unique PilotID.2. Each AirlineID is unique3. Each pilot may work for one airline, each airline can have many pilots.4. FName, LName, JobTitle and Salary describe each pilot (with the obvious meaning)5. AirlineID, NPlanes, NRoutes, NPilots describe each airline (NPlanes number of planes, NRoutes number of routes, NPilots number of pilots)6. No fields beyond those in the report are needed.The objective of this exercise is to demonstrate an understanding of some basic concepts covered in the course. The exercise is a straight forward application of those concepts – there are no “hidden” complexities – should you identify something in the key points or data that adds complexity, contact the instructor before submission – you may be over thinking the exercise.The sample data may not represent all possible values of each field – consider each field’s domain during the design.The objective is to replace the following report with a relational database. The submission will consist of a word compatible document to record the design process, and an Access DB.Here is the relational schema (table notation) for the above report / table:PilotAirlines (PilotID, FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilots)The functional dependencies are:PilotID - - > FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilotsPilotID - - > FName, LName, JobTitle, Salary, AirlineIDAirlineID - - > NPLanes, NRoutes, NPilotsThe specific tasks are listed below, the percentage in parenthesis corresponds to the grade weight for each task.Name your document Last Name_TermProject (i.e. Smith_TermProject). When you are asked to provide an explanation or description, include enough content to demonstrate that you understand the definition, term, concept, etc. and how it applies to this exercise.SUGGESTION: Review the Terms and Concepts Forum, especially the One-to-Many Normalization Process: Parts and Suppliers example. There is also a normalization MP4 file that can be downloaded from the Resources section.Incorporate the following outline in your submission – include the section numbers – not the questions or other content from the instructions.1) Review the existing report, functional dependencies provided and the sample data (as well as field domains and common knowledge) and document any assumptions you feel are appropriate (beyond those in the key points) and identify initial entities (person, place, thing). (10%)2 Define functional dependency, and explain one row of the functional dependencies provided above in plain English (use field names). (15%) (you do not need to explain partial or transitive dependency)3) Based on multiplicity - explain the relationship between the initial Entities in plain English – (either one-to-many, or many-to-many). (15%)4) Design: specify all tables and fields at each normal form levela) First Normal Forum (1NF) assessment / action – if needed 10%Copy the 1NF definition from the text (include quotes and page number)Assess the UNF table provided and if necessary, make the changes needed to conform to the 1NF definition. Document the resulting 1NF table(s) using relational schema notation or spreadsheet format (see the above example or page 111 Figure 4.2.6 of the text).Explain how each table(s) meets the 1NF definition (use field names)b) Second Normal Form (2NF) assessment / action – if needed 10%Copy the 2NF definition from the text (include quotes and page number)Assess the 1NF table(s) in the previous section and if necessary, make the changes needed to conform to the 2NF definition. Document the resulting 2NF table(s) using relational schema notation or spreadsheet format.Explain how each table meets the 2NF definition (use field names)c) Third Normal Form (3NF) assessment / action if needed 10%Copy the 3NF definition from the text (include quotes and page number)Assess the 2NF table(s) in the previous section and if necessary, make the changes needed to conform to the 3NF definition. Document the resulting 3NF table(s) using relational schema notation or spreadsheet format.Explain how each table meets the 3NF definition (use field names)5) Use the 3NF tables in your design, to create an new MS Access database, load the sample data provided,Name your database Last Name_TermProject (i.e. Smith_TermProject). (5%).6) Create a Query, that provides the results for the following request: List each PilotID, FirstName, LastName, the Airline each pilot works for, sorted by pilot. (5%)7) Create a Form: New Pilot Input (5%)8) Create a Report: Pilot List – list all pilots, their first and last names, and Salary (5%)Upload the database to the assignment area as one of the deliverables9) Submission content organization, clarity, spelling and grammar (10%)Contact the instructor with any questions.
ER-Diagram Worksheet
Question 1 Considering the following ER-Diagram, answer the following questions: What is the main role of an ER diagra ...
ER-Diagram Worksheet
Question 1 Considering the following ER-Diagram, answer the following questions: What is the main role of an ER diagram in data modelling?How many courses each student can have?What is the relationship degree between the entities?Is there an associative entity, if yes can you name it? What is uniquely identifying the student entity table (Primary Key)? Question 2 Draw a class diagram showing classes, attributes, operations, and relationships. If you believe that you need to make additional assumptions, do so. Scenario: several employees are working at a company. The attributes of the employees include the employee ID, Employee Name, address, DOB. The company is running different projects. Projects attributes include the project name, the start date and end date. Each employee may work on one or more projects or may not be assigned to a project. However, each project must be assigned to at least one employee. Make sure that you identify the PK for each class Your diagram must include Associative class Implement Generalization Question 3 The following INSTRUCTOR relation shows the information of instructors and the training sessions they offer. Each instructor can give any session at a chosen date. Why INSTRUCTOR relation is not in 2NF? How can you convert it be in 2NF? Instructor_ID InstructorName SessionID Session_Date 1 Ahmad S1 June 1st 1 Ahmad S2 July 1st 2 Ali S2 June 1st 3 Mohammad S3 August 15th Question 4 The following CAR relation is in 3NF. What an attribute that if added to the relation, it would make it not in 3NF? Justify your answer. CAR (CAR MODEL, CAR_YEAR, DEALERSHIP). Assume that each car model is only sold by one dealership.
MGT6660 Central Michigan University Artificial Intelligence Questions
will need all the answers in an own write up within 3 hours. the question paper file is below. the subject requires a lot ...
MGT6660 Central Michigan University Artificial Intelligence Questions
will need all the answers in an own write up within 3 hours. the question paper file is below. the subject requires a lot experience in artificial intelligence and should have good writing skills. all the questions have to be answered in the same document given below. thank you.
Linux GUI interface in Linux system administration.
Assignment 1: Linux GUIDue Week 6 and worth 50 pointsAs explained in the textbook, UNIX / Linux initially only provided a ...
Linux GUI interface in Linux system administration.
Assignment 1: Linux GUIDue Week 6 and worth 50 pointsAs explained in the textbook, UNIX / Linux initially only provided a command line interface for interaction with the operating system (OS). The introduction of a Graphical User Interface (GUI) to UNIX / Linux OS makes it easier to administer a Linux system.Write a two to three (2-3) page paper in which you:Discuss the primary advantages of GUI over a textual (command-line) interface in Linux system administration.Describe two (2) linux desktop environments and explain how they generally function.Recommend one (1) scenario or situation that demonstrates when each GUI system you described previously (two [2] total scenarios) would be most suitable to install.Use at least three (3) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.Format your assignment according to the following formatting requirements:Typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page is not included in the required page length.Include a reference page. Citations and references must follow APA format. The reference page is not included in the required page length.The specific course learning outcomes associated with this assignment are:Examine the UNIX / Linux shell command line, and command-line utilities.Use technology and information resources to research issues in operating systems.Write clearly and concisely about UNIX / Linux topics using proper writing mechanics and technical style conventions.Grading for this assignment will be based on answer quality, logic / organization of the paper, and language and writing skills, using this rubric.
ISSC411 Assignment 8 (Wk8) 3 if 3
In 1-2 pages conduct a comparative analysis of Application Vulnerability Assessments and Application Penetration Tests. Ma ...
ISSC411 Assignment 8 (Wk8) 3 if 3
In 1-2 pages conduct a comparative analysis of Application Vulnerability Assessments and Application Penetration Tests. Make sure to include an analysis of the following variances:ScopeMethodologyTechniquesToolsThe assignment must be a minimum of 1-full page in length with a minimum of 2 - outside sources. Please be sure to follow APA guidelines for citing and referencing source. Please use APA formatting and in text cititation Please No Plagiarism
Similar Content
Research Paper
threaten fundamental constitutional rights, such as people’s ability to use their property as they see fit. Critics also...
Management Information Systems Discussion
Write a critical evaluation of your learning outcome. In your response, consider:1. How Management Information systems rel...
Marquette University Cyber Security Worksheet
...
IT 405 Saudi Electronic University Scripting Languages Discussion
Post your answer to the following Question (50 –100 words):Discuss various server-side scripting and client-side scripti...
IGlobal University Computer Science Mixing Light & Mixing Paint Pigments Paper
Mixing two or three of the three primary colors of light with
varying degrees of intensity can produce a wide range of
oth...
Submit your corrected final proposal here. You must make sure that all corrections to this proposal have been included.
Submit your corrected final proposal here. You must make sure that all corrections to this proposal have been included.Ple...
Enterprise Risk Management Replacing Vehicles.
When replacing the old model with a new one, the three major factors that the company should consider includes; cost, avai...
Advantages And Disadvantages Of Treating Clustering As An Optimisation Problem
Clustering is also known as cluster analysis. It involves grouping a number of objects in such a way that objects which ha...
Octopus Data Flow
Business analysis systems need to maintain a high credential, in everything they are involved in. Much of these credential...
Related Tags
Book Guides
Blink
by Malcolm Gladwell
Epic of Gilgamesh
by Unknown
The Dispossessed
by Ursula Kroeber Le Guin
Dead Poets Society
by Nancy Horowitz Kleinbaum
Milkweed
by Jerry Spinelli
The Good Earth
by Pearl S. Buck
Othello
by Wiliam Shakespeare
The Underground Railroad
by Colson Whitehead
We Were Eight Years in Power
by Ta-Nehisi Coates
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
Auburn University Finance and Blockchain Discussion
Review the article below called "Finance and the Blockchain: A Primer." In 2-3 pages, discuss the article and explain how ...
Auburn University Finance and Blockchain Discussion
Review the article below called "Finance and the Blockchain: A Primer." In 2-3 pages, discuss the article and explain how blockchain and finance have integrated. Describe the future of blockchain and finance and how you foresee the current profession changing.
https://www.moneyandbanking.com/commentary/2018/5/13/finance-and-the-blockchain-a-primer
INFO 321 American Military University Week 8 Airline Industry Database Report
Note : Need Original WorkASSIGNMENT INSTRUCTIONSYou were just hired by an airline industry to create a database to record ...
INFO 321 American Military University Week 8 Airline Industry Database Report
Note : Need Original WorkASSIGNMENT INSTRUCTIONSYou were just hired by an airline industry to create a database to record the various airlines and the pilots that work for themDiscussions with the industry representatives focused on two initial entities, Airlines and Pilots; the following key points were agreed:1. Each pilot is assigned a unique PilotID.2. Each AirlineID is unique3. Each pilot may work for one airline, each airline can have many pilots.4. FName, LName, JobTitle and Salary describe each pilot (with the obvious meaning)5. AirlineID, NPlanes, NRoutes, NPilots describe each airline (NPlanes number of planes, NRoutes number of routes, NPilots number of pilots)6. No fields beyond those in the report are needed.The objective of this exercise is to demonstrate an understanding of some basic concepts covered in the course. The exercise is a straight forward application of those concepts – there are no “hidden” complexities – should you identify something in the key points or data that adds complexity, contact the instructor before submission – you may be over thinking the exercise.The sample data may not represent all possible values of each field – consider each field’s domain during the design.The objective is to replace the following report with a relational database. The submission will consist of a word compatible document to record the design process, and an Access DB.Here is the relational schema (table notation) for the above report / table:PilotAirlines (PilotID, FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilots)The functional dependencies are:PilotID - - > FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilotsPilotID - - > FName, LName, JobTitle, Salary, AirlineIDAirlineID - - > NPLanes, NRoutes, NPilotsThe specific tasks are listed below, the percentage in parenthesis corresponds to the grade weight for each task.Name your document Last Name_TermProject (i.e. Smith_TermProject). When you are asked to provide an explanation or description, include enough content to demonstrate that you understand the definition, term, concept, etc. and how it applies to this exercise.SUGGESTION: Review the Terms and Concepts Forum, especially the One-to-Many Normalization Process: Parts and Suppliers example. There is also a normalization MP4 file that can be downloaded from the Resources section.Incorporate the following outline in your submission – include the section numbers – not the questions or other content from the instructions.1) Review the existing report, functional dependencies provided and the sample data (as well as field domains and common knowledge) and document any assumptions you feel are appropriate (beyond those in the key points) and identify initial entities (person, place, thing). (10%)2 Define functional dependency, and explain one row of the functional dependencies provided above in plain English (use field names). (15%) (you do not need to explain partial or transitive dependency)3) Based on multiplicity - explain the relationship between the initial Entities in plain English – (either one-to-many, or many-to-many). (15%)4) Design: specify all tables and fields at each normal form levela) First Normal Forum (1NF) assessment / action – if needed 10%Copy the 1NF definition from the text (include quotes and page number)Assess the UNF table provided and if necessary, make the changes needed to conform to the 1NF definition. Document the resulting 1NF table(s) using relational schema notation or spreadsheet format (see the above example or page 111 Figure 4.2.6 of the text).Explain how each table(s) meets the 1NF definition (use field names)b) Second Normal Form (2NF) assessment / action – if needed 10%Copy the 2NF definition from the text (include quotes and page number)Assess the 1NF table(s) in the previous section and if necessary, make the changes needed to conform to the 2NF definition. Document the resulting 2NF table(s) using relational schema notation or spreadsheet format.Explain how each table meets the 2NF definition (use field names)c) Third Normal Form (3NF) assessment / action if needed 10%Copy the 3NF definition from the text (include quotes and page number)Assess the 2NF table(s) in the previous section and if necessary, make the changes needed to conform to the 3NF definition. Document the resulting 3NF table(s) using relational schema notation or spreadsheet format.Explain how each table meets the 3NF definition (use field names)5) Use the 3NF tables in your design, to create an new MS Access database, load the sample data provided,Name your database Last Name_TermProject (i.e. Smith_TermProject). (5%).6) Create a Query, that provides the results for the following request: List each PilotID, FirstName, LastName, the Airline each pilot works for, sorted by pilot. (5%)7) Create a Form: New Pilot Input (5%)8) Create a Report: Pilot List – list all pilots, their first and last names, and Salary (5%)Upload the database to the assignment area as one of the deliverables9) Submission content organization, clarity, spelling and grammar (10%)Contact the instructor with any questions.
ER-Diagram Worksheet
Question 1 Considering the following ER-Diagram, answer the following questions: What is the main role of an ER diagra ...
ER-Diagram Worksheet
Question 1 Considering the following ER-Diagram, answer the following questions: What is the main role of an ER diagram in data modelling?How many courses each student can have?What is the relationship degree between the entities?Is there an associative entity, if yes can you name it? What is uniquely identifying the student entity table (Primary Key)? Question 2 Draw a class diagram showing classes, attributes, operations, and relationships. If you believe that you need to make additional assumptions, do so. Scenario: several employees are working at a company. The attributes of the employees include the employee ID, Employee Name, address, DOB. The company is running different projects. Projects attributes include the project name, the start date and end date. Each employee may work on one or more projects or may not be assigned to a project. However, each project must be assigned to at least one employee. Make sure that you identify the PK for each class Your diagram must include Associative class Implement Generalization Question 3 The following INSTRUCTOR relation shows the information of instructors and the training sessions they offer. Each instructor can give any session at a chosen date. Why INSTRUCTOR relation is not in 2NF? How can you convert it be in 2NF? Instructor_ID InstructorName SessionID Session_Date 1 Ahmad S1 June 1st 1 Ahmad S2 July 1st 2 Ali S2 June 1st 3 Mohammad S3 August 15th Question 4 The following CAR relation is in 3NF. What an attribute that if added to the relation, it would make it not in 3NF? Justify your answer. CAR (CAR MODEL, CAR_YEAR, DEALERSHIP). Assume that each car model is only sold by one dealership.
MGT6660 Central Michigan University Artificial Intelligence Questions
will need all the answers in an own write up within 3 hours. the question paper file is below. the subject requires a lot ...
MGT6660 Central Michigan University Artificial Intelligence Questions
will need all the answers in an own write up within 3 hours. the question paper file is below. the subject requires a lot experience in artificial intelligence and should have good writing skills. all the questions have to be answered in the same document given below. thank you.
Linux GUI interface in Linux system administration.
Assignment 1: Linux GUIDue Week 6 and worth 50 pointsAs explained in the textbook, UNIX / Linux initially only provided a ...
Linux GUI interface in Linux system administration.
Assignment 1: Linux GUIDue Week 6 and worth 50 pointsAs explained in the textbook, UNIX / Linux initially only provided a command line interface for interaction with the operating system (OS). The introduction of a Graphical User Interface (GUI) to UNIX / Linux OS makes it easier to administer a Linux system.Write a two to three (2-3) page paper in which you:Discuss the primary advantages of GUI over a textual (command-line) interface in Linux system administration.Describe two (2) linux desktop environments and explain how they generally function.Recommend one (1) scenario or situation that demonstrates when each GUI system you described previously (two [2] total scenarios) would be most suitable to install.Use at least three (3) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.Format your assignment according to the following formatting requirements:Typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page is not included in the required page length.Include a reference page. Citations and references must follow APA format. The reference page is not included in the required page length.The specific course learning outcomes associated with this assignment are:Examine the UNIX / Linux shell command line, and command-line utilities.Use technology and information resources to research issues in operating systems.Write clearly and concisely about UNIX / Linux topics using proper writing mechanics and technical style conventions.Grading for this assignment will be based on answer quality, logic / organization of the paper, and language and writing skills, using this rubric.
ISSC411 Assignment 8 (Wk8) 3 if 3
In 1-2 pages conduct a comparative analysis of Application Vulnerability Assessments and Application Penetration Tests. Ma ...
ISSC411 Assignment 8 (Wk8) 3 if 3
In 1-2 pages conduct a comparative analysis of Application Vulnerability Assessments and Application Penetration Tests. Make sure to include an analysis of the following variances:ScopeMethodologyTechniquesToolsThe assignment must be a minimum of 1-full page in length with a minimum of 2 - outside sources. Please be sure to follow APA guidelines for citing and referencing source. Please use APA formatting and in text cititation Please No Plagiarism
Earn money selling
your Study Documents