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 systems.

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 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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions

Question

What functions of the firm affect an MRP system? How?

Answered: 1 week ago