Answer to Question #44223 in C# for vipul

Question #44223
2.
The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software. While testing the software, the team encounters the following issues: The operations-related data of FlyHigh Airlines is stored in a central database. The software fails to respond to user inputs, if there is a connectivity problem with the database. Add the code snippet that the development team should use to ensure that the application shows a user- friendly message, if such a situation arises in future.[5 Marks] The application used to calculate the cost of carrying additional luggage results in erroneous amount, if the weight of the luggage is a fractional number. Help the development team modify the code snippet so that the cost of carrying additional luggage is calculated correctly. [
1
Expert's answer
2014-07-16T05:30:07-0400
1)public class DbDisconnectionException : ApplicationException
{
public override string Message
{
get { return string.Format("Don`t worry, some problems withconnection."); }
}
}
2) public decimalLugageCost(decimal weight)
{
//Some Coefficient, used to calculation cost
const decimalCoefficient = 0;
return Coefficient*weight;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS