Question

Create a Visual Studio applications similar to the ones described below. Name your project using your initials and the name of the assignment. Submit the assignment as a zip file via D2L by 5:00 on the due date. Write a program to process a control break for a file. The file is BaitShopSales.dat. The record structure is: location, day, dept, amount. Read the records from the file. Process a control break when the location changes. Total the sales amounts for each control break and the total sales. Write a program to process a control break for a file. The file is IceCreamSales.dat. The record structure is: location, item, day, number. Read the records from the file. Process a control break when the business changes. Total the number of items for each control break and the total items. Center the applications on the screen. Remove the minimize and maximize buttons. Include an Exit Button on your form. Include a prologue for the program. Be sure to: • • use a key field call a control break on a location and business changes update the variables in the control break . include a working Exit controls include a working Process controls display the output in a RichTextBox ● accumulate the totals accumulate the grand totals use control break logic display the control break results display the grand totals follow the naming conventions use Courier New font for the RichTextBox submit the all required files Scoring includes working Process and Exit cor displays the output in a RichTextBox processes the control breaks uses key fields totals the amount for each location an business totals all records follows control break processing output formatted follows the naming conventions Total/nControl Break Location Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Port Pholio Bait Shop Sales Control Break Report Day Sun Sun Sun Sun Mon Mon Mon Mon Tue Tue Tue Tue Wed Dept. Fishing Deli Gas Deli Gas $4,362.24 Grocery $1,430.93 Fishing Grocery Fishing Process Exit Deli Gas Grocery Fishing Amount $530.43 $746.98 $137.92 $364.90 $1,921.40 $823.10 $237.61 $409.36 $1,269.37 $784.39 $171.40 X <

Fig: 1

Fig: 2