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, 04.07.2019 18:10
For the closed feedwater heater below, feedwater enters state 3 at a pressure of 2000 psia and temperature of 420 °f at a rate of ix10 ibhr. the feedwat extracted steam enters state 1 at a pressure of 1000 psia and enthalpy of 1500 btu/lbm. the extracted er leaves at an enthalpy of 528.7 btu/lbm steam leaves as a saturated liquid. (16) a) determine the mass flow rate of the extraction steam used to heat the feedwater (10) b) determine the terminal temperature difference of the closed feedwater heater
Answers: 3
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
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
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, 13.07.2020 17:01
Questions on the website: 13722367