Which Language CSTA Nifty Assignments 2019 Dale Reed

  • Slides: 18
Download presentation
Which Language? CSTA Nifty Assignments 2019 Dale Reed reed@uic. edu Joe Hummel jhummel 2@uic.

Which Language? CSTA Nifty Assignments 2019 Dale Reed reed@uic. edu Joe Hummel jhummel 2@uic. edu University of Illinois at Chicago (UIC) Reed & Hummel, UIC bit. ly/cstawhichlang

Write a program to count the number of input characters: Reed & Hummel, UIC

Write a program to count the number of input characters: Reed & Hummel, UIC bit. ly/cstawhichlang

Write a program to count the number of input characters: Enter some characters, followed

Write a program to count the number of input characters: Enter some characters, followed by ^z: Reed & Hummel, UIC bit. ly/cstawhichlang

Write a program to count the number of input characters: Enter some characters, followed

Write a program to count the number of input characters: Enter some characters, followed by ^z: All generalizations are false Reed & Hummel, UIC bit. ly/cstawhichlang

Write a program to count the number of input characters: Enter some characters, followed

Write a program to count the number of input characters: Enter some characters, followed by ^z: All generalizations are false ^ ^ ^ Reed & Hummel, UIC bit. ly/cstawhichlang

Write a program to count the number of input characters: Enter some characters, followed

Write a program to count the number of input characters: Enter some characters, followed by ^z: All generalizations are false ^ ^ ^ The alphabetic characters are: A: 5 E: 4 F: 1 G: 1 I: 2 L: 4 N: 2 O: 1 R: 2 S: 2 T: 1 Z: 1 Reed & Hummel, UIC bit. ly/cstawhichlang

Using Macbeth: Reed & Hummel, UIC bit. ly/cstawhichlang

Using Macbeth: Reed & Hummel, UIC bit. ly/cstawhichlang

Using Macbeth: The Tragedy of Macbeth There to meet with Macbeth. First Witch I

Using Macbeth: The Tragedy of Macbeth There to meet with Macbeth. First Witch I come, Graymalkin! Second Witch Paddock calls. Third Witch Anon. ALL Fair is foul, and foul is fair: Hover through the fog and filthy air. Exeunt SCENE II. A camp near Forres. Alarum within. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, with Attendants, meeting a bleeding Sergeant DUNCAN What bloody man is that? He can report, As seemeth by his plight, of the revolt The newest state. MALCOLM This is the sergeant Who like a good and hardy soldier fought 'Gainst my captivity. Hail, brave friend! Say to the king the knowledge of the broil As thou didst leave it. . . Reed & Hummel, UIC bit. ly/cstawhichlang

Using Macbeth: The Tragedy of Macbeth There to meet with Macbeth. First Witch I

Using Macbeth: The Tragedy of Macbeth There to meet with Macbeth. First Witch I come, Graymalkin! Second Witch Paddock calls. Third Witch Anon. ALL Fair is foul, and foul is fair: Hover through the fog and filthy air. Exeunt SCENE II. A camp near Forres. Alarum within. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, with Attendants, meeting a bleeding Sergeant DUNCAN What bloody man is that? He can report, As seemeth by his plight, of the revolt The newest state. MALCOLM This is the sergeant Who like a good and hardy soldier fought 'Gainst my captivity. Hail, brave friend! Say to the king the knowledge of the broil As thou didst leave it. . . Reed & Hummel, UIC bit. ly/cstawhichlang

Using Macbeth: The Tragedy of Macbeth There to meet with Macbeth. First Witch I

Using Macbeth: The Tragedy of Macbeth There to meet with Macbeth. First Witch I come, Graymalkin! Second Witch Paddock calls. Third Witch Anon. ALL Fair is foul, and foul is fair: Hover through the fog and filthy air. Exeunt SCENE II. A camp near Forres. Alarum within. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, with Attendants, meeting a bleeding Sergeant DUNCAN What bloody man is that? He can report, As seemeth by his plight, of the revolt The newest state. MALCOLM This is the sergeant Who like a good and hardy soldier fought 'Gainst my captivity. Hail, brave friend! Say to the king the knowledge of the broil As thou didst leave it. . . Reed & Hummel, UIC A: 6018 B: 1464 C: 2144 D: 3331 E: 9270 F: 1701 G: 1333 H: 5244 I: 4653 J: 38 K: 691 L: 3294 M: 2481 N: 4987 O: 6054 P: 1000 Q: 121 R: 4518 S: 4943 T: 7055 U: 2590 V: 657 W: 1926 X: 112 Y: 1637 Z: 15 bit. ly/cstawhichlang

Using Macbeth: What new questions can we ask? The Tragedy of Macbeth There to

Using Macbeth: What new questions can we ask? The Tragedy of Macbeth There to meet with Macbeth. First Witch I come, Graymalkin! Second Witch Paddock calls. Third Witch Anon. ALL Fair is foul, and foul is fair: Hover through the fog and filthy air. Exeunt SCENE II. A camp near Forres. Alarum within. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, with Attendants, meeting a bleeding Sergeant DUNCAN What bloody man is that? He can report, As seemeth by his plight, of the revolt The newest state. MALCOLM This is the sergeant Who like a good and hardy soldier fought 'Gainst my captivity. Hail, brave friend! Say to the king the knowledge of the broil As thou didst leave it. . . Reed & Hummel, UIC A: 6018 B: 1464 C: 2144 D: 3331 E: 9270 F: 1701 G: 1333 H: 5244 I: 4653 J: 38 K: 691 L: 3294 M: 2481 N: 4987 O: 6054 P: 1000 Q: 121 R: 4518 S: 4943 T: 7055 U: 2590 V: 657 W: 1926 X: 112 Y: 1637 Z: 15 bit. ly/cstawhichlang

Using Macbeth: What new questions can we ask? The Tragedy of Macbeth There to

Using Macbeth: What new questions can we ask? The Tragedy of Macbeth There to meet with Macbeth. First Witch I come, Graymalkin! Second Witch Paddock calls. Third Witch Anon. ALL Fair is foul, and foul is fair: Hover through the fog and filthy air. Exeunt SCENE II. A camp near Forres. Alarum within. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, with Attendants, meeting a bleeding Sergeant DUNCAN What bloody man is that? He can report, As seemeth by his plight, of the revolt The newest state. MALCOLM This is the sergeant Who like a good and hardy soldier fought 'Gainst my captivity. Hail, brave friend! Say to the king the knowledge of the broil As thou didst leave it. . . Reed & Hummel, UIC A: 6018 B: 1464 C: 2144 D: 3331 E: 9270 F: 1701 G: 1333 H: 5244 I: 4653 J: 38 K: 691 L: 3294 M: 2481 N: 4987 O: 6054 P: 1000 Q: 121 R: 4518 S: 4943 T: 7055 U: 2590 V: 657 W: 1926 X: 112 Y: 1637 Z: 15 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bit. ly/cstawhichlang

Scratch Program: Reed & Hummel, UIC bit. ly/cstawhichlang

Scratch Program: Reed & Hummel, UIC bit. ly/cstawhichlang

Scratch Program: Paste in text to be identified … Reed & Hummel, UIC bit.

Scratch Program: Paste in text to be identified … Reed & Hummel, UIC bit. ly/cstawhichlang

Scratch Program: Paste in text to be identified … … and the program finds

Scratch Program: Paste in text to be identified … … and the program finds the closest match. Reed & Hummel, UIC bit. ly/cstawhichlang

You can run it from the CSTA page: Reed & Hummel, UIC bit. ly/cstawhichlang

You can run it from the CSTA page: Reed & Hummel, UIC bit. ly/cstawhichlang

See the text-based version: Which Language Select from the following stages of output to

See the text-based version: Which Language Select from the following stages of output to display: 1. Letter frequency counts 2. Letter frequency order 3. Get user input and display frequency counts 4. Get user input, display frequency counts, and display language 0. Exit the program Your choice --> 1 Reed & Hummel, UIC Letter Frequency Counts: Engl Finn Fren Germ Hung Ital Port Span A: 6018 9416 6544 5068 7541 8935 9939 10052 B: 1464 448 1081 2060 1746 1221 1173 1387 C: 2144 636 3028 3126 1014 3865 2855 3222 D: 3331 1013 2698 4592 2265 2945 3687 3815 E: 9270 7187 12782 14779 8280 9364 10551 10861 F: 1701 297 1101 1464 932 1099 1039 653 G: 1333 187 772 2503 2975 1423 983 936 H: 5244 2384 1004 4775 1687 1485 1413 1263 I: 4653 8022 5583 7062 2961 8128 4179 3964 J: 38 1331 538 148 1049 5 216 429 K: 691 3952 28 1080 3551 51 19 18 L: 3294 4648 4240 3089 4658 4814 2082 3985 M: 2481 3526 3269 2861 3812 2790 4415 3021 N: 4987 7958 5958 9026 4725 5966 4455 5704 O: 6054 4219 5315 2208 3529 8668 8898 7605 P: 1000 1331 2297 466 448 2060 1862 1842 Q: 121 78 907 84 77 548 954 883 R: 4518 1784 5986 5955 2802 5357 5328 5706 S: 4943 5425 6898 5852 4538 4863 6774 6468 T: 7055 7620 6025 5477 5632 5373 3729 3932 U: 2590 4226 5373 3327 963 3081 3840 3591 V: 657 1784 1566 661 1297 1287 1351 893 W: 1926 120 78 1797 138 141 68 61 X: 112 45 328 89 49 42 260 91 Y: 1637 1403 247 169 1998 216 65 891 Z: 15 3 343 939 2742 490 314 301 bit. ly/cstawhichlang

Experiment What happens when you provide input in a language not in the system,

Experiment What happens when you provide input in a language not in the system, such as Catalán, Romanian or Danish? Resources • • • Executable versions for PC or Mac (in addition to Scratch version) Text for testing Letter frequency counts in 8 languages Macbeth in 8 languages Description page is at: bit. ly/cstawhichlang Reed & Hummel, UIC bit. ly/cstawhichlang