Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will create an OpenCOBOL program that will generate a report listing patients who are registered with VaporCare Regional Health Insurance. This batch program will

You will create an OpenCOBOL program that will generate a report listing patients who are registered with VaporCare Regional Health Insurance. This batch program will be named lab4.cob and the input file will be named lab4-in.dat and will be located in the same directory as the lab4 executable (so do not specify a path for the file in the Select statement).The record format for the input file is that of the Patient file, which is described in a separate document. The program is to create a formatted report which will be named lab4- out.dat, which will also be located in the same directory as the lab4 executable (so do not specify a path for the file in the Select statement). At a minimum, formatting must include leading zero suppression, visible decimal point, and thousands separator. A currency symbol is optional, and if used must be floating. The lab zip package (lab4.zip) also contains a file named lab4-guide.dat which can be used as a guide for formatting your report. Things to note:The contents of each line of the report are shown in the report guide fileThe spacing between items on a line do not have to match the guide exactlyIn the guide, X represents string values and 9 represents numeric values and only show variable location and size, not formatting The date and time are to be the current date and time. Only get this from the system once.?M represents either AM or PM, as appropriateBlank lines (such as the ones before and after the column headers) are requiredAllow for 35 lines per page.image text in transcribedimage text in transcribed

mm/dd/ hh:mm ?M VaporCare Regional Health Insurance Monthly Register Page: 999 Hospital Patient DOB Treatment DOT Claim Amount XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX xxx xxxxxxxxxxxxxxxxxxxx xxxxx - xxxxxxxxxxxxxxxxxxxx XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXX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XXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 mm/dd/yyyy hh:mm ?M Page: 999 37 VaporCare Regional Health Insurance Monthly Register Hospital Patient DOB Treatment DOT Claim Amount 43 44 45 46 XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX - xxxxxxxxxxxxxxxxxxxx xxxxx - xxxxxxxxxxxxxxxxxxxx XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/ mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 48 50 Smallest Claim Average Claim Largest Claim $9,999,999,999.99 $9,999,999,999.99 $9,999,999,999.99 Total Claims $9,999,999,999.99 mm/dd/ hh:mm ?M VaporCare Regional Health Insurance Monthly Register Page: 999 Hospital Patient DOB Treatment DOT Claim Amount XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX xxx xxxxxxxxxxxxxxxxxxxx xxxxx - xxxxxxxxxxxxxxxxxxxx XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXX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XXXX mm/dd hh:mm ?M xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mm/dd hh: mm ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mm/dd hh: mm ? XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mm/dd hh: mm ? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mm/dd hh: mm ? XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 mm/dd/yyyy hh:mm ?M Page: 999 37 VaporCare Regional Health Insurance Monthly Register Hospital Patient DOB Treatment DOT Claim Amount 43 44 45 46 XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXX XXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX - xxxxxxxxxxxxxxxxxxxx xxxxx - xxxxxxxxxxxxxxxxxxxx XXX - XXXXXXXXXXXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXXXXXXX mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/ mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy mm/dd/yyyy XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX mm/dd hh:mm ?M $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 $9,999,999.99 48 50 Smallest Claim Average Claim Largest Claim $9,999,999,999.99 $9,999,999,999.99 $9,999,999,999.99 Total Claims $9,999,999,999.99

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions