Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 2: This part will open an ordens file that has been entered on your website and built. It contains information about ordered

\ \ Step 2:\ This part will open an ordens file that has been entered on your website and built. It contains information about ordered systems. The serial numbers for the components have already been assigned. The serial number for the complete system has not been assigned and will be generated when you read the orders file.\ Create a Class called "Order" to hold a complete order when read.\ a. Attributes: Order number, custName\ b. syslnfo : type System. Has the information for computer system of this order,\ Create a Class called OrderMgr. It will hold the Orders and have various print and support methods.\ a. Attributes: vector of type Order named orders to hold the orders as they are read.\ b. Methods: printlnvoices 0 , printSummary 0\ Open Orders.bxt file for input.\ Read in each order, allocate and populate a new computer object for each system.\ Close the order file and create an output file Invoice.txt.\ Have the orderMgr print the invoices to the invoice file. The invoice file has the following format:\ Rleh's Computer Manufacturer\ -- INVOICE ..\ To: Lions\ Order Number: 12580\ \\\\table[[Iten,Sertall,Specification,Price],[CPU,C50123,

2.10GHz,1

Cores,239.00],[MEYORY,M62311,

64GB,3200MHz

,125.25],[STORAGE,

$70165

,

986GB

SSD, Xfer:12.00MB/s, MTBF:8600hrs,]]\ Have the orderMgr display a summary repont with one order per line.\ a. Show the order name,

A

, price, cost, and profit on each line.\ b. Include total line at the bottom.\ Rich's Computer Manufacturer\ \\\\table[[Order,Customer,Price,Cost,Protde],[12578,Wolverines,408.00,217.25,190.75],[12580,Llons,524.24,254.50,269.74],[13006,Red_Wings,582.97,236.10,326.87],[14378,Tigers,785.95,398.95,387.00],[,Dally Total:,2301,16,1126.80,1174.36]]\ 2

image text in transcribed
Step 2: This part will open an ordens file that has been entered on your website and built. It contains information about ordered systems. The serial numbers for the components have already been assigned. The serial number for the complete system has not been assigned and will be generated when you read the orders file. 1. Create a Class called "Order" to hold a complete order when read. a. Attributes: Order number, cust N ame b. sysinfo: type System. Has the information for computer system of this order. 2. Create a Class called OrderMgr. It will hold the Orders and have various print and support methods. a. Attributes: vector of type Order named orders to hold the ordens as they are read. b. Methods: printInvoices 0 , printSummary 0 3. Open Orders.txi file for input. 4. Read in each order, allocate and populate a new computer object for each system. 5. Close the order file and create an output file Invoice.txt. 6. Have the orderMgr print the invoices to the invoice file. The invoice file has the following format: Rlch's Computer Manufacturer Tot Wolverines -- INVOICE -. Rleh's Computer Manufacturer -- INVOICE -. To: Llons Order Number: 12580 7. Have the orderMgr display a summary repon with one order per line. a. Show the order name, #, price, cost, and profit on each line. b. Include total line at the bottom

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

=+ What is the role of government in bargaining?

Answered: 1 week ago

Question

=+ Who is the negotiation partner at company level?

Answered: 1 week ago