Programming Languages Chapter 12 The Focus This Text Introduce Text Way Encode Media One

subject Type Homework Help
subject Pages 1
subject Words 467
subject Authors Barbara Ericson, Mark J. Guzdial

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Chapter 12
The focus in this chapter is on text. We introduce text as a way to encode media. One of the
things that can attract women to computer science is playing with text in programs. Also, many
students find working with Web pages to be interesting.
In section 12.2 we review strings, introduce Unicode, show some typical string methods, and
process delimited strings using split. This let’s us cover converting strings to numbers, too. This
is a good place to remind students that strings and numbers are stored differently in the computer
In section 12.3 we talk about files, how to read from files, how to handle exceptions, how to
work with an array list, and how to write to a file. We use this to read a Java program and
modify it. We also use it to search for a sequence in a file and find a parasite name, and for
getting the temperature from a Web page. Be sure to point out that exceptions are objects and
In section 12.4 we introduce the File class and use it to put the file name on each picture in a
directory. We introduce the Random class and use it to generate random sentences. In this
In section 12.5 we explain some of the basics of networking and the internet such as protocols,
IP addresses, packets, URLs, HTTP, and HTML. We find the temperature in a Web page that is
read from the network.
In section 12.6 we use text to change from one media type to another. We map sound to text and
then to a picture. You might have students map a picture to a sound. We want to make it clear
that to a computer it is all just 0s and 1s so you can map any media to any other media. This

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.