Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with this question in COBOL using NetExpress. The first picture is the question for the assignment including the details, the second picture
I need help with this question in COBOL using NetExpress. The first picture is the question for the assignment including the details, the second picture is the data that you have to create and you will read the data from it, and the third picture is the template of the outcome which will be in .txt should look like after reading the data. Please help me, thank you!
Programming Assignment One Write a program to create a report for Minnesota Vikings merchandise sold during the training camp in Mankato. Each booth manager in Mankato receives a percentage of the merchandise it sells. At the end of the day, each booth submits a listing of the merchandise it sold that day. There should be one line on the report for each type of merchandise sold at each booth, i.e., one line on the report for each eligible record on the file. The booth manager does not receive a commission for some types of merchandise. In order for the manager to receive a commission, a 2 or a 3 must be in the first position of the merchandise code. The manager can also receive a commission if the item is sold at a price greater than the cost plus the target percentage. Amazingly, approximately the same quantity of each item of merchandise is sold during training camp each year. In other words, no item is any more popular than another. About 50% of the items sold by the booth manager are eligible for commission. There are about 150 different items of merchandise. To be fan friendly sixty percent of the items sell for under $20.00. Over 80% of the items sold exceed the cost of the item plus the target percentage. Sales commission should be 20% of the total sale, i.e., merchandise sold price merchandise quantity Minnesota Vikings File Specification File Name Minnesota Vikings File Record Length:49 Field Name Tvpe Length Decimal Start Format PlacesPosition 0 Sale Number Booth Manager Name Merchandise Sold Price Merchandise Code Merchandise Cost Target Percentage Merchandise Quantit Sale Date Numeric Alpha Numeric Alpha Numeric Numeric Numeric Alpha 10 14 20 23 28 30 34 4 0 The part commission file has an unknown number of sales transactions on it and is using a sentinel or trailer value to stop processing. The sentinel value is a sales transaction number equal to 999. The sentinel record and any records after it should not appear on the report or be included in any processing. Programming Assignment One Write a program to create a report for Minnesota Vikings merchandise sold during the training camp in Mankato. Each booth manager in Mankato receives a percentage of the merchandise it sells. At the end of the day, each booth submits a listing of the merchandise it sold that day. There should be one line on the report for each type of merchandise sold at each booth, i.e., one line on the report for each eligible record on the file. The booth manager does not receive a commission for some types of merchandise. In order for the manager to receive a commission, a 2 or a 3 must be in the first position of the merchandise code. The manager can also receive a commission if the item is sold at a price greater than the cost plus the target percentage. Amazingly, approximately the same quantity of each item of merchandise is sold during training camp each year. In other words, no item is any more popular than another. About 50% of the items sold by the booth manager are eligible for commission. There are about 150 different items of merchandise. To be fan friendly sixty percent of the items sell for under $20.00. Over 80% of the items sold exceed the cost of the item plus the target percentage. Sales commission should be 20% of the total sale, i.e., merchandise sold price merchandise quantity Minnesota Vikings File Specification File Name Minnesota Vikings File Record Length:49 Field Name Tvpe Length Decimal Start Format PlacesPosition 0 Sale Number Booth Manager Name Merchandise Sold Price Merchandise Code Merchandise Cost Target Percentage Merchandise Quantit Sale Date Numeric Alpha Numeric Alpha Numeric Numeric Numeric Alpha 10 14 20 23 28 30 34 4 0 The part commission file has an unknown number of sales transactions on it and is using a sentinel or trailer value to stop processing. The sentinel value is a sales transaction number equal to 999. The sentinel record and any records after it should not appear on the report or be included in any processingStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started