U3F1ZWV6ZTUwMjQyMDg4NzA2MDg4X0ZyZWUzMTY5NzA1NDAzMjU3Mg==

java programming principles of software design week 3 quiz answers

week 3:


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


1.here is the code for runMarkovZero

Suppose the line

is put between lines 7 and 8, as the first line in the body of the for loop. Which one of the following options best describes how this line affects the program?

the answer is here:

Each of three randomly generated texts will all be identical.


Question 2

  2.In the MarkovRunner class in the runMarkovZero method, set the random seed to 1024 and run this method on the file confucius.txt.

What is the first line of text output when this program runs?

the answer is here:

eeuefmespwhsfoyu, s giowhersa eell; bma s.7shni:.at.ttdr.w aknf 


Question 3

3.In the Tester class, run the program testGetFollowsWithFile with the string “o” and the file confucius.txt.

What is the size of the ArrayList of characters that follow “o”? 
      

the answer is here:

      10453    

  
Question 4

  4.In the Tester class, run the program testGetFollowsWithFile with the string “he” and the file confucius.txt.

What is the size of the ArrayList of characters that follow “he”?

the answer is here:

3715

Question 5

  5.After the completion of the MarkovOne class to generate random text by finding all the characters that follow one character, set the random seed in the runMarkovOne method in the MarkovRunner class to 365. Then run runMarkovOne on the file romeo.txt.

What is the first line generated?

the answer is here:

y O wirs bloay Ger. fo. tifthy The, A My; st- ie d, s. bloulate,

Question 6

  6.After the completion of the MarkovFour class to generate random text by finding all the characters that follow four characters, set the random seed in the runMarkovFour method in the MarkovRunner class to 715. Then run runMarkovFour on the file romeo.txt.

What is the first line of text generated?

the answer is here:

man in a green, for that haste, for a foot in her from Tybalt!

Question 7

  7.After the completion of the MarkovModel class to generate random text by finding all the characters that follow N characters, set the random seed in the runMarkovModel method in the MarkovRunner class to 953 and pass in N as 7. Then run runMarkovModel on the file romeo.txt.

What is the first line of text generated?

the answer is here:

e uncle Capulet's orchard. Enter an officer, and light- more

Question 8

  8.For the class EfficientMarkovModel, which one of the following is the best place to call the buildMap method?

the answer is here:

In the setTraining method.

Question 9

  9.In the EfficientMarkovModel class, comment out the print statements in the printHashMapInfo method that prints out the map. Make sure printHashMapInfo is called right after the HashMap is built. Then in the MarkovRunnerWithInterface class call the runModel method on an EfficientMarkovModel of order 6 with seed 792 on the file confucius.txt.

How many keys are in the HashMap?

the answer is here:

70162

Question 10

  10.In the EfficientMarkovModel class, comment out the print statements in the printHashMapInfo method that prints out the map. Make sure printHashMapInfo is called right after the HashMap is built. Then in the MarkovRunnerWithInterface class call the runModel method on an EfficientMarkovModel of order 5 with seed 531 on the file confucius.txt.

What was the size of the largest ArrayList in the HashMap?

the answer is here:

1549



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 by duke coursera 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