Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question

Using C# Programming Language

Please display all code and steps for the following program. Store the data of (Customer#, Order#, OrderQty, UnitPrice) has shown below int a text file named Order.txt to be processed.

Customer# Order# OrderQty UnitPrice
0155 76533 3 10.95
0140 75446 12 8.50
0150 75550 1 89.95
0145 75648 25 2.50
0130 76360 5 17.90
  • Create a form, ProcessOrder, that reads each order record, computes the extended cost, and displays
  • Cust#, Order#, OrderQty, UnitPrice and ExtendedCost in a ListBox, with the columns aligned.
  • An extended cost is the unit price multiplied by the order quantity
  • Use a button, named btnDisplayOrders, to display orders (i.e., the records in the data file, Order.txt) – use Resize() method (in case the data file is large)
  • Use another button, named btnDisplayExtendedCosts, to display the extended cost of each order (including the original 4 data items)
  • Use 4 TextBoxes to allow the user to enter a new order (including its Customer#, Order#, OrderQty, and UnitPrice)
  • Use the 3rd button, named btnSaveToFile, to write the new order to the data file, Order.txt – NOTE: do NOT overwrite the existing orders
  • Incluse a Clear button and an Exit button
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Database System Concepts
    Computer Science
    ISBN:9780078022159
    Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
    Publisher:McGraw-Hill Education
    Text book image
    Starting Out with Python (4th Edition)
    Computer Science
    ISBN:9780134444321
    Author:Tony Gaddis
    Publisher:PEARSON
    Text book image
    Digital Fundamentals (11th Edition)
    Computer Science
    ISBN:9780132737968
    Author:Thomas L. Floyd
    Publisher:PEARSON
    Text book image
    C How to Program (8th Edition)
    Computer Science
    ISBN:9780133976892
    Author:Paul J. Deitel, Harvey Deitel
    Publisher:PEARSON
    Text book image
    Database Systems: Design, Implementation, & Manag...
    Computer Science
    ISBN:9781337627900
    Author:Carlos Coronel, Steven Morris
    Publisher:Cengage Learning
    Text book image
    Programmable Logic Controllers
    Computer Science
    ISBN:9780073373843
    Author:Frank D. Petruzella
    Publisher:McGraw-Hill Education