Player FM - Internet Radio Done Right
Checked 1y ago
اضافه شده در nine سال پیش
محتوای ارائه شده توسط Chris Thiel. تمام محتوای پادکست شامل قسمتها، گرافیکها و توضیحات پادکست مستقیماً توسط Chris Thiel یا شریک پلتفرم پادکست آنها آپلود و ارائه میشوند. اگر فکر میکنید شخصی بدون اجازه شما از اثر دارای حق نسخهبرداری شما استفاده میکند، میتوانید روندی که در اینجا شرح داده شده است را دنبال کنید.https://fa.player.fm/legal
Player FM - برنامه پادکست
با برنامه Player FM !
با برنامه Player FM !
پادکست هایی که ارزش شنیدن دارند
حمایت شده
For many travelers, Antarctica is a bucket-list destination, a once-in-a-lifetime opportunity to touch all seven continents. In 2023, a record-breaking 100,000 tourists made the trip. But the journey begs a fundamental question: What do we risk by traveling to a place that is supposed to be uninhabited by humans? And as the climate warms, should we really be going to Antarctica in the first place? SHOW NOTES: Kara Weller: The Impossible Dilemma of a Polar Guide Marilyn Raphael: A twenty-first century structural change in Antarctica’s sea ice system Karl Watson: First Time in Antarctica Jeb Brooks : 7 Days in Antarctica (Journey to the South Pole) Metallica - Freeze 'Em All: Live in Antarctica Learn about your ad choices: dovetail.prx.org/ad-choices…
Cryptography
Manage episode 154404793 series 1123367
محتوای ارائه شده توسط Chris Thiel. تمام محتوای پادکست شامل قسمتها، گرافیکها و توضیحات پادکست مستقیماً توسط Chris Thiel یا شریک پلتفرم پادکست آنها آپلود و ارائه میشوند. اگر فکر میکنید شخصی بدون اجازه شما از اثر دارای حق نسخهبرداری شما استفاده میکند، میتوانید روندی که در اینجا شرح داده شده است را دنبال کنید.https://fa.player.fm/legal

Starting Code:
import java.util.Scanner;
/**
* Simple Polyalphabetic Cryptography
*
* @Chris Thiel
* @28 Feb 2009
*/
public class VignereCipherStartingCode
{
private static final String alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
private static int nextChar(String k, int i){
i=i%k.length();
String letter=k.substring(i,i+1);
return alphabet.indexOf(letter);
}
public static String encode (String m, String k){
String result="";
for (int i=0; i int offset=nextChar(k, i);
String letter = m.substring(i,i+1);
int newLetterIndex= alphabet.indexOf(letter)+offset;
newLetterIndex=newLetterIndex % 26;
result+=alphabet.substring( newLetterIndex, newLetterIndex+1);
}
return result;
}
public static String decode (String m, String k){
String result="";
return result;
}
public static void main(String[] args)
{
Scanner kb=new Scanner(System.in);
System.out.print("Type a key: ");
String key=kb.nextLine();
key=key.toUpperCase();
key=key.replace(" ","");//omit spaces
System.out.print("Type a message: ");
String message=kb.nextLine();
message=message.toUpperCase();
message=message.replace(" ","");
System.out.println("Using the key \""+key+"\" on \""+message+"\":");
String codedMessage=encode(message,key);
System.out.println("Coded="+codedMessage);
System.out.println("Decoded="+decode(codedMessage,key));
System.out.println("Using the key 'LOVE' we encode 'BOOHOO' we should get 'MCJLZC' : "+encode("BOOHOO","LOVE"));
System.out.println("Using the key 'QUICK' we decode 'TOKMXEQ' we should get 'DUCKNOW': "+decode("TOKMXEQ","QUICK"));
}
}
- 8 points: Complete the decode method so it can decipher the Vignere Cipher
- 9 points: Adapt this so it can do a Progressive Polyalphabetic Cipher rather than a key
- 10 points: Adapt the CarTalk Employee Applet's graphic user interface so that you can type a message in one text area, press a button and it shows the encoded text (using the Progressive Cipher), press another button and it shows the decoded text.
- 11 points: Add a "key field" to the Applet, and use the Vignere Cipher, working in a similiar fashion as the 10 point version
24 قسمت
Manage episode 154404793 series 1123367
محتوای ارائه شده توسط Chris Thiel. تمام محتوای پادکست شامل قسمتها، گرافیکها و توضیحات پادکست مستقیماً توسط Chris Thiel یا شریک پلتفرم پادکست آنها آپلود و ارائه میشوند. اگر فکر میکنید شخصی بدون اجازه شما از اثر دارای حق نسخهبرداری شما استفاده میکند، میتوانید روندی که در اینجا شرح داده شده است را دنبال کنید.https://fa.player.fm/legal

Starting Code:
import java.util.Scanner;
/**
* Simple Polyalphabetic Cryptography
*
* @Chris Thiel
* @28 Feb 2009
*/
public class VignereCipherStartingCode
{
private static final String alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
private static int nextChar(String k, int i){
i=i%k.length();
String letter=k.substring(i,i+1);
return alphabet.indexOf(letter);
}
public static String encode (String m, String k){
String result="";
for (int i=0; i int offset=nextChar(k, i);
String letter = m.substring(i,i+1);
int newLetterIndex= alphabet.indexOf(letter)+offset;
newLetterIndex=newLetterIndex % 26;
result+=alphabet.substring( newLetterIndex, newLetterIndex+1);
}
return result;
}
public static String decode (String m, String k){
String result="";
return result;
}
public static void main(String[] args)
{
Scanner kb=new Scanner(System.in);
System.out.print("Type a key: ");
String key=kb.nextLine();
key=key.toUpperCase();
key=key.replace(" ","");//omit spaces
System.out.print("Type a message: ");
String message=kb.nextLine();
message=message.toUpperCase();
message=message.replace(" ","");
System.out.println("Using the key \""+key+"\" on \""+message+"\":");
String codedMessage=encode(message,key);
System.out.println("Coded="+codedMessage);
System.out.println("Decoded="+decode(codedMessage,key));
System.out.println("Using the key 'LOVE' we encode 'BOOHOO' we should get 'MCJLZC' : "+encode("BOOHOO","LOVE"));
System.out.println("Using the key 'QUICK' we decode 'TOKMXEQ' we should get 'DUCKNOW': "+decode("TOKMXEQ","QUICK"));
}
}
- 8 points: Complete the decode method so it can decipher the Vignere Cipher
- 9 points: Adapt this so it can do a Progressive Polyalphabetic Cipher rather than a key
- 10 points: Adapt the CarTalk Employee Applet's graphic user interface so that you can type a message in one text area, press a button and it shows the encoded text (using the Progressive Cipher), press another button and it shows the decoded text.
- 11 points: Add a "key field" to the Applet, and use the Vignere Cipher, working in a similiar fashion as the 10 point version
24 قسمت
Alle episoder
×You can get a lot of insight in how coding works and how an Integrated Development Environment (IDE can help the process of compiling, and executing the code you write.
Installing the Java JDK 8 SE on Windows 10 for learning AP Computer Science A. Links mentioned in the video: mathorama.com/wiki Summer Assignment Links links java se jdk8 downloads.html https://bluej.org/versions.html Subscribe to APCS Java
Stage 3 Enemies are made and tested. Video Source code is at http://apcs.mathorama.com/index.php?n=Main.SimpleGameTutorial and the game is at http://www.mathorama.com/ChickenLittle.html If you missed Stage 1, you can get it at http://www.youtube.com/watch?v=u459QHRepC8 or https://archive.org/details/GameAppletStage1 . Stage 2 can be found at https://archive.org/details/GameAppletStage2…
Stage 2 of the Game Applet is making the player and have it be controlled with keyboard input. Source code is at apcs.mathorama.com and the game is at www.mathorama.com/ChickenLittle.html Video YouTube If you missed Stage 1, you can get it at here
Stage 1: Load the art and sounds to your eclipse project, so you can export your game into a .jar file to easily upload to a web site. You can get to the game and the source files at: Link to Game Link to Source Code Link to Video Link to Video on YouTube
Gridworld Overview Video
Making Images With GIMP You can download from http://www.gimp.org I show how to use some features in GIMP (from www.gimp.org) a open source image editor to use with your programs. First, drawing a picture from scratch, then cleaning up a photo, and finally tracing a photo to make a simple "cartoon" like image. For more info on where I used these images, see http://apcs.mathorama.com/…
Installing BlueJ 2012 Video Here is a 2012 version to check to make sure your Java SDK and BlueJ IDE installation is working correctly. While I'm using Ubuntu 12.04 to show this, it works pretty much the same in Windows and OSX.
Here is a customized World for Gridworld where the message on the top is updated to show how many bugs there are and the location of the furthest Bug in the grid. You need to implement the Comparator interface for the grid world Bug class. You need to define a compare method that returns an int. Get the location of each Bug and use the compareTo method of Location. Here is the starter code: apcs.mathorama.com mpeg4 movie Quicktime movie…
Part 3 of the One to Ten Game which explains the Player Class. You can see a working copy at http://www.mathorama.com/OneToTenConsole.html
Part 2 of 3 of the One to Ten Game
In this tutorial, we make a game called "1 to 10" rather than tic-tac-toe (naughts and crosses). We will construct A Board Class in the first part along with a tester class. The idea is to move a page either one or two positions, and the one in the last position loses. The strategy is not to difficult, so eventually we can make a robot player who will always play perfectly.…
Make a new object that represents a dot using the eclipse IDE.
If you want to publish your Applet to the web, you probably need to make a Java Archive, or JAR file that allows you to embed your Applet in a web page
How to get what you need installed on your Windows 7 machine
To make a variety of Poker games, we need a way to evaluate and compare Poker hands. This video also shows how to implement an interface in an inner class, so that a user can press a button, and new poker hands are generated. Starter code can be found at the APCS Wiki .
Implementing java interfaces for any Object. For "starter" code see the APCS Wiki
We introduce a way to use code to work with a variety of classes using interfaces. Source code can be found at the APCS Wiki
A
APCS Java

Make mew Projects and Classes in Eclipse.
Click on the title to see the video. Here I show how to try the code snippets that you will see while reading Chapter 2 of Horstmann, "Java Concepts"
Starting Code: import java.util.Scanner; /** * Simple Polyalphabetic Cryptography * * @Chris Thiel * @28 Feb 2009 */ public class VignereCipherStartingCode { private static final String alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; private static int nextChar(String k, int i){ i=i%k.length(); String letter=k.substring(i,i+1); return alphabet.indexOf(letter); } public static String encode (String m, String k){ String result=""; for (int i=0; i int offset=nextChar(k, i); String letter = m.substring(i,i+1); int newLetterIndex= alphabet.indexOf(letter)+offset; newLetterIndex=newLetterIndex % 26; result+=alphabet.substring( newLetterIndex, newLetterIndex+1); } return result; } public static String decode (String m, String k){ String result=""; return result; } public static void main(String[] args) { Scanner kb=new Scanner(System.in); System.out.print("Type a key: "); String key=kb.nextLine(); key=key.toUpperCase(); key=key.replace(" ","");//omit spaces System.out.print("Type a message: "); String message=kb.nextLine(); message=message.toUpperCase(); message=message.replace(" ",""); System.out.println("Using the key \""+key+"\" on \""+message+"\":"); String codedMessage=encode(message,key); System.out.println("Coded="+codedMessage); System.out.println("Decoded="+decode(codedMessage,key)); System.out.println("Using the key 'LOVE' we encode 'BOOHOO' we should get 'MCJLZC' : "+encode("BOOHOO","LOVE")); System.out.println("Using the key 'QUICK' we decode 'TOKMXEQ' we should get 'DUCKNOW': "+decode("TOKMXEQ","QUICK")); } } 8 points: Complete the decode method so it can decipher the Vignere Cipher 9 points: Adapt this so it can do a Progressive Polyalphabetic Cipher rather than a key 10 points: Adapt the CarTalk Employee Applet's graphic user interface so that you can type a message in one text area, press a button and it shows the encoded text (using the Progressive Cipher), press another button and it shows the decoded text. 11 points: Add a "key field" to the Applet, and use the Vignere Cipher, working in a similiar fashion as the 10 point version…
Part 2: Organizing the report that shows possible plagiarism might require another data structure to sort. Download the files you need to get started at here . Click the title to see the video.
Overview of how to design a program that checks for patterns of matching words to detect plagiarism.
به Player FM خوش آمدید!
Player FM در سراسر وب را برای یافتن پادکست های با کیفیت اسکن می کند تا همین الان لذت ببرید. این بهترین برنامه ی پادکست است که در اندروید، آیفون و وب کار می کند. ثبت نام کنید تا اشتراک های شما در بین دستگاه های مختلف همگام سازی شود.