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

Raptor programming

20/03/2021 Client: saad24vbs Deadline: 7 Days

Chapter 3 Developing a Program AITT 4300 DIGITAL COMPUTER STRUCTURES

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

3.1 The Program Development Cycle Problem solving principles ◦ Completely understand the problem

◦Devise a plan to solve it ◦ Carry out the plan ◦ Review the results

Writing a program 1) Analyze the problem 2) Design the program 3) Code the program 4) Test the program

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

1. Analyze the problem Identify desired results (output)

Determine input needed to produce those results

Example: Create a program to generate 6 numbers to play the lottery ◦ Is 7, 7, 7, 7, 7, 7 ok? ◦ Is ‐3, 0, 8, 9, 689, 689 ok? ◦ Is 1, 2, 6, 47.98765, 88, 93.45 ok? ◦ These are all 6 numbers but we see we must be more specific ◦ Desired results: 6 different positive integers within the range of 1 to 40

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

2. Design the program

Create a detailed description of program ◦ Use charts, models, or ordinary language (pseudocode)

Identify algorithms needed ◦ Algorithm: a step‐by‐step method to solve a problem or complete a task

Algorithms must be: ◦ Well defined ◦ Well ordered ◦ Must produce some result ◦ Must terminate in a finite time

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

3. Code the program

Translate charts, models, pseudocode, or ordinary language into program code

Add statements to document what the code does ◦ Internal documenation ◦ External documentation

Each programming language uses its specific syntax

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Syntax

Correct syntax for telling your friend where you put a cheese sandwich is: “I have put it on the table.”

Incorrect use of English syntax to say: “I have it on the table put.”

All the right words are there, but without proper syntax, the sentence is gibberish in English. But translated word for word, the second sentence is correct syntax in German.

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

4. Test the program

In analysis phase: continually ask questions ◦ Did I interpret data correctly? ◦ Does program fulfill requirements? ◦ Are my formulas or procedures correct? Etc…

In design phase: use desk‐checking to walk through the program

In coding phase: software will alert you to errors in syntax but not in the logic of the program

Finally, test your program with as many sets of test data as possible ◦ Use good data, bad data, data you know the answers for, etc.

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Additional Steps in the Cycle

o Create an outline of the program so that it is apparent what major tasks and subtasks have to be accomplished and the relationships among these tasks

o Describe in detail how each of these tasks is to be carried out

To put a commercial program (produced by a software publishing company) you may need to: ◦ Create a user’s guide ◦ to help users can understand the intricacies of the program

◦ Create help files ◦ installed with the software for users to get on‐screen help

◦ Train employees to provide telephone or web‐based customer support ◦ Duplicate disks and accompanying materials for distribution ◦ Advertise the program to attract buyers

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Program development is a process

 Program development is a cyclical process that often requires returning to earlier steps and, with complex programs, may take many months

The design process may uncover flaws in the analysis

Coding may find problems leading to modifications or additions to the design

Testing inevitably uncovers problems that require returning to previous phases

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

The Sale Price Example A local department store wants to develop a program which, when given an item’s original price and the percentage it is discounted, will compute the sale price, with sales tax.

Output required: name of item, discounted price, amount of sales tax, total price

Variables needed: ItemName, SalePrice, Tax, TotalPrice

Input required: name of item, original price, percent discounted

More variables: OriginalPrice, DiscountRate

Formulas required:

New variable needed: AmountSaved

SalePrice = OriginalPrice – AmountSaved

AmountSaved = OriginalPrice * (DiscountRate/100)

Tax = SalePrice * .065

TotalPrice = SalePrice + Tax

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Design: Input  Processing  Output Input Perform Calculations (Process) Output

Input variables: Computations: Display:

ItemName AmountSaved = OriginalPrice * DiscountRate/100 TotalPrice

DiscountRate SalePrice = OriginalPrice – AmountSaved ItemName

OriginalPrice Tax = SalePrice * .065 Tax

TotalPrice = SalePrice + Tax SalePrice

3.2 Program Design Modular Programming

To begin designing a program: identify the major tasks the program must accomplish.

Each of these tasks becomes a program module. ◦ if needed, break each of these fundamental “high‐level” tasks into submodules

◦ Some submodules might be divided into submodules of their own ◦ this process can be continued as long as necessary ◦ Identifying the tasks and subtasks is called modular programming

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Using Modules and Submodules  A module performs a single task.

 A module is self‐contained and independent of other modules.

 A module is relatively short. Ideally, statements should not exceed one page.

Benefits of Modular Programming o program is easier to read

o easier to design, code, and test the program one module at a time

o different program modules can be designed and/or coded by different programmers

o a single module may be used in more than one place in the program

o modules that perform common programming tasks can be used in more than one program

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Pseudocode: uses short, English‐like phrases to describe the outline of a program

Example: pseudocode for the Sale Price Program with modules: Input Data module

Prompt for ItemName, OriginalPrice, DiscountRate Input ItemName, OriginalPrice, DiscountRate

Perform Calculations module Set AmountSaved = OriginalPrice * (DiscountRate/100) Set SalePrice = OriginalPrice – AmountSaved Set Tax = SalePrice * .065 Set TotalPrice = SalePrice + Tax

Output Results module Write ItemName Write OriginalPrice Write DiscountRate Write SalePrice Write Tax Write TotalPrice

PRELUDE TO PROGRAMMING, 6TH EDITION BY ELIZABETH DRAKE

Refined Pseudocode for the Sale Price Program Input Data module

Write “What is the item’s name?” Input ItemName Write “What is its price and the percentage discounted?” Input OriginalPrice Input DiscountRate

Perform Calculations module Set AmountSaved = OriginalPrice * (DiscountRate/100) Set SalePrice = OriginalPrice – AmountSaved Set Tax = SalePrice * .065 Set TotalPrice = SalePrice + Tax

Output Results module Write “The item is: “ + ItemName Write “Pre-sale price was: “ + OriginalPrice Write “Percentage discounted was: “ + DiscountRate + “%” Write “Sale price: “ + SalePrice Write “Sales tax: “ + Tax Write “Total: $” + TotalPrice

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:

Math Exam Success
Accounting Homework Help
Financial Hub
Instant Assignments
Fatimah Syeda
Coursework Help Online
Writer Writer Name Offer Chat
Math Exam Success

ONLINE

Math Exam Success

I have read your project details. I can do this within your deadline.

$53 Chat With Writer
Accounting Homework Help

ONLINE

Accounting Homework Help

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$51 Chat With Writer
Financial Hub

ONLINE

Financial Hub

I have read your project details. I can do this within your deadline.

$23 Chat With Writer
Instant Assignments

ONLINE

Instant Assignments

I have read and understood all your initial requirements, and I am very professional in this task.

$15 Chat With Writer
Fatimah Syeda

ONLINE

Fatimah Syeda

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$42 Chat With Writer
Coursework Help Online

ONLINE

Coursework Help Online

Give me a chance, i will do this with my best efforts

$19 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

Homework for lab 5 force mass and acceleration answers - Bus 311 week 5 final paper - What Is The Meaning Of Finance? What Are The Different Branches Of Finance? - Devry coll 148 - 2013 new belgium fat tire cruiser - Cengage diet analysis plus login - Sociology paper - Unqualified legal practice queensland - Adelaide to mt gambier bus - Journal Article Analysis- White-collar crime - Pinellas county homeless population 2019 - Systems understanding aid 9th edition transaction list b - Double declining balance depreciation method ddb - Toshiba scandal case study - At what times do the various steps of the google three-step tcp handshake occur? - Communication between at least two people - Contract law drafting exercise law 421 - Professional digital portfolio. - Job cover letter and resume - Eureka ca seismic station sp interval - Pressure relief device medical - Hobart stickmate lx 235 manual - Create new email account windows live mail - Heart trust nta food preparation course - Matthew 25 14 30 sermon - Advanced Ergonomics - What are the credit risks faced by retail banking - Nitin patel nuffield bristol - Advanced diploma whs rpl - Watt converter to amp - Realidades 2 2a vocabulary - Imeche code of conduct - Given that mc005-1.jpg, what is the value of mc005-2.jpg? - 330 km to mph - An economist who favored expanded government would recommend - Bsbhrm405 assessment 2 answers - Leadership - Endoplasmic reticulum analogy school - Bathroom floor drain requirement nsw - Vue cheat sheet 3 - Peanut patch preschool walled lake - Criminal Justice - The treadmill of consumption james roberts - Cover letter for public service job - Arabic alphabet with pictures - Edith hollander frank biography - Function of a final drive assembly - Phet waves on a string answer key - Wilfred owen 1914 analysis - Threats to trader joe's competitive advantage - Ocbc bank human resource department contact - Drift and papillion apartments byron bay - Blue eyed experiment jane elliott - Do you ever feel like a plastic bag lyrics - Real life romeo and juliet love stories - Force table and vector addition of forces lab report - Examples of elimination complexities - Wordsworth graphic organizer b - Six sigma project reports - Algebraic number theory solutions - Thurra river campground booking - Www classzone com books hs ca sc bio 07 - We are only what we always were page number - ***For C. Owens Only*** - Bachelor of software engineering unsw - Attribution theory and how it influences the implementation of innovation technologies. - Separation of a mixture lab answers - Orthodontic instruments study guide - The two internal dimensions represented on the axes of the space matrix are - How to play florida lotto - Cobit 5 goals cascade - 15.2 homogeneous aqueous systems answers - Discussion: Security Breach Evaluation - Year 1 - bridging coursework - What is prevarication in linguistics - Bni member policies guidelines and code of ethics - Three ionisation stages of arsenic acid - Anandam manufacturing company cash flow statement - Fulmer spices an overall assessment tool for older adults - With it ness according to kounin - Hydrogen peroxide decomposition balanced equation - Limitations to a study examples - Writing Assignment Instructions - Hill cipher encryption and decryption - Diseconomies of scale arise primarily because - Business Finance Homework - Email - Price of avocados in australia - Column agglutination technology principle - Jref 1 million dollar challenge - Magnetic field between capacitor plates - Operational Planning - All all the below points Need in APA format with at least 300 words excluding 3 references and no plagiarism and need plagiarism report - How to write cold cover letter - Illustrated excel 2016 module 11 sam project 1a scandia kayaks - OB7 - What is the difference between financial and managerial accounting - Callan method organisation ltd - How to find area of a kite - Sales and operations planning meeting agenda - An assembly consists of two mechanical components