PLTW 2.4.6 - Activity 3
PLTW 2.4.6 - Activity 3
6 - Activity 3
Read through PLTW 2.4.6 steps 11-14 as you work through activity 3 Answer the
following at the beginning of this Google Doc, then use the Google Doc format of activity
3 (below) to complete the first activity. The PDF was converted to Google Doc format to
make it easy to work with. Copy this entire document into your notebook when done, and
label as PLTW 2.4.6 Activity 3.
Positive Adjectives:
Amusing, unique, viral, interesting, exhilarating, novel, engaging, exciting, worth, new,
pleasing, vibrant
Negative Adjectives:
We had called ahead to warn the restaurant of our party of 8. They were very accommodating and we were
seated almost immediately. The service from our waitress was also great! She made sure the flow of things
went well with little downtime. She timed our appetizers and entrees to perfection. She was very
experienced. The staff checked in periodically to: fill our drinks, remove completed dishes promptly, and
offered a look at the dessert menu.
PLTW 2.4.6 - Activity 3
The unethical side is easy to create a scenario for: a new restaurant trying to artificially
boost their reviews to attract more attention would be unethical, even if they really do
serve good food. As for an ethical scenario, the closest you can get is probably for
when a person is lazy and doesn’t want to write their own review so they give a review
generator an outline and let the review generator do the work.
PLTW 2.4.6 - Activity 3
We had called ahead to warn the restaurant of our party of 8. They were very *accommodating and we
were seated almost *immediately. The service from our waitress was also *great! She made sure the flow of
things went well with little downtime. She timed our appetizers and entrees to *perfection. She was very
*experienced. The staff checked in *periodically to: fill our drinks, remove *completed dishes promptly, and
offered a look at the dessert menu.
indexOf returns the index of the first instance of a character being found, and substring returns a substring
starting from a certain index to either the end (if no 2nd argument is provided) or to before the second
index (inclusive-exclusive, in other words). Thus, if you want to take all the text after a certain character,
you would use indexOf to find said index, and then add 1 so that it excludes that character when substring
is called.
PLTW 2.4.6 - Activity 3
index += 1;
}
Static methods can be called directly from the class object itself. In contrast, non-static
methods can only be called from instances of the class, and do not work if called
directly from the class itself. This is usually due to the fact that non-static methods
work with properties of a class that only exist when instantiated or only serve a
purpose when the object is instantiated. In contrast, static methods usually have a
direct purpose in general code usage and aren’t necessarily for manipulating instances
of the object they belong to.
Instead of checking for a positive or negative adjective and replacing it with a random
positive or negative adjective to keep a similar sentiment score, it could just replace all
adjectives with negative or positive ones in order to make a very negative or positive
fake review.