60 583
Assignments Done
97,9%
Successfully Done
In April 2018

# Answer to Question #12060 in C# for Sophia

Question #12060
Lojack Airline allows a passenger only two pieces of luggage.The heavier bag can be at most 80 pounds but the total weight of the two should not exceeed 100 pounds.Please help me create a program that would input the weight of the two bags in any order and output whether the weight of the two bags in any order and output whether the luggages are allowable or not. This is the output format:

LOJACK AIRLINE

WEIGHT OF FIRST BAG :&lt;value entered&gt;
WEIGHT OF SECOND BAG :&lt;value entered&gt;

STATUS :&lt;status&gt;
LUGGAGE FEE :&lt;fee&gt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TEMP
{
class Program
{
& static void Main(string[] args)
& {
Console.Write(&quot; Enter weight of first bag: &quot;);
Console.Write(&quot;Enter weight of second bag: &quot;);
bool allowable = false;
if ((first&lt;80) && (second&lt;80) && (first+second&lt;100)){
allowable = true;
}

Console.WriteLine();
Console.WriteLine(&quot;LOJACK AIRLINE&quot;+&quot;\n&quot;);
Console.WriteLine( &quot;WEIGHT OF FIRST BAG &quot; + first);
Console.WriteLine(&quot;WEIGHT OF SECOND BAG &quot; + second);
Console.WriteLine();
Console.WriteLine(&quot;STATUS &quot; + ((allowable) ? &quot;allowable&quot; : &quot;not allowable&quot;));
& }
}
}

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!