Question: Please provide help for the following machine problem in C + + . Please dumb down your explanation as much as possible, this is supposed
Please provide help for the following machine problem in C Please dumb down your explanation as much as possible, this is supposed to be an into class requiring zero experience and that is absolutely turning out not to be the case.
CPS Machine Problem Formatting
Problem:
Well, with the recent merger of the BAA&M Railroad with the Kalamazoo, Erie & Rochester, you find yourself working for the KERBAA&M in a new location. You are now required to produce very specifically formatted reports for your new hottempered management.
The data file should have the following information Each item is on a separate line:
Name of Railroad
Destination
Number of ore cars
Current price of Coal per short ton.
You need to calculate:
the amount of coal,
the total value of the shipment, and
the surcharge.
Assume that every car holds tons. The surcharge is set at of the total value of the shipment.
You need to produce a report formatted EXACTLY as follows with your name:
KERBAA & M COAL TRAIN REPORT
Railroad Name: Ironton and Tylerville
Destination: Flint Edison #
Number of ore cars:............
Total weight of coal........... short tons
Current Cost per short ton..... $
Total Value of Shipment........ $
Current Surcharge..............
Total SurchargeEst $
You must run your program from a file containing the following data:
Ironton and Tylerville
Flint Edison #
All output must be sent to an output file. Be sure that your program is well documented and written in good style. Your program should round to the nearest penny and hundredth of a ton. You should take advantage of setfill characters. Your program should produce output formatted the same way, even for different values. The decimal point still lined up etc.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
