U3F1ZWV6ZTUwMjQyMDg4NzA2MDg4X0ZyZWUzMTY5NzA1NDAzMjU3Mg==

java programming principles of software design week 1 quiz answers

 week 1:

Question 1


This is java programming principles of software design week 1 quiz answers. you will not need any other answers to solve this java programing coursera questions.

  1.For the assignment you wrote the method quakesOfDepth to print all the earthquakes from a data source whose depth is between a given minimum and maximum value, and also to print out the number of earthquakes found. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for quakes with depth between -12,000.0 and -10,000.0, exclusive.

How many such earthquakes are there?

the answer is here:

127

Question 2

   2.For the assignment you wrote the method quakesOfDepth to print all the earthquakes from a data source whose depth is between a given minimum and maximum value, and also to print out the number of earthquakes found. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for quakes with depth between -4000.0 and -2000.0, exclusive.

How many such earthquakes are there?

the answer is here:

157

Question 3

   3.For the assignment you wrote the method quakesByPhrase to print all the earthquakes from a data source whose title has a phrase in it at a specified location, and also to print out the number of earthquakes found. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for quakes with the phrase “Quarry Blast” at the start of the earthquake’s title.

How many such earthquakes are there?

the answer is here:

19

Question 4

   4.For the assignment you wrote the method quakesByPhrase to print all the earthquakes from a data source whose title has a phrase in it at a specified location, and also to print out the number of earthquakes found. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for quakes with the phrase “Alaska” at the end of the earthquake’s title.

How many such earthquakes are there?

the answer is here:

364

Question 5

  5.For the assignment you wrote the method quakesByPhrase to print all the earthquakes from a data source whose title has a phrase in it at a specified location, and also to print out the number of earthquakes found. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for quakes with the phrase “Can” as a substring anywhere in the earthquake’s title.

How many such earthquakes are there?

the answer is here:

58

Question 6

  6.For the assignment you wrote the method findLargestQuakes to print a given number of earthquakes from a data source in order from largest magnitude. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for the 20 earthquakes with the largest magnitude.

What was the magnitude of the 20th largest earthquake?

the answer is here:

5.10


Question 7

7.For the assignment you wrote the method findLargestQuakes to print a given number of earthquakes from a data source in order from largest magnitude. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) for the 50 earthquakes with the largest magnitude.

What country had the 50th largest earthquake?

the answer is here:

Japan

Question 8

  8.For the assignment you wrote the method quakesWithFilter in the class EarthQuakeClient2 to filter earthquakes using two criteria. Modify that criteria to be those that are 1,000,000 meters (1,000 km) from Denver, Colorado whose location is (39.7392, -104.9903), and that end with an ‘a’ in their title (for example, that might be an earthquake in Nevada as that ends in ‘a’). Run your program on the file nov20quakedata.atom (a file with information on 1518 quakes). You should also print out the number of such earthquakes found.

How many such earthquakes are there?

the answer is here:

74

Question 9

  9.For the assignment you wrote the method quakesWithFilter in the class EarthQuakeClient2 to filter earthquakes using two criteria. Modify that critieria to be magnitude between 3.5 and 4.5 inclusive and depth between -55,000.0 and -20,000.0 inclusive. Run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) with this criteria. You should also print out the number of such earthquakes found.

How many such earthquakes are there?

the answer is here:

15

Question 10

  10.For the assignment you wrote the method testMatchAllFilter in the class EarthQuakeClient2 to filter earthquakes using three criteria. Modify that criteria to be those with magnitude between 1.0 and 4.0 inclusive, to test the depth between -180,000.0 and -30,000.0 inclusive, and if the letter “o” is in the title. Modify this method to run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) with the same criteria. You should also print out the number of such earthquakes found.

How many such earthquakes are there?

the answer is here:

187

Question 11

  11.For the assignment you wrote the method testMatchAllFilter2 in the class EarthQuakeClient2 to filter earthquakes using three criteria. Modify that criteria to be those with magnitude between 0.0 and 5.0 inclusive, to test for the distance from Billund, Denmark at location (55.7308, 9.1153) is less than 3,000,000 meters (3000 km), and if the letter “e” is in the title. Run your program on the file nov20quakedata.atom (a file with information on 1518 quakes) with the same criteria. You should also print out the number of such earthquakes found.

How many such earthquakes are there?

the answer is here:

17

Question 12

12.Suppose one adds the getName( ) method to the Filter interface and adds a String parameter to the constructor of all the classes that implement a Filter to include the name of the Filter. Suppose one then creates the following code segment after reading in earthquake data into the ArrayList of QuakeData called list.

There are no compile errors—the DistanceFromFilter class includes “implements Filter” in the first line of the class definition, the program runs and the output is:

Filters used are: Magnitude null Phrase

Which of the following is most likely the error as to why “null” was printed instead of Distance?

the answer is here:

In the DistanceFromFilter class, a private variable for the name was not assigned the value of the parameter representing the name of the filter in the Constructor method.



You need to know about this java programming course that make you good in learning how to design a system.

introduction...

About this Course

Solve real world problems with Java using multiple classes. Learn how to create programming solutions that scale using Java interfaces. Recognize that software engineering is more than writing code - it also involves logical thinking and design. By the end of this course you will have written a program that analyzes and sorts earthquake data, and developed a predictive text generator.

After completing this course, you will be able to:

java programing principles of software design learn you to get your programming skills by solving some quiz by week.

1. Use sorting appropriately in solving problems. 2. Develop classes that implement the Comparable interface. 3. Use timing data to analyze empirical performance. 4. Break problems into multiple classes, each with their own methods. 5. Determine if a class from the Java API can be used in solving a particular problem.

this course show you skills you need to solve any problem in programing language with some algorithms.

6. Implement programming solutions using multiple approaches and recognize tradeoffs.
7. Use object-oriented concepts including interfaces and abstract classes when developing programs.
8. Appropriately hide implementation decisions so they are not visible in public methods; and
9. Recognize the limitations of algorithms and Java programs in solving problems.
10. Recognize standard Java classes and idioms including exception-handling, static methods, java.net, and java.io packages.


some task you will learn to solve anther time graph needed to wright with coding. anther courses help you explore high level tools to make development and help any web site developed by adding new features. and computer science is very enjoyable capturing various information, it's like university to you help you practice getting natural job. you can look or search about java programing, and you can choose to start today or not developing android, but you have to make correct decision and discover projects (written specialization, designed content).

cited for generate and engine building collaborative machine, using software programming techniques.

some reviews:

-My confidence level in Java programming has grown significantly since completing this specialization, It gave me the necessary knowledge and practice I need to take up a role as a software engineer.


-I was more difficult than the previous three courses in the specialization, but all in all, I enjoyed it very much and learned a lot! Thanks for such a great course, keep up the good work! :)


-Well designed and well structured with the packages, resources, programming exercises and practice quiz. I appreciate the team's hard work in delivering good knowledge on the subject efficiently.


-These set of four made not only learning Java fun and also explored on the applications software engineering it has on the real world, touching a little bit of everything in the same field.

so for sure java programing principles of software design course is the best course to get to do some developments in your programming skills.

تعديل المشاركة
author-img

Steven Hany

hey I'm Steven, I studied Programming Foundations with JavaScript, HTML and CSS, Java Programming: Solving Problems with Software, Java Programming: Arrays, Lists, and Structured Data and Java Programming: Principles of Software Design, Java Programming: Build a Recommendation System ... And here is some answers
Comments
No comments
Post a Comment

Post a Comment

Leave a message

NameEmailMessage