subject
Engineering, 30.11.2019 00:31 milkshakegrande101

Code the errorhandler function and process the errors in the following code. use the following 2 txt files to for the code. make sure you use standard error (cerr) to output error messages. don’t forget the #include directive for that. this output is only performed in the errorhandler function. pass the function the amount, the status, and an informative message (be creative). in the program, look for the comments place error handling here. this is where you will want to interface with (call) the error handler. to simplify this we will use string literals for messages, and numeric literal for status as the arguments for the function call. for input data, the item in error, we will pass either the bad data (amount) or the file name experiencing a problem. there are seven calls to the interface. in the error handling function, replace "your code here" with all of the logic to process the incoming errors. consider possible ways to gracefully terminate (do not use exit).

if the status is one (1) then the function should resume processing after displaying the message. if the status is two (2) then the function should interrupt the program. considerations for interrupting the program should include closing the files properly, so you will need to figure out how to leave the program gracefully. don’t use exit.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
question
Engineering, 04.07.2019 18:10
Ahot wire operates at a temperature of 200°c while the air temperature is 20°c. the hot wire element is a tungsten wire of 5 um diameter and 2 mm in length. plot using excel current, heat transfer and heat generated by the wire for air velocity varying from 1-10 m/s in steps of lm/s? matlab the sensor voltage output, resistance, or assume nu 0.989 re033pr13 take air properties at tr (200°c20°c)/2 = 110°c properties of tungsten: c 0.13 kj/kg.k 3 p 19250 kg/m k (thermal conductivity) = 174 w/m.k
Answers: 2
You know the right answer?
Code the errorhandler function and process the errors in the following code. use the following 2 txt...
Questions
question
Mathematics, 05.10.2020 06:01
question
Mathematics, 05.10.2020 06:01
question
Spanish, 05.10.2020 06:01
question
Mathematics, 05.10.2020 06:01
question
Mathematics, 05.10.2020 06:01
question
Mathematics, 05.10.2020 06:01
Questions on the website: 13722363