R2.4If you click and drag from an empty area of the canvas a bounding box should be drawn to represent the drag area. When the mouse is released any words within the box should be selected. This would...

1 answer below »

R2.4If you click and drag from an empty area of the canvas a bounding box should be drawn to represent the drag area. When the mouse is released any words within the box should be selected. This would provide a easy way to select a bunch of words within an area of the canvas.



Sentence Requirements


R3.1If words area dragged into the lined area of the interface they should be treated as forming sentences written on the lines. The placement of words on the lines should be approximate and not require the user to position the words so precisely as to be cumbersome.


R3.2The interface should have aRefreshbutton (you will have to add one). Whenever the refresh button is pressed actual strings representing the sentences in the lined area of the canvas should be written to the application's console area (not the Intelij console). That is, while the words dragged to the line area are individualDraggableWorditems, the console area should have actual strings that represent the formed sentences. (See image below.)


R3.3The strings that appear in the console area should have a single blank character between words regardless of how much space there is between dragged words in the lined canvas area. (See image below.)


R3.4The strings in the console area should appear as individual lines that match the apparent lines of text in the lined area of the canvas. (See image below.) That is, they should not form one single long line.










R4.1When your application launches a greeting should appear along with any instructions you want to provide to the user in the console area of the application. Include your name in the greeting. These should remain there until the user presses theRefreshbutton the first time.


R4.2Your application should have some puzzle menu items. When one is selected a new puzzle should be presented for the user to solve.


R4.3The application should have at least three puzzles represented by instances of the Puzzle class. One could be a puzzle presented in the tutorial 03 demo code or answer code.


R4.4Whenever a new puzzle is selected a new set of instructions should be presented to the user in the application console area. This way the objective need not be the same for every puzzle and you could give hints on what the words represent. For example one puzzle might require them to write a limerick whereas another might require them to reconstruct the lyrics from a song, or whatever. Thus your puzzle objects should likely have console instructions along with the puzzle string.


R4.5It should NOT be possible for us to look in your code and see what the answer to the puzzle is. Notice in the tutorial0305 demo code the words of the puzzles are stored in scrambled order. We cannot tell by looking in the code what the intended answer looks like.


R4.6If the user solves the puzzle correctly the application should indicate that somehow (maybe a string printed on the canvas or in the application console). Notice the challenge here is that the code must figure out when the answer is right but according to the previous requirement we should NOT be able to tell what the answer is by looking at the code. How would you solve this?






Answered 46 days AfterAug 14, 2021

Answer To: R2.4If you click and drag from an empty area of the canvas a bounding box should be drawn to...

Robert answered on Sep 29 2021
143 Votes
First Experiment
To All CHEM 111 Students,
jove Science Education Lab, has granted us free permiss
ion to use their products:
SCIENCE EDUCATION > LAB MANUAL
Chem. 111 Labs      Fall 2021 Online
Lab. Manual 1.
INTRODUCTORY CHEMISTRY
Here is the link to the Lab Manual: Chemistry section.
 
https://www.jove.com/science-education-library/99/lab-chem
 
https://www.jove.com/science-education/11135/lab-techniques
General Chemistry Lab.  By jove.
The following information is for General Chemistry Labs. Videos
This collection helps provide a solid foundation in general chemistry by showcasing basic lab techniques, demonstrating commonly...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here