Description
What is exception propagation? Give an example of a class that contains at least two methods, in which one method calls another. Ensure that the subordinate method will call a predefined Java method that can throw a checked exception. The subordinate method should not catch the exception. Explain how exception propagation will occur in your example.
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
Really helped me to better understand my coursework. Super recommended.
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
2 pages
Network Traffic And Exploit Identification
1. What was the first connection made, to where, and via what protocol? In here client 192.168.2.62 using the source port ...
Network Traffic And Exploit Identification
1. What was the first connection made, to where, and via what protocol? In here client 192.168.2.62 using the source port 44389 tried to connect to IP ...
Characteristics of Scripting Languages Information Technology Paper
In 2–3 pagesThere are a large number of tasks involved in information technology and programming, and many of these task ...
Characteristics of Scripting Languages Information Technology Paper
In 2–3 pagesThere are a large number of tasks involved in information technology and programming, and many of these tasks can be automated using scripting technology. The ability to use scripting correctly will save significant time and leverage available resources in many ways. The first step toward better productivity is to understand how scripting languages work and how they can be used. For this assignment, you will begin to learn the characteristics of scripting languages and gain an understanding of how to select the right scripting tool for a specific task. Prepare a document to submit your results: Use Word Title Page Course number and name Project name Your name Date Identify a scenario where scripting would be useful to automate a task. Define at least 5 requirements of a scripting language that would be necessary for the task. Identify 2 scripting language candidates that meet the requirements. Select 1 of the scripting languages, and justify the selection based on how well it meets the stated requirements. In 300 wordsScripting languages, also known as interpreted languages, are used for many purposes, and there are many languages to choose from. These programming languages also offer a wide variety of functionality, so selection of an appropriate language is important when considering the use of a scripting language. Use the Library and Internet to find information about scripting/interpreted languages. Select 2 languages: Describe the primary features, strengths, and weaknesses of each language. Identify a task that would be an appropriate use of each language. Provide a small sample of code from each language, and discuss the functionality of the sample code. Include at least 1 reference to research sources. Cite all references using APA format. Grammar, spelling, punctuation, and format should be correct and professional
Concord University Introduction to Computer Programming Lab Report
Assignment #9The parts below describe a single large program so you will only need to turn in one file for this assignment ...
Concord University Introduction to Computer Programming Lab Report
Assignment #9The parts below describe a single large program so you will only need to turn in one file for this assignment. I suggest that you complete each part and save each part for your own use in the event that something does not work. Also, the programs below utilize a series of external data files - click here to download these files as a ZIP archive.Part 1You just finished administering the final exam for all of the students in the "Introduction to Computer Programming" classes this semester. The exam was a 25 question multiple choice exam, and it is your job to grade the exams. You have all of the scores stored in a series of text files (click here to download these files).To begin, download the data files and store them in a folder on your computer. Then create a new Python program inside of this folder called "YourName_Assignment09.py". Make sure your source code file is inside of the same folder as the data files you just downloaded!Next, write a program that lets the user type in the name of a file. Attempt to open the supplied file for read access. If the file exists you can print out a confirmation message. If the file doesn't exist you should tell the user that the file cannot be found. Hint: use a try/except block to do this (don't just use a series of "if" statements - we want this program to be as "generic" as possible).You will not get credit for this part of the program if you write something like the following to identify valid data files:filename = input("Enter a filename: ")
if filename == "class1":
# open class1.txt
elif filename == "class2":
# open class2.txt
else:
print ("Sorry, I can't find this filename")Here's a sample running of the program:Enter a class file to grade (i.e. class1 for class1.txt): foobar
File cannot be found.
Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txtundefinedPart 2Next, you are going to write a program to grade the exams for a given section. The exam was a 25 question multiple choice exam. Here are the answers to the exam:answerkey = "B,A,D,D,C,B,D,A,C,C,D,B,A,B,A,C,B,D,A,C,A,A,B,D,D"Each data file contains a series of student responses in the following format:N12345678,B,A,D,D,C,B,D,A,C,C,D,B,A,B,A,C,B,D,A,C,A,A,B,D,DorN12345678,B,,D,,C,B,,A,C,C,,B,A,B,A,,,,A,C,A,A,B,D,The first number is the student’s ID number. The following 25 letters are the student responses to the exam. If there is no letter following a comma, this means the student skipped answering the question.Note that some lines of data may be corrupted! For example, this line of data does not have enough answers:N12345678,B,A,D,D,C,B... and this line of data has too many answers:N12345678,B,A,D,D,C,B,D,A,C,C,D,B,A,B,A,C,B,D,A,C,A,A,B,D,D,A,B,C,D,EIf you encounter a line of data that is un-usable you should make a note of it and not use the line in your calculations. Report to the user at the end of the program how many unusable lines of data you found.Your program should open up the file specified by the user and read in the data. It should then compute the following:The total # of students represented in the fileThe total # of invalid lines of data found in the fileThe grade for each student. This can be done by comparing the student's answers to the answer key above. Scores can be computed using the following rubric:+4 points for every right answer0 points for every skipped answer-1 points for every incorrect answerThe highest scoreThe lowest scoreThe average score (mean)Here's a sample running of your program:Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txt
Grade Summary:
Total students: 20
Unusable lines in the file: 0
Highest score: 91
Lowest score: 59
Mean score: 75.60Hints: Use the "split" method to split apart the data from the file. You may need to use this method a few times along with a loop or two. Hint: think about the order in which you need to split your items. For example, your file is organized so that one student's record occupies an entire line in the file. Splitting first on the line break will isolate each student's data. Then you will need to further split each item based on the separator character to pull out the responses for each student.Hint: once you've scored the students you should use a list to store indivdual student scores - you can then compute statistics after you've examined every student in the file.Solutions: you can view the expected solutions for all of the data files by clicking here. Note that this solution file also includes the "median", "mode" and "range" - you will be computing these values in the next part of the assignment.undefinedPart 3Next, have your program compute the following based on each data file:The median value (Sort the grades in ascending order. If the # of students is odd you can take the middle of all the grades (i.e. [0, 50, 100] - the median is 50). If the # of students is even you can compute the median by averaging the middle two values (i.e. [0, 50, 60, 100] - the median is 55)The mode value (the grade that occurs most frequently - i.e. [0, 50, 50, 100] - the mode is 50). Hint: you will probably want to create two new lists to do this. One new list canhold the UNIQUE test scores found and the other can hold the # of times that score has been seen. For example:
unique = [100,90,80]
seen = [1,5,3]Hint: use the "in" operator, the "append" method and the max function to help you solve this problem!The range (the difference between the largest and smallest grade in the set)Here's a sample running of your program for class1:Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txt
Grade Summary:
Total students: 20
Highest score: 91
Lowest score: 59
Mean score: 75.60
Median score: 73.0
Mode: 73
Range: 32undefinedPart 4Finally, have your program generate a "results" file that contains the detailed results for each student in your class. Each line of this file should contain the student’s ID number, a comma, and then their grade truncated to 2 decimal points. You should name this file based on the original filename supplied -- for example, if the user wants to analyze "class1.txt" you should store the results in a file named "class1_grades.txt"Here's a sample of what "class1_grades.txt" should look like. You can download all result files by clicking here.N00000001,59.00
N00000002,70.00
N00000003,84.00
N00000004,73.00
N00000005,83.00
N00000006,66.00
N00000007,88.00
N00000008,67.00
N00000009,86.00
N00000010,73.00
N00000011,86.00
N00000012,73.00
N00000013,73.00
N00000014,78.00
N00000015,72.00
N00000016,91.00
N00000017,66.00
N00000018,78.00
N00000019,78.00
N00000020,68.00undefinedPart 5As you can see, some students didn't do very well on their exams. Add a feature to your program that lets the user "curve" the test scores so that they are adjusted in such a way that the mean score is increased to a desired level. Only accept positive curve values. Then re-generate the "class_grades.txt" file to include this information.You can simply add the curve value to each student's score (i.e. if the user is curving the exam from a 75 to an 80 you would add +5 to each student score).Here's a sample running of your program:Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txt
Grade Summary:
Total students: 20
Unusable lines in the file: 0
Highest score: 91
Lowest score: 59
Mean score: 75.60
Median score: 73.0
Mode: 73
Range: 32
Would you like to curve the exam? 'y' or 'n': y
Enter a desired mean (i.e. 75.0 to raise the mean score to 75.0): -5
Invalid curve, try again.
Enter a desired mean (i.e. 75.0 to raise the mean score to 75.0): 80.0
Done! Check your grade file!And here's a copy of the grade file that should be generated for class1 with a curved score of 80.0 - note the 3rd column contains the curved score (the 1st and 2nd columns are the same):N00000001,59,64
N00000002,70,75
N00000003,84,89
N00000004,73,78
N00000005,83,88
N00000006,66,71
N00000007,88,93
N00000008,67,72
N00000009,86,91
N00000010,73,78
N00000011,86,91
N00000012,73,78
N00000013,73,78
N00000014,78,83
N00000015,72,77
N00000016,91,96
N00000017,66,71
N00000018,78,83
N00000019,78,83
N00000020,68,73
NEC Lending Club Data Programming Worksheet
Nutrition Case Study
The main objective is to write a fully executed R-Markdown program performing regression prediction f ...
NEC Lending Club Data Programming Worksheet
Nutrition Case Study
The main objective is to write a fully executed R-Markdown program performing regression prediction for the response variable using the best models found for kNN, Random Forest and XGBoost techniques predicting the response variable in the Nutrition case study. Make sure to describe the final hyperparameter settings of all algorithms that were used for comparison purposes.
You are required to clearly display and explain the models that were run for this task and their effect on the reduction of the Cost Function.
Points will be deducted in case you fail to explain the output.
Please note that all code assignments must be submitted as a screenshot with a slice of your desktop showing the timestamp.
If the time and date are not visible, you will be graded 0.
37 pages
20170914013143software Engineering Chapters 1 2 3
Analyze some of the issues involved in producing a simple program: Understand the activities involved in writing even a si ...
20170914013143software Engineering Chapters 1 2 3
Analyze some of the issues involved in producing a simple program: Understand the activities involved in writing even a simple program.
MongoDB 1 (DB)
Key Value id “20032-2017-ACME” certificate_number 9998888 business_name “ACME Explosives” date Today’s date resu ...
MongoDB 1 (DB)
Key Value id “20032-2017-ACME” certificate_number 9998888 business_name “ACME Explosives” date Today’s date result “Business Padlocked” sector “Explosive Retail Dealer – 999” address number -> 1721 street -> Boom Road city -> BRONX zip -> 10463
Similar Content
IT448 SEU Small Android Java Application for A Project
1 - The app must contain at least 4 runnable and navigable activities2 - The app must have an appealing Interface3 - The a...
Temple University Matlab Questions
۳.
The solution to the system of linear equations is:
3x + 4y – 2z = -5
4x + 3y +z = 3
2x + 3y – 2z = -6
[-9, 10, 9]
...
UMGC Java Code Question
Use the Java class you posted last week (corrected based on any feedback you may have received) and add encapsulation to i...
CEIS 209 DeVry University Composition and Inheritance Project
This is the culmination of everything you have learned up to this point. You will complete your Employee pay form by addin...
CSE Miami University Visual Studio C Programming Algorithm Code
This is a C++ program question. Please use Visual Studio to complete this. Thank you....
University of Phoenix Wk 2 Python Control Statements Discussion
The term structure, as it relates to programming, refers to the decisions you make to design your program to best meet its...
Progress
A schema of a hospital (business) and their bed types 2. Question 2: identifying the fact dimensions from a fact table Qu...
10
def funcRemoveDup(S): “”" Complexity - O(n) Space Complexity - O(n) “”" data_set = dict() # dictionary which will ...
Opencv
1a. Use pickle.load to open this dataset. Describe the data structure in the dataset. 1b. Find the camera matrix with the ...
Related Tags
Book Guides
Black Beauty
by Anna Sewell
The 7 Habits of Highly Effective People
by Stephen R. Covey
Too Much and Never Enough
by Mary L. Trump
Tess of the DUrbervilles
by Thomas Hardy
The Tipping Point
by Malcolm Gladwell
The Secret Life of Bees
by Sue Monk Kidd
Twelve Years A Slave
by Solomon Northrup
The Red Badge of Courage
by Stephen Crane
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
2 pages
Network Traffic And Exploit Identification
1. What was the first connection made, to where, and via what protocol? In here client 192.168.2.62 using the source port ...
Network Traffic And Exploit Identification
1. What was the first connection made, to where, and via what protocol? In here client 192.168.2.62 using the source port 44389 tried to connect to IP ...
Characteristics of Scripting Languages Information Technology Paper
In 2–3 pagesThere are a large number of tasks involved in information technology and programming, and many of these task ...
Characteristics of Scripting Languages Information Technology Paper
In 2–3 pagesThere are a large number of tasks involved in information technology and programming, and many of these tasks can be automated using scripting technology. The ability to use scripting correctly will save significant time and leverage available resources in many ways. The first step toward better productivity is to understand how scripting languages work and how they can be used. For this assignment, you will begin to learn the characteristics of scripting languages and gain an understanding of how to select the right scripting tool for a specific task. Prepare a document to submit your results: Use Word Title Page Course number and name Project name Your name Date Identify a scenario where scripting would be useful to automate a task. Define at least 5 requirements of a scripting language that would be necessary for the task. Identify 2 scripting language candidates that meet the requirements. Select 1 of the scripting languages, and justify the selection based on how well it meets the stated requirements. In 300 wordsScripting languages, also known as interpreted languages, are used for many purposes, and there are many languages to choose from. These programming languages also offer a wide variety of functionality, so selection of an appropriate language is important when considering the use of a scripting language. Use the Library and Internet to find information about scripting/interpreted languages. Select 2 languages: Describe the primary features, strengths, and weaknesses of each language. Identify a task that would be an appropriate use of each language. Provide a small sample of code from each language, and discuss the functionality of the sample code. Include at least 1 reference to research sources. Cite all references using APA format. Grammar, spelling, punctuation, and format should be correct and professional
Concord University Introduction to Computer Programming Lab Report
Assignment #9The parts below describe a single large program so you will only need to turn in one file for this assignment ...
Concord University Introduction to Computer Programming Lab Report
Assignment #9The parts below describe a single large program so you will only need to turn in one file for this assignment. I suggest that you complete each part and save each part for your own use in the event that something does not work. Also, the programs below utilize a series of external data files - click here to download these files as a ZIP archive.Part 1You just finished administering the final exam for all of the students in the "Introduction to Computer Programming" classes this semester. The exam was a 25 question multiple choice exam, and it is your job to grade the exams. You have all of the scores stored in a series of text files (click here to download these files).To begin, download the data files and store them in a folder on your computer. Then create a new Python program inside of this folder called "YourName_Assignment09.py". Make sure your source code file is inside of the same folder as the data files you just downloaded!Next, write a program that lets the user type in the name of a file. Attempt to open the supplied file for read access. If the file exists you can print out a confirmation message. If the file doesn't exist you should tell the user that the file cannot be found. Hint: use a try/except block to do this (don't just use a series of "if" statements - we want this program to be as "generic" as possible).You will not get credit for this part of the program if you write something like the following to identify valid data files:filename = input("Enter a filename: ")
if filename == "class1":
# open class1.txt
elif filename == "class2":
# open class2.txt
else:
print ("Sorry, I can't find this filename")Here's a sample running of the program:Enter a class file to grade (i.e. class1 for class1.txt): foobar
File cannot be found.
Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txtundefinedPart 2Next, you are going to write a program to grade the exams for a given section. The exam was a 25 question multiple choice exam. Here are the answers to the exam:answerkey = "B,A,D,D,C,B,D,A,C,C,D,B,A,B,A,C,B,D,A,C,A,A,B,D,D"Each data file contains a series of student responses in the following format:N12345678,B,A,D,D,C,B,D,A,C,C,D,B,A,B,A,C,B,D,A,C,A,A,B,D,DorN12345678,B,,D,,C,B,,A,C,C,,B,A,B,A,,,,A,C,A,A,B,D,The first number is the student’s ID number. The following 25 letters are the student responses to the exam. If there is no letter following a comma, this means the student skipped answering the question.Note that some lines of data may be corrupted! For example, this line of data does not have enough answers:N12345678,B,A,D,D,C,B... and this line of data has too many answers:N12345678,B,A,D,D,C,B,D,A,C,C,D,B,A,B,A,C,B,D,A,C,A,A,B,D,D,A,B,C,D,EIf you encounter a line of data that is un-usable you should make a note of it and not use the line in your calculations. Report to the user at the end of the program how many unusable lines of data you found.Your program should open up the file specified by the user and read in the data. It should then compute the following:The total # of students represented in the fileThe total # of invalid lines of data found in the fileThe grade for each student. This can be done by comparing the student's answers to the answer key above. Scores can be computed using the following rubric:+4 points for every right answer0 points for every skipped answer-1 points for every incorrect answerThe highest scoreThe lowest scoreThe average score (mean)Here's a sample running of your program:Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txt
Grade Summary:
Total students: 20
Unusable lines in the file: 0
Highest score: 91
Lowest score: 59
Mean score: 75.60Hints: Use the "split" method to split apart the data from the file. You may need to use this method a few times along with a loop or two. Hint: think about the order in which you need to split your items. For example, your file is organized so that one student's record occupies an entire line in the file. Splitting first on the line break will isolate each student's data. Then you will need to further split each item based on the separator character to pull out the responses for each student.Hint: once you've scored the students you should use a list to store indivdual student scores - you can then compute statistics after you've examined every student in the file.Solutions: you can view the expected solutions for all of the data files by clicking here. Note that this solution file also includes the "median", "mode" and "range" - you will be computing these values in the next part of the assignment.undefinedPart 3Next, have your program compute the following based on each data file:The median value (Sort the grades in ascending order. If the # of students is odd you can take the middle of all the grades (i.e. [0, 50, 100] - the median is 50). If the # of students is even you can compute the median by averaging the middle two values (i.e. [0, 50, 60, 100] - the median is 55)The mode value (the grade that occurs most frequently - i.e. [0, 50, 50, 100] - the mode is 50). Hint: you will probably want to create two new lists to do this. One new list canhold the UNIQUE test scores found and the other can hold the # of times that score has been seen. For example:
unique = [100,90,80]
seen = [1,5,3]Hint: use the "in" operator, the "append" method and the max function to help you solve this problem!The range (the difference between the largest and smallest grade in the set)Here's a sample running of your program for class1:Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txt
Grade Summary:
Total students: 20
Highest score: 91
Lowest score: 59
Mean score: 75.60
Median score: 73.0
Mode: 73
Range: 32undefinedPart 4Finally, have your program generate a "results" file that contains the detailed results for each student in your class. Each line of this file should contain the student’s ID number, a comma, and then their grade truncated to 2 decimal points. You should name this file based on the original filename supplied -- for example, if the user wants to analyze "class1.txt" you should store the results in a file named "class1_grades.txt"Here's a sample of what "class1_grades.txt" should look like. You can download all result files by clicking here.N00000001,59.00
N00000002,70.00
N00000003,84.00
N00000004,73.00
N00000005,83.00
N00000006,66.00
N00000007,88.00
N00000008,67.00
N00000009,86.00
N00000010,73.00
N00000011,86.00
N00000012,73.00
N00000013,73.00
N00000014,78.00
N00000015,72.00
N00000016,91.00
N00000017,66.00
N00000018,78.00
N00000019,78.00
N00000020,68.00undefinedPart 5As you can see, some students didn't do very well on their exams. Add a feature to your program that lets the user "curve" the test scores so that they are adjusted in such a way that the mean score is increased to a desired level. Only accept positive curve values. Then re-generate the "class_grades.txt" file to include this information.You can simply add the curve value to each student's score (i.e. if the user is curving the exam from a 75 to an 80 you would add +5 to each student score).Here's a sample running of your program:Enter a class file to grade (i.e. class1 for class1.txt): class1
Successfully opened class1.txt
Grade Summary:
Total students: 20
Unusable lines in the file: 0
Highest score: 91
Lowest score: 59
Mean score: 75.60
Median score: 73.0
Mode: 73
Range: 32
Would you like to curve the exam? 'y' or 'n': y
Enter a desired mean (i.e. 75.0 to raise the mean score to 75.0): -5
Invalid curve, try again.
Enter a desired mean (i.e. 75.0 to raise the mean score to 75.0): 80.0
Done! Check your grade file!And here's a copy of the grade file that should be generated for class1 with a curved score of 80.0 - note the 3rd column contains the curved score (the 1st and 2nd columns are the same):N00000001,59,64
N00000002,70,75
N00000003,84,89
N00000004,73,78
N00000005,83,88
N00000006,66,71
N00000007,88,93
N00000008,67,72
N00000009,86,91
N00000010,73,78
N00000011,86,91
N00000012,73,78
N00000013,73,78
N00000014,78,83
N00000015,72,77
N00000016,91,96
N00000017,66,71
N00000018,78,83
N00000019,78,83
N00000020,68,73
NEC Lending Club Data Programming Worksheet
Nutrition Case Study
The main objective is to write a fully executed R-Markdown program performing regression prediction f ...
NEC Lending Club Data Programming Worksheet
Nutrition Case Study
The main objective is to write a fully executed R-Markdown program performing regression prediction for the response variable using the best models found for kNN, Random Forest and XGBoost techniques predicting the response variable in the Nutrition case study. Make sure to describe the final hyperparameter settings of all algorithms that were used for comparison purposes.
You are required to clearly display and explain the models that were run for this task and their effect on the reduction of the Cost Function.
Points will be deducted in case you fail to explain the output.
Please note that all code assignments must be submitted as a screenshot with a slice of your desktop showing the timestamp.
If the time and date are not visible, you will be graded 0.
37 pages
20170914013143software Engineering Chapters 1 2 3
Analyze some of the issues involved in producing a simple program: Understand the activities involved in writing even a si ...
20170914013143software Engineering Chapters 1 2 3
Analyze some of the issues involved in producing a simple program: Understand the activities involved in writing even a simple program.
MongoDB 1 (DB)
Key Value id “20032-2017-ACME” certificate_number 9998888 business_name “ACME Explosives” date Today’s date resu ...
MongoDB 1 (DB)
Key Value id “20032-2017-ACME” certificate_number 9998888 business_name “ACME Explosives” date Today’s date result “Business Padlocked” sector “Explosive Retail Dealer – 999” address number -> 1721 street -> Boom Road city -> BRONX zip -> 10463
Earn money selling
your Study Documents