Fundamentals of java AP computer science essentials 4th edition

723 154 0
Fundamentals of java  AP computer science essentials 4th edition

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

This page intentionally left blank 0538744928_ifc_se.qxd 11/13/09 9:47 AM Page This Book Is the Property of: State _ Book No _ Province County Parish _ School District _ E n t e r i n fo r m a t i o n in spaces to the left as instructed Other Condition Issued to Year Used Issued P U P I L S t o w h o m t h i s t e x t b o o k i s i s s u e d mu s t n o t w r i t e o n a ny p a g e o r m a r k a ny p a r t o f i t i n a ny w ay ; c o n s u m a b l e t e x t b o o k s e x c e p t e d Teachers should see that the pupil’s name is clearly written in ink in the spaces above in every book issued The following terms should be used in recording the condition of the book: New, Good, Fair, Poor, Bad Returned This is an electronic version of the print textbook Due to electronic rights restrictions, some third party content may be suppressed Editorial review has deemed that any suppressed content does not materially affect the overall learning experience The publisher reserves the right to remove content from this title at any time if subsequent rights restrictions require it For valuable information on pricing, previous editions, changes to current editions, and alternate formats, please visit www.cengage.com/highered to search by ISBN#, author, title, or keyword for materials in your areas of interest A_C7068_FM.4c 12/2/09 2:50 PM Page i FUNDAMENTALS OF JAVA™ AP® Computer Science Essentials, Fourth Edition Kenneth Lambert and Martin Osborne Australia • Brazil • Japan • Korea • Mexico • Singapore • Spain • United Kingdom • United States A_C7068_FM.4c 12/2/09 10:48 AM Page ii Fundamentals of Java™: AP® Computer Science Essentials, Fourth Edition Kenneth Lambert, Martin Osborne Executive Editor: Donna Gridley Product Manager: Alyssa Pratt Development Editor: Ann Shaffer © 2011, 2007 Course Technology, Cengage Learning ALL RIGHTS RESERVED No part of this work covered by the copyright herein may be reproduced, transmitted, stored or used in any form or by any means graphic, electronic, or mechanical, including but not limited to photocopying, recording, scanning, digitizing, taping, Web distribution, information networks, or information storage and retrieval systems, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the publisher Associate Product Manager: Amanda Lyons Editorial Assistant: Kim Klasner Content Project Manager: Matthew Hutchinson Marketing Associate: Julie Schuster Director of Manufacturing: Denise Powers Manuscript Quality Assurance Lead: Jeff Schwartz For product information and technology assistance, contact us at Cengage Learning Customer & Sales Support, 1-800-354-9706 For permission to use material from this text or product, submit all requests online at www.cengage.com/permissions Further permissions questions can be emailed to permissionrequest@cengage.com Manuscript Quality Assurance Reviewers: Serge Palladino, Danielle Shaw, John Freitas ISBN-13: 978-0-538-74492-8 Art Director: Faith Brosnan ISBN-10: 0-538-74492-8 Cover Designer: © Wing-ip Ngan, Ink design, Inc Course Technology 20 Channel Center Street Boston, MA 02210 USA Cover Image: Indivision 07 Grow A/Getty Images Compositor: GEX Publishing Services Cengage Learning is a leading provider of customized learning solutions with office locations around the globe, including Singapore, the United Kingdom, Australia, Mexico, Brazil, and Japan Locate your local office at: international.cengage.com/region Cengage Learning products are represented in Canada by Nelson Education, Ltd To learn more about Course Technology, visit www.cengage.com/ coursetechnology To learn more about Cengage Learning, visit www.cengage.com Any fictional data related to persons or companies or URLs used throughout this book is intended for instructional purposes only At the time this book was printed, any such data was fictional and not belonging to any real persons or companies Printed in the United States of America 16 15 14 13 12 11 A_C7068_FM.4c 12/2/09 10:48 AM Page iii Overview of This Book Overview of This Book Sample lesson pages CHAPTER CONTROL STATEMENTS CONTINUED Objectives—At the beginning of each chapter, objectives help you preview and review chapter topics Vocabulary Terms— This chapter-opening list draws your attention to important terms Code Samples— Plentiful examples show how to write effective Java code Short Essays on Special Topics—These notes of interest throughout the book elaborate on important programming issues Graphics and GUIs— Optional sections give you the opportunity to focus on topics related to modern graphics applications OBJECTIVES VOCABULARY Upon completion of this chapter, you should be able to: Arithmetic overflow ■ Construct complex Boolean expressions using the logical operators && (AND), || (OR), and ! (NOT) Boundary condition ■ Construct truth tables for Boolean expressions ■ Understand the logic of nested if statements and extended if statements Complete code coverage ■ Test if statements in a comprehensive manner Extended if statement ■ Construct nested loops Extreme condition ■ Create appropriate test cases for if statements and loops Input assertion ■ Understand the purpose of assertions, invariants, and loop verification Loop invariant Estimated Time: hours Combinatorial explosion Equivalence class Logical operator Loop variant Chapter Control Statements Continued Nested if statement while Nested (lower loop != -1){ System.out.print(“Enter the upper limit: “); Output assertion upper = reader.nextInt(); forQuality (n = lower; n

Ngày đăng: 04/03/2019, 08:55

Từ khóa liên quan

Mục lục

  • Cover

  • Title Page

  • Copyright

  • Overview of This Book

  • Preface

  • Table of Contents

  • UNIT 1 GETTING STARTED WITH JAVA

    • Chapter 1: Background

      • 1.1 History of Computers

      • 1.2 Computer Hardware and Software

      • 1.3 Binary Representation of Information and Computer Memory

      • 1.4 Programming Languages

      • 1.5 The Software Development Process

      • 1.6 Basic Concepts of Object-Oriented Programming

      • Summary

      • Chapter 2: First Java Programs

        • 2.1 Why Java?

        • 2.2 The Java Virtual Machine and Byte Code

        • 2.3 Choosing a User Interface Style

        • 2.4 Hello World

        • 2.5 Edit, Compile, and Execute

        • 2.6 Temperature Conversion

        • 2.7 Graphics and GUIs: Windows and Panels

Tài liệu cùng người dùng

Tài liệu liên quan