Programming Assignment #2 in CIS12 Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
Next clothing.
Advertisements

CLOTHES Vocabulary.
Clothes.
Create a data flow diagram
Let’s play "Words and pictures" Next.
Programming Logic and Design Fourth Edition, Introductory
Group functions using SQL Additional information in speaker notes!
BUSINESS PROFESSIONALS OF AMERICA TEXAS ASSOCIATION
Screen Section Please use speaker notes for additional information!
Programming Logic and Design Fourth Edition, Introductory
Relational example using donor, donation and drive tables For additional information see the speaker notes!
Using input variables Please use speaker notes for additional information!
PL/SQL - Using IF statements Please use speaker notes for additional information!
Mark Dixon Page 1 07 – Reports. Mark Dixon Page 2 Session Aims & Objectives Aims –To use reports to produce more readable documents Objectives, by end.
Understanding Arrays and Pointers Object-Oriented Programming Using C++ Second Edition 3.
SQL Use of Functions Character functions Please use speaker notes for additional information!
SQL functions - numeric and date Speaker notes contain additional information!
Cursors in PL/SQL Includes cursor example and continuation of first cursor example Please use speaker notes for additional information!
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Fruitful functions. Return values The built-in functions we have used, such as abs, pow, int, max, and range, have produced results. Calling each of these.
ICT IGCSE.  Understand a wide range of work-related ICT applications and their effects, including applications in libraries (such as records of books.
Pascal Programming Strings, Arithmetic operators and output formatting National Certificate – Unit 4 Carl Smith.
Introduction to Tables/Arrays Please use the speaker notes for additional information. Tables/Arrays.
Totals on the Screen Please use speaker notes for additional information!
The DATA DIVISION Chapter 3. COBOL Data Organization Field - group of characters forming a meaningful unit or basic fact –Characters in a name or digits.
XML and DTD Please you speaker notes for additional information!
Edit Programs Please use speaker notes for additional information. Example: payedit.cbl payedit.cbl.
Chapter 2 Pseudocode. Objectives To introduce common words, keywords and meaningful names when writing pseudocode To define the three basic control structures.
More on views Please refer to speaker notes for additional information!
SQL and Conditions Speaker notes will provide additional information!
Explanation of SAMPLEIF (if88in1.cbl or if88in1.html) Please use speaker notes for additional information!
Manipulating data within PL/SQL Please use speaker notes for additional information!
 SAP AG 2007 General Structure of Documents General Functions of Documents Contents: Document Handling.
Delivery and other DO Examples Please use speaker notes for additional information!
Introduction to Oracle - SQL Additional information is available in speaker notes!
Label Assignment Please use speaker notes for additional information!
1.  Introduction  The Benefits of the Report Writer Module ◦ For Detail and Summary Printing ◦ For Control Break Processing ◦ For Printing Headings.
COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Analysis of SAMPLE1.CBL Please check speaker notes for additional information!
In-class Administration of the KEMTP 1.Connect to 2. Select the KEMTP link.
Sequential Processing to Update a File Please use speaker notes for additional information!
Variables.. Part 2 Calculations. Review of yesterday Three types of variables var num:int var average:real var username:string No decimals Might have.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
DEVRY CIS 336 W EEK 7 G ROUP P ROJECT T ASK 5 Check this A+ tutorial guideline at
Document Handling Contents: General Structure of Documents
Next Clothes/ garments.
InterLaser Basic requirements.
Business Process Modelling
Smart Choice Level 2 Unit 7 - Vocabulary.
Introduction to Procedures
Introduction to the Array
Introduction to Programming
SLOPE = = = The SLOPE of a line is There are four types of slopes
Mail Merge a letter for Integration Office 2016
An Introduction to Structured Program Design in COBOL
Structured COBOL Programming
Minor, Intermediate and Major Breaks
The clothes/clothing the shirt the t-shirt the blouse the pants
Indexed File Processing
CHAPTER 17 The Report Writer Module
Data Groupings: File File: a group of related records
Mail Merge in Word 2016 © EIT, Author Gay Robertson, 2017.
More and Still More on Procedures and Functions
Processing a Manual Disbursement Activity
SDLC Phases Systems Design.
2 file sequential matching with multiple records allowed on file 2
Please use speaker notes for additional information!
File Handling.
HP Channel MPS selection guide
Bank Functional Skills Mathematics
Presentation transcript:

Programming Assignment #2 in CIS12 Please use speaker notes for additional information!

121212Stephen Daniels Jean Shorts Jennifer Ames Sandals Susan Richards Sweater John Smith Tank Top Linda Costa Socks Michael Fletcher Suit Russell Warren Coat Ann Washington Gown Dick Southworth Sweatshirt Mary Stretton Bathrobe The file layout is: Customer Number Customer Name Product Standard Price Classification Note that the standard price is 5 characters made up of 3 whole numbers and 2 decimal numbers. Customer.dat

Output requirements The detail output should include the following: Customer Number - this is taken directly from the input record Customer Name - this is taken directly from the input record Product - this is taken directly from the input record Standard Price - this is taken directly from the input record (3 whole numbers, 2 decimal) Customer Special Price - this is the result of a calculation - this is handled differently depending on whether the classification code is 01, 02, 04 or 10 Classification Name - a different name is printed depending on whether the classification code is 01, 02, 04, or 10 The total output should include the number of records processed in each classification - therefore, the program should add to different counters depending on whether the classification code is 01, 02, 04, or 10. NOTE: There should be four totals.

Classification codes Recommendation: I would suggest that in the loop where you are processing the records, you check the classification code. There are three things to do dependent on that classification code: Calculate the special price Move the classification name to the printer Add to the appropriate classification counter

Possible output Stephen Daniels Jean Shorts $15.00 $15.00 Steady Jennifer Ames Sandals $29.99 $26.99 Excellent Susan Richards Sweater $49.95 $44.95 Excellent John Smith Tank Top $10.99 $12.08 Irregular Linda Costa Socks $2.99 $4.28 Problem Note that there are additional records - this is only partial output. The calculated price and the classification name are the last two fields - the other data comes directly from the input.