Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

A case structure is the only decision structure that can be used in a menu-driven program.

19/11/2020 Client: arwaabdullah Deadline: 24 Hours

Study Guide

Introduction to Programming By

Lisa T. Cordeiro

About the Author

Lisa T. Cordeiro served in the Marines Corps in Okinawa, Japan, working in telecommunications. She later earned two bachelor degrees from the University of Massachusetts at Amherst and a master’s degree from Harvard University’s Extension School. Ms. Cordeiro has worked as a Web manager and technical writer and editor for 13 years. She has written several study guides for Penn Foster on topics such as the Internet, Microsoft Office, and Adobe products. In addition, Ms. Cordeiro has written articles and books.

Copyright © 2015 by Penn Foster, Inc.

All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from the copyright owner.

Requests for permission to make copies of any part of the work should be mailed to Copyright Permissions, Penn Foster, 925 Oak Street, Scranton, Pennsylvania 18515.

Printed in the United States of America

All terms mentioned in this text that are known to be trademarks or service marks have been appropriately capitalized. Use of a term in this text should not be regarded as affecting the validity of any trademark or service mark.

INSTRUCTION TO STUDENTS 1

LESSON ASSIGNMENTS 5

LESSON 1: INTRODUCTION TO PROGRAMMING 7

GRADED PROJECT—LESSON 1 15

LESSON 2: MAKING DECISIONS 17

GRADED PROJECT—LESSON 2 27

LESSON 3: ARRAYS AND MENU-DRIVEN PROGRAMS 29

GRADED PROJECT—LESSON 3 37

LESSON 4: ADVANCED PROGRAMMING 39

GRADED PROJECT—LESSON 4 51

iii

C o

n t

e n

t s

C o

n t

e n

t s

YOUR COURSE Welcome to your course in computer programming. In this course, you’ll learn the basics of computer programming and logic. You won’t learn a specific programming language; rather, you’ll examine the basic logic common to all programming languages. You’ll come away from this course with solid knowledge of how to create your own programs. You’ll also learn guidelines on how to incorporate good design into your programs. You’ll walk away from this course with a solid understanding of programming concepts that you can use in your own designs.

This course is designed for beginner programmers. You don’t need any previous programming experience or an extensive math background; the text is written in nontechnical lan- guage, making it easy for beginners to follow the logic. You also don’t need to focus on a specific programming language. This course focuses on basic guidelines and best practices for developing good programming skills.

OBJECTIVES When you complete this course, you’ll be able to

n Describe basic programming steps

n Create modules and hierarchy charts

n Use Boolean expressions

n Create loops

n Add control breaks

n Create arrays

n Search and sort arrays

n Validate input

1

In s

tr u

c tio

n s

In s

tr u

c tio

n s

n Solve problems with recursion

n Use UML diagrams to design classes

n Design graphical user interfaces

n Write event handlers

YOUR TEXTBOOK Your textbook for this course is Programming Logic and Design, Third Edition, by Tony Gaddis. The textbook contains the material on which you’ll be tested. You should become familiar with this text prior to beginning your studies.

Begin by skimming the brief contents on page v. Here, you’ll see a list of the chapter titles, which give you an overall idea of what you’ll learn in this course. The contents, which begins on page vii, provides a more detailed listing of the topics you’ll learn in each chapter. Read the preface beginning on page xiii to explore how the text is organized.

The main part of your textbook (pages 1–583) is the study material for the course. Each chapter begins with a list of topics, followed by the study material itself. Each chapter also includes checkpoints to make sure you understand the content. At the end of each chapter are review questions and exercises; you’ll find the answers to these questions and exercises on your student Web site. Log in to the Student Area at http://www.pennfoster.edu, go to Student portal, and look for the Solutions link associated with your course.

Three appendices—A, B, and C—are located at the end of the text. An index begins on page 601. A fourth appendix is located on the CD included at the back of the textbook. This appendix includes answers to the checkpoints in the text. The index includes important topics covered in your textbook, along with page references where you can locate material relating to each term.

Instructions to Students2

Instructions to Students

COURSE MATERIALS This course includes the following materials:

1. This study guide, which contains an introduction to your course, plus

n A lesson assignments page with a schedule of study assignments

n Assignment introductions emphasizing the main points in the textbook

n Four graded projects, one for each of the lessons in this course

2. Your course textbook, Programming Logic and Design, Third Edition, which contains the assigned reading mate- rial for this course

A STUDY PLAN 1. Note the pages for each assignment and read the intro-

ductory material in this study guide.

2. Study the assigned pages, paying attention to all details, especially the main concepts.

3. Complete the checkpoints in the textbook. After answering the checkpoints, check your answers with those provided in Appendix D on the CD. If you miss any of the ques- tions, review the pages in the textbook that cover those questions. These questions are designed to reveal weak points that you should review. Do not send the answers to these questions to the school. They’re for only you to eval- uate your understanding of the material.

3. Complete the review questions and all assigned exercises at the end of the chapter to review the material. When you’re finished, go to http://www.pennfoster.edu and log in to your Student Area. Go to student portal and look for the Solutions link associated with this course. The review questions and assigned exercises are for you to practice the course material; do not send your answers to the school.

3

4. After you’ve completed and checked answers for the assignments for Lesson 1, complete the graded project for Lesson 1 and follow the directions for submitting your projects. Follow Steps 1–4 for Lessons 2–4.

You can e-mail your instructor for assistance at any time. You’re now ready to begin. Good luck!

Instructions to Students4

Remember to check your student portal regularly. Your instructor may

post additional resources that you can access to enhance your learn-

ing experience.

Lesson 1: Introduction to Programming For: Read in the Read in study guide: the textbook:

Assignment 1 Pages 8–9 Pages 1–26

Assignment 2 Pages 10–12 Pages 27–78

Assignment 3 Pages 12–14 Pages 79–119

Graded Project 41882700 Material in Lesson 1

Lesson 2: Making Decisions For: Read in the Read in study guide: the textbook:

Assignment 4 Pages 17–20 Pages 121–168

Assignment 5 Pages 20–22 Pages 169–224

Assignment 6 Pages 22–23 Pages 225–265

Assignment 7 Pages 24–25 Pages 267–279

Graded Project 41882800 Material in Lesson 2

Lesson 3: Arrays and Menu-Driven Programs For: Read in the Read in study guide: the textbook:

Assignment 8 Pages 29–31 Pages 281–335

Assignment 9 Pages 31–33 Pages 337–374

Assignment 10 Pages 33–35 Pages 375–428

Assignment 11 Pages 35–36 Pages 429–474

Graded Project 41882900 Material in Lesson 3

5

A s

s ig

n m

e n

ts A

s s

ig n

m e

n ts

Lesson 4: Advanced Programming For: Read in the Read in study guide: the textbook:

Assignment 12 Pages 40–41 Pages 475–496

Assignment 13 Pages 41–42 Pages 497–517

Assignment 14 Pages 43–47 Pages 519–564

Assignment 15 Pages 47–50 Pages 565–583

Graded Project 41883000 Material in Lesson 4

Lesson Assignments6

7

L e

s s

o n

1 L

e s

s o

n 1

Introduction to Programming If you’re new to programming, you might be intimidated by code and flowcharts. You might even wonder how you’ll ever understand them. This lesson offers some basic ideas and programming examples with which you can follow along. You’ll soon understand the logic behind software programs.

In your first assignment, you’ll read an introduction to com- puters and programming. In the second assignment, you’ll learn the steps in creating a program. In the third assign- ment, you’ll learn about modules and the best practices for creating a software program.

OBJECTIVES When you complete this lesson, you’ll be able to

n Describe basic programming concepts and steps

n Declare variables

n Describe documentation

n Discuss the importance of structure

n Create modules

n Pass arguments

n Describe global variables and constants

This study guide is designed to break down the material into easy-to-understand chunks so that you aren’t intimidated by the material. Follow the directions outlined in the assign- ments, read the assigned text, and answer the questions to get the most from this course. You’ll soon understand the basics of programming.

Introduction to Programming8

ASSIGNMENT 1: AN OVERVIEW OF COMPUTERS AND PROGRAMMING Read this assignment, and then read pages 1–26 in your text- book. When you’re comfortable with the material presented in the text, answer the review questions in the textbook and com- plete the assigned exercises to gauge your progress. If there are any areas with which you don’t feel comfortable, reread those sections in the textbook before returning to the study guide. When you feel you’ve mastered the material in Chapter 1, move on to the next assignment.

Computers are a big part of people’s lives today, but what makes them capable of doing such powerful tasks? The answer is that they’re programmed to perform tasks, or what someone tells them to do. A program is a set of instructions for the computer to follow; programs are often referred to as software. Someone who creates programs or software is known as a programmer or software developer.

Hardware refers to the physical parts of a computer. You’ll read examples of different types of hardware, such as memory, a central processing unit (CPU), storage devices, input devices, and output devices.

A computer needs both hardware and software to perform its four major functions: input, processing, output, and storage. Programmers tell the computer what to do by using programming languages, such as Visual Basic and C#. The programming language must follow certain rules, called syntax, for it to be understood. The commands that tell the computer what to do also must follow a certain sequence, or logic, so the computer can process the request.

Computers store data in bytes, which are tiny storage loca- tions. Each byte is divided into eight smaller units called bits. These bits act like switches because they’re either “on” or “off.” When bits represent numbers, or binary numbers,

Note: Make sure to answer the checkpoints in the textbook as you

read along. Check your answers in Appendix D, which is located on

a PDF file on the CD included at the back of your textbook.

Lesson 1 9

they’re assigned the number 0 when off and 1 when on. You’ll read more about how numbers and characters are stored in this chapter.

Machines understand machine language, which is difficult for people to communicate in. Therefore, program languages that instruct computers on what to do have been created. Types of programming languages include C, C++, Java, JavaScript, and Visual Basic, as well as several more. These are known as high-level languages. Programmers write statements known as source code. High-level languages need to be translated into machine language. A program that handles this transla- tion is called a compiler.

After programs are created, they’re store on a storage device, such as a disk drive. When the CPU runs, or executes, a program, it follows three steps:

1. Fetch

2. Decode

3. Execute

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Instant Assignments
Calculation Guru
Finance Homework Help
Custom Coursework Service
Best Coursework Help
Helping Hand
Writer Writer Name Offer Chat
Instant Assignments

ONLINE

Instant Assignments

Hey, I can write about your given topic according to the provided requirements. I have a few more questions to ask as if there is any specific instructions or deadline issue. I have already completed more than 250 academic papers, articles, and technical articles. I can provide you samples. I believe my capabilities would be perfect for your project. I can finish this job within the necessary interval. I have four years of experience in this field. If you want to give me the project I had be very happy to discuss this further and get started for you as soon as possible.

$115 Chat With Writer
Calculation Guru

ONLINE

Calculation Guru

I see that your standard of work is to get content for articles. Well, you are in the right place because I am a professional content writer holding a PhD. in English, as well as having immense experience in writing articles for a vast variety of niches and category such as newest trends, health issues, entertainment, technology, etc and I will make sure your article has all the key pointers and relevant information, Pros, Cons and basically all the information that a perfect article needs with good research. Your article is guaranteed to be appealing, attractive, engaging, original and passed through Copyscape for the audience so once they start reading they keep asking for more and stay interested.

$115 Chat With Writer
Finance Homework Help

ONLINE

Finance Homework Help

I have a Master’s degree and experience of more than 5 years in this industry, I have worked on several similar projects of Research writing, Academic writing & Business writing and can deliver A+ quality writing even to Short Deadlines. I have successfully completed more than 2100+ projects on different websites for respective clients. I can generally write 10-15 pages daily. I am interested to hear more about the project and about the subject matter of the writing. I will deliver Premium quality work without Plagiarism at less price and time. Get quality work by awarding this project to me, I look forward to getting started for you as soon as possible. Thanks!

$115 Chat With Writer
Custom Coursework Service

ONLINE

Custom Coursework Service

Hey, Hope you are doing great :) I have read your project description. I am a high qualified writer. I will surely assist you in writing paper in which i will be explaining and analyzing the formulation and implementation of the strategy of Nestle. I will cover all the points which you have mentioned in your project details. I have a clear idea of what you are looking for. The work will be done according to your expectations. I will provide you Turnitin report as well to check the similarity. I am familiar with APA, MLA, Harvard, Chicago and Turabian referencing styles. I have more than 5 years’ experience in technical and academic writing. Please message me to discuss further details. I will be glad to assist you out.

$115 Chat With Writer
Best Coursework Help

ONLINE

Best Coursework Help

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$120 Chat With Writer
Helping Hand

ONLINE

Helping Hand

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$120 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

W5 Acct DQ, AssgnP1 and p2 - Aeronautical radio communication frequencies document - What does achromatic mean - Aim for a speech 3-5 minutes in length. - Global supply chain management v2 simulation answers - Writing - Silvan selecta spare parts - I need 4000 words in influence of finance and technology of the growth of Oman SMEs. - How can you connect mccarthyism to the salem witch trials - Qnt 561 week 4 - Daniela y yo vamos a las montañas. - Read and Finish! Simple, easy, need finish in 18 hrs - Week 4 Discussion - Protestant reformation multiple choice questions - Hw 15 - 2-7/8 inches on a ruler - How to use a potato for electricity - Earth science - Proactive vs reactive behavior - Formula for saponification value - Need tomorrow - E commerce regulations 2002 - Cssbb primer 4th edition pdf - Lord bernstein v skyviews and general ltd [1978] q.b. 479 - Adaptation worksheet answer key - Brad's bicycle shop sells speed bicycles - Research paper - Honey and mumford 1986 - Cann river free camping - Http support ubisoft com - Change my rmit password - Steps in ethical decision making - Commercial club membership price - Molly wallace valedictory address - Aravind eye care case study solution - Discussion: Using Power in Social Work Practice-wk8-6361 - 6 lupin court centenary heights - Perth caravan and camping show exhibitors - Electrolux eidw6105 all lights flashing - Organizational behavior case study motivation - Cham cham baje re payaliya shor machaye re - Miranda priestly leadership style - One step equations subtraction - Moving average inventory cost flow method - Hydrolysis of t butyl chloride lab report - Westhouser paper company case solution - Combustion of canola oil - Fundamentals of entrepreneurship syllabus - Quality dimensions worksheet - Cpp - What is a flax dam - Lactase enzyme lab data sheet answers - Nursing / Public Health Professional Development Essay Help - Where do you find aqueous humor in the dissected eye - Https://www.youtube.com/watch?v=XWBuPf-eTZc&t=913s - Staple stock walmart - Working at heights swms template - Fin 534 homework set 4 answers - Informative speech on dreams powerpoint - Dominant mode in circular waveguide - Five sentence paragraph using chronological order - 7 leita court ngunnawal - Biozone ap biology 1 answer key - Diz co is a us based mnc - Critical thinking presentation - Kizzy children's tv programme - Configure chap authentication on s0 0 0 - Partridge in a pear tree parody - Air jordan target market - Independent learning activities for students - Market focus is a marketing research firm that organizes - Managerial accounting final exam solutions - Pickit 3 programmer application - What are the terms of each expression - Heat of vaporization of water and ethanol - As 2601 demolition checklist - You hear: (beep) cantar. you choose: sé because the sentence is sé cantar. - 15241 beeding street charlotte nc - Webmail rci rutgers edu - Logical Fallacies and Criminal Justice - Marketing Analysis Research - Portrait head of queen tiye - Shl on demand test answers - Period costs for a manufacturing company would flow directly to - Psy 410 week 2 individual assignment - Cae practice tests listening - Pointe du hoc speech analysis - An income statement organized by cost behavior does not include - Hall coefficient for germanium - Wendy Lewis 2 - Www online classroom com au year5geography - Macquarie superoptions pension plan - Week 5 Assignment - Please choose 4 issues and typed-double spaced, 3 pages per topic write your thoughts, analysis, pros, cons, research, examples, thinking and conclusion on each one of the topics. - Figurative language television show - Ocean carriers case - What does daforest stand for in english - What is a disadvantage of an erp system - Quality castings pty ltd - Assume that hybridization experiments are conducted with peas