Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Book: COBOL for the 21st Century ISBN: 1118739531 Chapter: 12 Question: 4PA Create a report/print out that displays the current date, page number, followed by

Book: COBOL for the 21st Century

ISBN: 1118739531

Chapter: 12

Question: 4PA

Create a report/print out that displays the current date, page number, followed by the rest of the report.

The report has the following headings: Vehicle class, Name, Weight, Fee. It also has a totaal for all fees at the bottom.

The data being read in has 90 entries, one for each vehicle class. AFter the table input file is read and sotred in the table in memeory, read the transaction file. For each transaction record, the vehicle calss must be found in the table to obtain the corresponding registration rate. Registration Fee=Vehicle Weight*Registartion Rate.

Here are the following parameters: Vehicle-Class PIC X(2) / First-Name PIC X(10) / Middle-Initial PIC X(1) / Last-Name PIC X(20) / Weight-Of-Vehicle PIC 9(5) / Vehicle-Description PIC X(13)

Use the STRING verb to format the name as: Last Name, comma, space, frist name, middle initial, period.

Add a "TOTAL" line to the report

Use MOVE CORRESPONDING and the INSPECT verb to format the date.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions