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

# Answer to Question #12174 in C# for Gia

Question #12174
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 exceed 100 pounds. Make a program that would input the weight of the two bags in any order and output whether the weight of the bags in any order and output whether the luggages are allowable or not. Use the output format below.

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;

Notes:
1. Status is either &lsquo;WEIGHT ALLOWABLE&rsquo; or WEIGHT NOT ALLOWABLE
2. Luggage fee is
Weight Fee
Below 40 ₱10
41 to 75 ₱12
76 to 100 ₱15
Not allowable ₱0
class Program
{
static void Main(string[] args)
{
Console.Write(&quot;LOJACK AIRLINE&quot;);
Console.Write(&quot;WEIGHT OF FIRST BAG: &quot;);
Console.WriteLine(&quot;WEIGHT OF SECOND BAG: &quot;);
if((weight1 &gt; 80) ||(weight2 &gt; 80) || (weight1 + weight2 &gt;
100)){
Console.WriteLine(&quot;STATUS: WEIGHT NOT ALLOWABLE&quot;);
Console.WriteLine(&quot;LUGGAGE FEE: ₱0&quot;);
}
else{
Console.WriteLine(&quot;STATUS: WEIGHT ALLOWABLE&quot;);
if(weight1+weight2 &lt;= 40)
Console.WriteLine(&quot;LUGGAGE FEE: ₱10&quot;);
else if (weight1+weight2 &lt;= 75)
Console.WriteLine(&quot;LUGGAGE FEE: ₱12&quot;);
else
Console.WriteLine(&quot;LUGGAGE FEE: ₱15&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!