An Introduction to Programming Using Visual Basic
An Introduction to Programming Using Visual Basic
Eleventh Edition
David I. Schneider
University of Maryland
Senior Vice President Courseware Portfolio Management: Marcia J. Horton
Director, Portfolio Management: Engineering, Computer Science & Global Editions: Julian Partridge
Executive Portfolio Manager: Tracy Johnson
Portfolio Management Assistant: Meghan Jacoby
Managing Content Producer: Scott Disanno
Content Producer: Carole Snyder
Rights and Permissions Manager: Ben Ferrini
Manufacturing Buyer, Higher Ed, Lake Side Communications, Inc. (LSC): Maura Zaldivar-Garcia and Deidra Smith
Inventory Manager: Bruce Boundy
Product Marketing Manager: Yvonne Vannatta
Field Marketing Manager: Demetrius Hall
Marketing Assistant: Jon Bryant
Cover Designer: Black Horse Design, Inc.
Cover Photo: Liudmila Habrus/123RF
Printer/Binder: LSC Communications, Inc.
Full-Service Project Management: Mahalakshmi Narayanan, Integra Software Services Pvt. Ltd
Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear on the appropriate page within text.
Copyright 2020 Pearson Education, Inc. All rights reserved. Printed in the United States of America. This publication is protected by Copyright, and permission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, request forms and the appropriate contacts within the Pearson Education Global Rights & Permissions Department, please visit www.pearsoned.com/permissions/.
Many of the designations by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed in initial caps or all caps.
The programs and applications presented in this book have been included for their instructional value. They have been tested with care, but are not guaranteed for any particular purpose. The publisher does not offer any warranties or representations, nor does it accept any liabilities with respect to the programs or applications.
MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED AS PART OF THE SERVICES FOR ANY PURPOSE. ALL SUCH DOCUMENTS AND RELATED GRAPHICS ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION, INCLUDING ALL WARRANTIES AND CONDITIONS OF MERCHANTABILITY, WHETHER EXPRESS, IMPLIED OR STATUTORY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF INFORMATION AVAILABLE FROM THE SERVICES.
THE DOCUMENTS AND RELATED GRAPHICS CONTAINED HEREIN COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED HEREIN AT ANY TIME. PARTIAL SCREEN SHOTS MAY BE VIEWED IN FULL WITHIN THE SOFTWARE VERSION SPECIFIED.
MICROSOFT WINDOWS, AND MICROSOFT WINDOWS ARE REGISTERED TRADEMARKS OF THE MICROSOFT CORPORATION IN THE U.S.A AND OTHER COUNTRIES. THIS BOOK IS NOT SPONSORED OR ENDORSED BY OR AFFILIATED WITH THE MICROSOFT CORPORATION.
Library of Congress Cataloging-in-Publication Data
Names: Schneider, David I., author.
Title: An introduction to programming using Visual Basic / David I. Schneider, University of Maryland.
Description: Eleventh edition. | Pearson, [2019] | Includes bibliographical references and index.
Identifiers: LCCN 2018051617| ISBN 9780135416037 | ISBN 0135416035
Subjects: LCSH: BASIC (Computer program language) | Visual Basic.
Classification: LCC QA76.73.B3 S333633 2019 | DDC 005.26/8dc23 LC record available at https://lccn.loc.gov/2018051617
ISBN - 10: 0-13-541603-5
ISBN - 13: 978-0-13-541603-7
Attention Students
Installing Visual Studio
To complete the tutorials and programming problems in this book, you need to install Visual Studio 2017 on your computer.
We recommend that you download Visual Studio Community 2017 from the following Web site, and install it on your system:
www.visualstudio.com
Visual Studio Community 2017 is a free, full-featured development environment, and is a perfect companion for this textbook.
Note
If you are working in your schools computer lab, there is a good chance that Microsoft Visual Studio has already been installed. If this is the case, your instructor will show you how to start Visual Studio.
Installing the Student Sample Program Files
The Student Sample Program files that accompany this book are available for download from the books companion Web site at:
www.pearson.com/cs-resources
These files are required for many of the books tutorials. Simply download the Student Sample Program files to a location on your hard drive where you can easily access them.
Guide to VideoNotes
www.pearson.com/cs-resources
Guide to Application Topics
Business and Economics
Admission fee ,
Airline reservations ,
Analyze a Loan case study ,
Analyze computer sales ,
Analyze fuel economy ,
Annuity ,
APY ,
Automated directory assistance ,
Automobile depreciation ,
Bank account ,
Bond yield ,
Break-even analysis ,
Business travel expenses ,
Calculate a profit ,
Calculate a tip ,
Calculate weekly pay ,
Car loan ,
Cash register ,
Cash reward ,
Change from a sale ,
Checking account transactions ,
Compare interest rates ,
Compare two salary options ,
Compound interest ,
Consumer options ,
Consumer price index ,
Cost of a computer system ,
Cost of a tour ,
Cost of benefits ,
Cost of electricity ,
Cost of flash drives ,
Create sales receipt ,
Credit card account ,
Crop production ,
Next page