Home /
Expert Answers /
Computer Science /
c-in-the-sherlock-holmes-story-34-the-adventure-of-the-sussex-vampire-34-the-inimitable-detective-ut-pa953
(Solved): C++ In the Sherlock Holmes story "The Adventure of the Sussex Vampire", the inimitable detective utt ...
C++
In the Sherlock Holmes story "The Adventure of the Sussex Vampire", the inimitable detective uttered these words: "Matilda Briggs was not the name of a young woman, Watson, .. It was a ship which is associated with the giant rat of Sumatra, a story for which the world is not yet prepared. "Over a hundred years later, researchers found giant rats in Western New Guinea, another part of Indonesia. 6 jeanmass/istockphoto. Suppose you are charged with writing a program that processes rat weights. We dont know for sure how giant a rat could be, but the New Guinea rats weighed no more than 2kg. A regular house rat (Rattus rattus) weighs up to 0.2kg, so we'll say that any weight > 10kg was surely an input error, perhaps confusing grams and kilograms. Of course, inputs should be positive numbers. Rearrange the following lines of code to supply error handling. Not all lines are useful.